/* Адаптация к теме сайта */
.terms-section {
  color: var(--text-primary);
}

.terms-section h1 {
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.terms-section h2 {
  color: var(--primary);
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.terms-section h3 {
  color: var(--secondary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.terms-section h4 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.terms-section p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.terms-section ul,
.terms-section ol {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.terms-section ul li,
.terms-section ol li {
  margin-bottom: 0.5rem;
}

.terms-section strong {
  color: var(--primary);
  font-weight: 600;
}

.last-updated {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.last-updated p {
  margin: 0;
}

.important-notice {
  background: var(--dark-lighter, rgba(255,255,255,0.05));
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
  border-left: 4px solid var(--primary);
}

.important-notice p {
  margin: 0;
}

@media (max-width: 768px) {
  .terms-section h1 {
    font-size: 2rem;
  }

  .terms-section h2 {
    font-size: 1.5rem;
  }

  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 430px) {
  .container {
    padding: 0 15px;
  }

  .terms-section h1 {
    font-size: 1.75rem;
  }

  .terms-section h2 {
    font-size: 1.35rem;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 12px;
  }

  .terms-section h1 {
    font-size: 1.5rem;
  }
}