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

/* Адаптация для светлой темы */
.legal-section {
  background-color: var(--light-card);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary);
}

.legal-section h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.legal-section h3 {
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.legal-section h4 {
  color: var(--text-dark);
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: 500;
}

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

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

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

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

.table-responsive {
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

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

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

.table thead th {
  padding: 1rem;
  font-weight: 600;
  border: none;
}

.table tbody td {
  padding: 1rem;
  vertical-align: top;
  border-color: rgba(0,0,0,0.08);
}

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

.alert-info {
  background-color: rgba(var(--primary-rgb), 0.1);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.alert-warning {
  background-color: rgba(var(--warning-rgb), 0.1);
  border-left: 4px solid var(--warning);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.contact-box {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-top: 3rem;
}

.contact-box h3 {
  color: white;
  margin-bottom: 1rem;
}

.contact-box p {
  color: rgba(255,255,255,0.95);
  margin-bottom: 0.5rem;
}

.contact-box a {
  color: white;
  text-decoration: underline;
  font-weight: 500;
}

.contact-box a:hover {
  color: rgba(255,255,255,0.85);
}

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