/* Protection contre le défilement horizontal */
html, body { 
  overflow-x: hidden; 
  max-width: 100vw; 
}

/* Adaptation au thème sombre */
.bg-light {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.table-dark {
  --bs-table-bg: rgba(255, 255, 255, 0.03);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.05);
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
}

.table thead {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Typographie juridique */
.legal-section {
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

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

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

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

.legal-intro {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-left: 3px solid var(--primary);
  margin-bottom: 2rem;
}

.section-number {
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

.legal-list {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-list li {
  margin-bottom: 0.75rem;
}

.subsection {
  margin-left: 2rem;
  margin-top: 1rem;
}

.important-notice {
  background: rgba(var(--accent-rgb, 255, 193, 7), 0.1);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}

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

/* Responsive */
@media (max-width: 768px) {
  .legal-section h2 {
    font-size: 1.3rem;
  }
  
  .legal-intro,
  .important-notice {
    padding: 1rem;
  }
  
  .subsection {
    margin-left: 1rem;
  }
}