/* 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;
}

.terms-content {
  line-height: 1.8;
  color: var(--text-primary);
}

.terms-content h2 {
  color: var(--primary);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.terms-content h3 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  font-weight: 500;
}

.terms-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

.terms-content ul,
.terms-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.terms-content li {
  margin-bottom: 0.5rem;
}

.terms-section {
  margin-bottom: 2.5rem;
}

.last-update {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 2rem;
  padding: 1rem;
  border-left: 3px solid var(--primary);
  background: var(--dark-card);
}

.important-notice {
  padding: 1.5rem;
  margin: 2rem 0;
  background: var(--dark-card);
  border-left: 4px solid var(--accent);
}

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

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

.definitions-list dt {
  color: var(--primary);
  font-weight: 600;
  margin-top: 1rem;
}

.definitions-list dd {
  margin-left: 2rem;
  margin-bottom: 1rem;
}