/* legal.css — pages légales RQDT (mentions, CGU, confidentialité, cookies).
   Design system RQDT : terracotta + crème + neutres chauds. Self-contained,
   aligné sur tokens.css (couleurs reprises des variables --color-primary/neutral). */

:root {
  --lg-terra:   #EB5F40;  /* primary-500 (terracotta, logo) */
  --lg-terra-d: #D04A2B;  /* primary-600 */
  --lg-ink:     #1A1612;  /* neutral-900 (ink) */
  --lg-strong:  #2A231C;  /* neutral-800 */
  --lg-text:    #40362B;  /* neutral-700 (deep clay) */
  --lg-muted:   #7F6F5A;  /* neutral-500 (warm umber) */
  --lg-bg:      #FFFCF7;  /* neutral-0 (crème, fond page) */
  --lg-card:    #ffffff;
  --lg-border:  #E6D9C2;  /* neutral-200 (sand) */
  --lg-soft:    #FDF5F2;  /* primary-50 (terracotta très clair) */
}

/* Fond crème RQDT (uniquement sur les pages chargeant legal.css) */
body { background: var(--lg-bg); }

.legal {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem 5rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- En-tête ---------- */
.legal h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.07;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--lg-ink);
}
.legal h1::after {
  content: "";
  display: block;
  width: 64px; height: 5px;
  margin-top: 1.1rem;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--lg-terra), #ED8263);
}
.legal__updated {
  display: inline-block;
  margin: 1.1rem 0 2.4rem;
  padding: .32rem .85rem;
  border-radius: 99px;
  background: var(--lg-soft);
  color: var(--lg-terra-d);
  font-size: .82rem;
  font-weight: 600;
}
.legal__intro {
  font-size: 1.13rem;
  line-height: 1.6;
  color: var(--lg-text);
  margin: 0 0 2.2rem;
}

/* ---------- Sommaire en « pills » ---------- */
.legal__toc {
  background: var(--lg-card);
  border: 1px solid var(--lg-border);
  border-radius: 16px;
  padding: 1.1rem 1.3rem 1.2rem;
  margin-bottom: 2.6rem;
  box-shadow: 0 6px 24px rgba(64, 54, 43, .06);
}
.legal__toc strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  color: var(--lg-ink);
  font-size: .95rem;
  margin-bottom: .75rem;
}
.legal__toc ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.legal__toc li { margin: 0; }
.legal__toc a {
  display: inline-block;
  padding: .36rem .82rem;
  border-radius: 99px;
  background: var(--lg-soft);
  color: var(--lg-terra-d);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.legal .legal__toc a:hover {
  background: var(--lg-terra);
  color: #fff;
  box-shadow: none;
  transform: translateY(-1px);
}

/* ---------- Titres de section ---------- */
.legal h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--lg-ink);
  margin: 3rem 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--lg-terra);
  scroll-margin-top: 1.5rem;
}
.legal h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--lg-strong);
  margin: 1.7rem 0 .5rem;
}

/* ---------- Corps de texte ---------- */
.legal p, .legal li {
  line-height: 1.72;
  color: var(--lg-text);
  font-size: 1rem;
}
.legal p { margin: 0 0 .9rem; }
.legal ul { padding-left: 1.25rem; margin: .5rem 0 1.2rem; }
.legal li { margin: .35rem 0; }
.legal strong { color: var(--lg-strong); font-weight: 600; }
.legal a {
  color: var(--lg-terra-d);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
  border-radius: 4px;
  transition: color .12s ease, background .12s ease, box-shadow .12s ease;
}
.legal a:hover {
  color: #fff;
  background: var(--lg-terra);
  box-shadow: 0 0 0 2px var(--lg-terra);
  text-decoration: none;
}
.legal address { font-style: normal; line-height: 1.7; color: var(--lg-text); }

/* ---------- Cartes (éditeurs, etc.) ---------- */
.legal__card {
  background: var(--lg-card);
  border: 1px solid var(--lg-border);
  border-radius: 18px;
  padding: 1.45rem 1.6rem;
  margin: 1.2rem 0;
  box-shadow: 0 6px 24px rgba(64, 54, 43, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.legal__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(64, 54, 43, .12);
}
.legal__card h3 { margin-top: 0; color: var(--lg-terra-d); }

/* ---------- Encadré (callout) ---------- */
.legal__box {
  background: var(--lg-soft);
  border: 1px solid #FBE5DE;
  border-left: 4px solid var(--lg-terra);
  border-radius: 14px;
  padding: 1.1rem 1.35rem;
  margin: 1.6rem 0;
}
.legal__box p:last-child { margin-bottom: 0; }

/* ---------- Tableaux ---------- */
.legal table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.2rem 0 1.8rem;
  font-size: .94rem;
  background: var(--lg-card);
  border: 1px solid var(--lg-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(64, 54, 43, .05);
}
.legal th, .legal td {
  text-align: left;
  padding: .72rem .9rem;
  border-bottom: 1px solid var(--lg-border);
  vertical-align: top;
  color: var(--lg-text);
}
.legal thead th {
  background: var(--lg-soft);
  color: var(--lg-ink);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}
.legal tbody tr:last-child td { border-bottom: none; }
.legal tbody tr:hover td { background: var(--lg-soft); }

.legal code {
  background: var(--lg-soft);
  color: var(--lg-terra-d);
  padding: .12rem .42rem;
  border-radius: 6px;
  font-size: .9em;
  word-break: break-word;
}
