/* ==========================================================================
   Satofly — pages légales (mentions, CGV, confidentialité, remboursements)
   Surface : en-tête crème sobre + colonne de lecture ~740px, interligne 1.7.
   S'appuie sur les tokens et composants de satofly.css. Ne PAS éditer satofly.css.
   ========================================================================== */

.legal-page {
  --legal-ink: #23363C;          /* encre adoucie, lisible sur de longs textes */
  --legal-rule: var(--creme-300);
  background: var(--creme);
}

/* Colonne de lecture centrée ~740px (gouttière = --gutter) */
.legal-shell {
  width: 100%;
  max-width: 740px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- En-tête de page (crème, sobre) ------------------------------------- */
.legal-hero { padding-top: 76px; padding-bottom: 36px; }
.legal-hero .eyebrow { display: block; margin-bottom: 16px; }
.legal-title {
  font-size: clamp(30px, 5.2vw, 40px);
  letter-spacing: -0.04em;
  color: var(--encre);
}
.legal-lede {
  margin-top: 18px;
  max-width: 58ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--gris);
}

/* Date de version du document (mentions légales, confidentialité) */
.legal-updated {
  margin-top: 14px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--gris);
}

/* ---- Sommaire à puces --------------------------------------------------- */
.legal-toc {
  margin-top: 30px;
  padding: 22px 24px;
  background: #fff;
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
}
.legal-toc .toc-title {
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gris);
  margin-bottom: 14px;
}
.legal-toc ol, .legal-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 30px;
}
.legal-toc li { break-inside: avoid; margin-bottom: 9px; }
.legal-toc a {
  display: flex;
  gap: 9px;
  align-items: baseline;
  color: var(--sarcelle-700);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}
.legal-toc a:hover { color: var(--sarcelle-900); }
.legal-toc a .n {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--abricot-800);
  flex: none;
}

/* ---- Corps du document -------------------------------------------------- */
.legal-body { padding-bottom: 84px; }
.legal-doc { padding-top: 8px; }

.legal-doc p {
  margin-top: 15px;
  line-height: 1.75;
  color: var(--legal-ink);
  font-size: 16px;
}
.legal-doc h2 {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--legal-rule);
  scroll-margin-top: 24px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--sarcelle-900);
}
.legal-doc h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-doc h2 + p { margin-top: 12px; }

/* Listes : puces abricot / compteur sarcelle en mono */
.legal-doc ul, .legal-doc ol {
  margin-top: 16px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.legal-doc li {
  position: relative;
  padding-left: 28px;
  line-height: 1.7;
  color: var(--legal-ink);
}
.legal-doc ul > li::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--abricot-500);
}
.legal-doc ol { counter-reset: li; }
.legal-doc ol > li { counter-increment: li; }
.legal-doc ol > li::before {
  content: counter(li);
  position: absolute;
  left: 0;
  top: 1px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--sarcelle-100);
  color: var(--sarcelle-900);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-doc strong { font-weight: 800; color: var(--sarcelle-900); }
.legal-doc a {
  color: var(--sarcelle-700);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--sarcelle-300);
}
.legal-doc a:hover { color: var(--sarcelle-900); text-decoration-color: currentColor; }
.legal-doc .small { font-size: 13.5px; color: var(--gris); line-height: 1.65; }
.legal-doc .mono { color: var(--sarcelle-900); }

/* ---- Actions de bas de page --------------------------------------------- */
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--legal-rule);
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 640px) {
  .legal-hero { padding-top: 52px; padding-bottom: 28px; }
  .legal-toc ol, .legal-toc ul { columns: 1; }
  .legal-body { padding-bottom: 60px; }
  .legal-doc h2 { margin-top: 36px; padding-top: 24px; }
}
