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

/* Adaptation au thème sombre/clair */
.legal-document {
  background-color: var(--dark-surface);
  color: var(--text-primary);
  padding: 2rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.legal-document h1 {
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 1rem;
}

.legal-document h2 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

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

.legal-document p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-document ul,
.legal-document ol {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

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

.legal-document strong {
  color: var(--text-primary);
  font-weight: 600;
}

.last-update {
  background-color: var(--dark-card);
  padding: 1rem 1.5rem;
  border-radius: 0.375rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary);
}

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

.table-responsive {
  margin: 1.5rem 0;
  overflow-x: auto;
}

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

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

.table th,
.table td {
  padding: 1rem;
  border-color: var(--border-color);
}

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

@media (max-width: 768px) {
  .legal-document {
    padding: 1.5rem;
  }
  
  .legal-document h1 {
    font-size: 2rem;
  }
  
  .legal-document h2 {
    font-size: 1.5rem;
  }
}