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

/* Адаптация к темной теме */
.bg-light {
  background-color: var(--dark-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Типографика документа */
.legal-document {
  line-height: 1.8;
  color: var(--text-primary);
}

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

.legal-document h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

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

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

.legal-document p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

.legal-document li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.legal-document strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Информационные блоки */
.info-box {
  background: var(--dark-card);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0.25rem;
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* Таблицы */
.table-responsive {
  margin: 2rem 0;
}

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

.table-dark {
  --bs-table-bg: var(--dark-card);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
}

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

.table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table td,
.table th {
  padding: 1rem;
  vertical-align: top;
}

/* Дата обновления */
.last-updated {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 2rem;
}