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

/* Adaptation pour site sombre */
.bg-light {
  background-color: var(--dark-lighter) !important;
  color: var(--text-primary) !important;
}

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

/* Styles pour le contenu légal */
.legal-section {
  margin-bottom: 2.5rem;
}

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

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

.legal-section h4 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

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

.legal-section ul,
.legal-section ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.highlight-box {
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid var(--primary);
  background: var(--dark-lighter);
  border-radius: 0.5rem;
}

.highlight-box p {
  margin-bottom: 0;
  font-weight: 500;
}

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

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

.table td {
  padding: 0.875rem 1rem;
}

/* Liens de contact */
.contact-info {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--dark-card);
  border-radius: 0.5rem;
}

.contact-info strong {
  color: var(--primary);
}