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

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

/* Styles pour document juridique */
.legal-document {
  line-height: 1.8;
  color: var(--text-primary);
}

.legal-document h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  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.15rem;
  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: 2rem;
}

.legal-document li {
  margin-bottom: 0.5rem;
}

.legal-document .section-number {
  font-weight: 700;
  color: var(--primary);
}

.legal-document .update-date {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.legal-document .important-notice {
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid var(--primary);
  background-color: rgba(var(--primary-rgb, 255, 107, 107), 0.05);
}

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

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

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

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