/* Защита от горизонтального скролла */
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: 2.5rem;
}

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

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

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

.terms-section ol {
  counter-reset: item;
  list-style-type: none;
  padding-left: 0;
}

.terms-section ol > li {
  counter-increment: item;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2.5rem;
}

.terms-section ol > li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.terms-section ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

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

.highlight-text {
  font-weight: 600;
  color: var(--primary);
}

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

/* Таблица (если нужна) */
.table-responsive {
  margin: 1.5rem 0;
}

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

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

.table-dark {
  --bs-table-bg: var(--dark-card);
  --bs-table-striped-bg: var(--dark-lighter);
  --bs-table-border-color: var(--border-color);
}