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

/* Adaptation pour site avec thème sombre/clair */
.legal-document {
  background-color: var(--dark-card);
  color: var(--text-primary);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.legal-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-section:last-child {
  border-bottom: none;
}

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

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

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

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

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

.legal-section li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.highlight-box {
  background-color: rgba(var(--primary-rgb), 0.1);
  border-left: 4px solid var(--primary);
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.highlight-box p {
  margin-bottom: 0;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-info {
  background-color: var(--dark-lighter);
  padding: 1.5rem;
  border-radius: 6px;
  margin-top: 2rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

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

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

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

.table tbody tr {
  border-bottom: 1px solid var(--border-color);
}

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

strong {
  color: var(--primary);
}

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