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

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

/* Стили для юридической страницы */
.legal-section {
  margin-bottom: 3rem;
}

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

.legal-section h3 {
  color: var(--secondary);
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-section h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

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

.legal-section ul,
.legal-section ol {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.legal-section ul li,
.legal-section ol li {
  margin-bottom: 0.5rem;
}

.highlight-box {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin: 2rem 0;
  border-left: 4px solid var(--primary);
}

.highlight-box p {
  color: var(--text-primary);
  margin-bottom: 0;
  font-weight: 500;
}

.table-responsive {
  margin: 2rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
}

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

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

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

.table tbody td {
  padding: 0.875rem 1rem;
  border-color: var(--border-color);
}

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

.contact-info {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--card-border);
  margin: 2rem 0;
}

.contact-info h4 {
  color: var(--primary);
  margin-top: 0;
}

.update-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}