/* 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 juridique */
h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.75rem;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.75rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

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

/* Listes */
ul, ol {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.75rem;
}

/* Sections numérotées */
.section-number {
  font-weight: 700;
  color: var(--primary);
  margin-right: 0.5rem;
}

/* Mise en évidence */
strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Séparateurs visuels */
.legal-section {
  margin-bottom: 3rem;
}

/* Date de mise à jour */
.update-date {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding: 1rem;
  border-left: 3px solid var(--primary);
  background: var(--dark-card);
}

/* Tables responsives */
.table-responsive {
  margin-bottom: 2rem;
}

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

.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);
}

/* Contact info */
.contact-info {
  padding: 1.5rem;
  background: var(--dark-card);
  border-radius: 8px;
  margin-top: 2rem;
}