/* Pages légales Kaleyo — mentions légales, CGV, politique de confidentialité.
   Même univers que le site : Quicksand, encre bleu-vert sur fond crème (le finale). */

:root {
  --ink: #0c3b42;
  --ink-2: rgba(12, 59, 66, 0.82);
  --ink-3: rgba(12, 59, 66, 0.58);
  --cream: #f7f1e0;
  --paper: rgba(255, 255, 255, 0.72);
  --line: rgba(12, 59, 66, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Quicksand, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 500;
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 88% -8%, #fdf2c8 0%, rgba(253, 242, 200, 0) 62%),
    radial-gradient(900px 520px at -8% 6%, #d4eee8 0%, rgba(212, 238, 232, 0) 58%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(12, 59, 66, 0.35); transition: text-decoration-color 200ms ease; }
a:hover { text-decoration-color: var(--ink); }

/* ---------- barre du haut ---------- */
.lg-top {
  position: sticky; top: 14px; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 9px 10px 9px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.7); backdrop-filter: blur(18px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 0 1px rgba(12, 59, 66, 0.08), 0 12px 32px rgba(12, 59, 66, 0.1);
}
.lg-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.lg-mark { display: block; flex: 0 0 auto; width: 19px; height: 23px; overflow: visible; }
.lg-mark path { fill: none; stroke: currentColor; stroke-width: 7.5; stroke-linecap: round; stroke-linejoin: round; }
.lg-mark rect { fill: #f5b031; }
.lg-nav { display: flex; gap: 4px; margin-left: auto; }
.lg-nav a { padding: 8px 15px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink-2); transition: background 200ms ease, color 200ms ease; }
.lg-nav a:hover { background: rgba(12, 59, 66, 0.06); color: var(--ink); }
.lg-nav a[aria-current="page"] { background: rgba(12, 59, 66, 0.09); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(12, 59, 66, 0.1); }
.lg-back { padding: 11px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: box-shadow 250ms ease; }
.lg-back:hover { box-shadow: 0 10px 26px rgba(12, 59, 66, 0.3); }

/* ---------- contenu ---------- */
.lg-wrap { width: min(820px, calc(100% - 40px)); margin: 64px auto 96px; }
.lg-eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.lg-wrap h1 { margin: 0; font-size: clamp(36px, 5.4vw, 58px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.lg-meta { margin: 18px 0 0; font-size: 15px; color: var(--ink-3); }
.lg-lead { margin: 26px 0 0; font-size: 19px; line-height: 1.7; color: var(--ink-2); }

.lg-toc { margin: 38px 0 12px; padding: 24px 28px; border-radius: 24px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(12, 59, 66, 0.06); }
.lg-toc-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.lg-toc ol { margin: 0; padding-left: 1.35em; columns: 2; column-gap: 34px; font-size: 15.5px; line-height: 1.5; }
.lg-toc li { break-inside: avoid; padding: 4px 0; }
.lg-toc a { text-decoration: none; color: var(--ink-2); }
.lg-toc a:hover { color: var(--ink); text-decoration: underline; }

.lg-sec { margin-top: 52px; }
.lg-sec h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-size: clamp(22px, 2.8vw, 28px); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.lg-sec h2 .n { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 0; }
.lg-sec h3 { margin: 28px 0 8px; font-size: 18px; font-weight: 700; }
.lg-sec p { margin: 0 0 14px; }
.lg-sec ul, .lg-sec ol.lg-list { margin: 0 0 16px; padding-left: 1.3em; }
.lg-sec li { margin: 6px 0; padding-left: 4px; }
.lg-sec li::marker { color: var(--ink-3); }
.lg-sec strong { font-weight: 700; }

/* fiche d'identité (éditeur, hébergeur…) */
.lg-facts { display: grid; grid-template-columns: minmax(150px, 210px) 1fr; margin: 0 0 8px; border-radius: 20px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.lg-facts dt, .lg-facts dd { margin: 0; padding: 13px 20px; border-top: 1px solid var(--line); }
.lg-facts dt:first-of-type, .lg-facts dt:first-of-type + dd { border-top: 0; }
.lg-facts dt { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding-top: 16px; }
.lg-facts dd { font-weight: 600; }

/* tableaux */
.lg-tablewrap { margin: 6px 0 18px; overflow-x: auto; border-radius: 20px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.lg-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; }
.lg-table th { padding: 13px 18px; text-align: left; font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); background: rgba(12, 59, 66, 0.04); }
.lg-table td { padding: 14px 18px; vertical-align: top; border-top: 1px solid var(--line); }
.lg-table td:first-child { font-weight: 700; }

/* encadrés */
.lg-note { margin: 18px 0; padding: 18px 22px; border-radius: 18px; background: rgba(12, 59, 66, 0.055); box-shadow: inset 3px 0 0 var(--ink); font-size: 16px; }
.lg-note p:last-child, .lg-note ul:last-child { margin-bottom: 0; }
.lg-note strong:first-child { display: inline-block; margin-bottom: 4px; }

/* éléments à compléter par Kaleyo, volontairement bien visibles */
mark.todo { padding: 2px 9px; border-radius: 8px; background: #ffe7a1; color: #5b3a00; font-weight: 700; font-size: 0.94em; box-shadow: inset 0 0 0 1px rgba(91, 58, 0, 0.2); }

/* ---------- pied de page ---------- */
.lg-foot { width: min(1120px, calc(100% - 32px)); margin: 0 auto 32px; padding: 26px 30px; border-radius: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; background: var(--ink); color: rgba(255, 255, 255, 0.86); font-size: 14.5px; }
.lg-foot a { text-decoration: none; color: #fff; font-weight: 600; }
.lg-foot a:hover { text-decoration: underline; }
.lg-foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ---------- petits écrans ---------- */
@media (max-width: 860px) {
  .lg-nav { display: none; }
  .lg-back { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .lg-wrap { margin-top: 44px; }
  .lg-toc { padding: 20px 22px; }
  .lg-toc ol { columns: 1; }
  .lg-facts { grid-template-columns: 1fr; }
  .lg-facts dt { padding-bottom: 0; border-top: 1px solid var(--line); }
  .lg-facts dt:first-of-type { border-top: 0; }
  .lg-facts dd { border-top: 0; padding-top: 4px; }
  .lg-facts dt:first-of-type + dd { border-top: 0; }
  .lg-foot { padding: 22px; border-radius: 24px; }

  /* tableaux : chaque ligne devient une carte empilée, plus de défilement latéral */
  .lg-tablewrap { overflow: visible; }
  .lg-table { min-width: 0; }
  .lg-table thead { display: none; }
  .lg-table, .lg-table tbody, .lg-table tr, .lg-table td { display: block; width: 100%; }
  .lg-table tr { padding: 14px 0; border-top: 1px solid var(--line); }
  .lg-table tr:first-child { border-top: 0; }
  .lg-table td { padding: 2px 20px; border: 0; }
  .lg-table td:first-child { padding-bottom: 4px; }
}

@media print {
  body { background: #fff; font-size: 11.5pt; }
  .lg-top, .lg-foot nav { display: none; }
  .lg-toc { box-shadow: none; border: 1px solid #ccc; }
  mark.todo { background: none; box-shadow: none; }
}
