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

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

/* Типографика для юридического документа */
.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: 3rem;
  margin-bottom: 1.5rem;
  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.1rem;
  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;
}

.update-date {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--light-card);
  border-left: 4px solid var(--primary);
}

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

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

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

.table thead {
  background: var(--light-card);
  border-bottom: 2px solid rgba(0,0,0,0.1);
}

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

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

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