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

/* Адаптация под тему */
.bg-light {
  background-color: var(--light-card) !important;
  color: var(--text-dark) !important;
}

/* Стили для юридического документа */
.legal-document {
  font-size: 0.95rem;
  line-height: 1.7;
  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: 1rem;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

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

.legal-document p {
  margin-bottom: 1rem;
}

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

.legal-document li {
  margin-bottom: 0.5rem;
}

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

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

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

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

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

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

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

@media (max-width: 768px) {
  .legal-document h1 {
    font-size: 2rem;
  }
  
  .legal-document h2 {
    font-size: 1.5rem;
  }
  
  .legal-document {
    font-size: 0.9rem;
  }
}