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

/* Adaptation au thème sombre */
.bg-light {
  background-color: var(--dark-lighter) !important;
  color: var(--text-primary) !important;
}

/* Typographie pour document juridique */
.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.5rem;
  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.2rem;
  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-section {
  margin-bottom: 2rem;
}

.legal-highlight {
  background-color: var(--dark-card);
  padding: 1rem;
  border-left: 3px solid var(--primary);
  margin: 1.5rem 0;
  border-radius: 4px;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Tableaux pour sections spécifiques */
.table {
  color: var(--text-primary);
  border-color: var(--border-color);
  margin-bottom: 2rem;
}

.table-dark {
  --bs-table-bg: var(--dark-card);
  --bs-table-striped-bg: var(--dark-lighter);
  --bs-table-border-color: var(--border-color);
}

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

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