/* Защита от горизонтального скролла */
html, body { 
  overflow-x: hidden; 
  max-width: 100vw; 
}

/* Адаптация под тему сайта */
.terms-container {
  background-color: var(--card-bg);
  color: var(--light-text);
  padding: 2rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.terms-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--card-border);
}

.terms-section:last-child {
  border-bottom: none;
}

.terms-list {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.terms-list li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.subsection {
  margin-left: 2rem;
  margin-top: 1rem;
}

.effective-date {
  font-style: italic;
  color: var(--text-secondary, #888);
  margin-bottom: 2rem;
}

h2 {
  color: var(--primary-coral);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

h3 {
  color: var(--primary-teal);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

strong {
  color: var(--accent-yellow);
}

.table-responsive {
  margin: 1.5rem 0;
}

.table {
  color: var(--light-text);
  border-color: var(--card-border);
}

.table thead {
  background: var(--darker-bg);
  border-bottom: 2px solid var(--card-border);
}

.table tbody tr {
  border-bottom: 1px solid var(--card-border);
}

@media (max-width: 768px) {
  .terms-container {
    padding: 1rem;
  }
  
  .subsection {
    margin-left: 1rem;
  }
}