/* ==========================================================================
   LEGAL — Styles pour les pages légales (mentions, confidentialité)
   ========================================================================== */

.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6) var(--space-24);
}

.legal h1 {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.legal > p:first-of-type {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.legal h2 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.legal h3 {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal p {
  margin-bottom: var(--space-4);
  color: var(--color-text-light);
  line-height: 1.7;
  font-size: var(--text-sm);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-4) 0 var(--space-6);
  font-size: var(--text-sm);
}

.legal th,
.legal td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.legal th {
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  background: var(--color-surface);
}

.legal td {
  color: var(--color-text-light);
}

.legal ul {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.legal li {
  margin-bottom: var(--space-2);
  color: var(--color-text-light);
  line-height: 1.6;
  list-style: disc;
  font-size: var(--text-sm);
}

.legal-disclaimer {
  background: var(--color-surface);
  border-left: 4px solid var(--color-warning, #f59e0b);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  margin: var(--space-6) 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-light);
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .legal {
    padding: var(--space-8) var(--space-4) var(--space-16);
  }

  .legal h1 {
    font-size: var(--text-2xl);
  }

  .legal table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .legal th,
  .legal td {
    white-space: nowrap;
  }
}
