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

/* Адаптация к светлой теме */
.bg-light {
  background-color: var(--light) !important;
  color: var(--text-primary) !important;
}

/* Юридический документ - минимализм */
.terms-section {
  margin-bottom: 3rem;
}

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

.terms-section h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.terms-section h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.terms-section p,
.terms-section li {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

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

.terms-intro {
  background: var(--light-card);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  border-radius: 0.25rem;
}

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

.section-number {
  font-weight: 700;
  color: var(--primary);
  margin-right: 0.5rem;
}

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

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

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

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0,0,0,0.02);
}

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

.important-notice {
  background: rgba(var(--accent-rgb), 0.1);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0.25rem;
}