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

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

/* Стилизация юридического документа */
.terms-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

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

.terms-section h2 {
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

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

.terms-section h4 {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

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

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

.terms-section li {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

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

.last-update {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--dark-card, rgba(255,255,255,0.05));
  border-radius: 0.5rem;
}

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

.table {
  color: var(--text-primary);
  border-color: var(--border-color, rgba(255,255,255,0.1));
}

.table thead {
  background: var(--dark-card, rgba(255,255,255,0.05));
  border-bottom: 2px solid var(--border-color, rgba(255,255,255,0.1));
}

.table th {
  color: var(--primary);
  font-weight: 600;
  padding: 1rem;
}

.table td {
  padding: 0.875rem 1rem;
  border-color: var(--border-color, rgba(255,255,255,0.1));
}

.section-number {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1em;
}