/* =============================================================
   Sub-pages: about · pricing · security · network requirements · 404 (EN + FR) and the legal
   documents (legal notice, terms, privacy, DPA). Migration of 25/10/2026 (iPhone chantier):
   replaces the former pages.css and legal.css, which carried their own tokens, nav and footer.
   Builds on the home sheets, loaded first by PageLayout.astro and LegalLayout.astro:
   home/base.css (tokens, reset, type, buttons) and home/chrome.css (nav, footer, 44px targets).
   This sheet adds only the reading column and the document elements these pages carry.
   ============================================================= */

:root{
  --mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace; /* host names, paths: never prose */
  --measure:720px;
}

/* ---- reading column ---- */
main.page,main.legal{flex:1;width:100%;max-width:calc(var(--measure) + 2*var(--gutter));margin:0 auto;padding:clamp(56px,8vw,112px) var(--gutter) 0;overflow-wrap:break-word}
.page .eyebrow .dot,.legal-eyebrow .dot{display:none}
.legal-eyebrow{font-size:14px;font-weight:500;letter-spacing:-.005em;color:var(--muted);margin-bottom:18px}
.legal-archived{font-size:15px;line-height:1.5;color:var(--ink);background:var(--peachbg,#FFF5ED);border:1px solid var(--peachbd,#FFD9BE);border-radius:12px;padding:12px 16px;margin:0 0 28px}
.legal-archived a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.legal-changes{background:var(--surface,#F7F7F8);border:1px solid var(--line,#EAEAEC);border-radius:14px;padding:20px 22px;margin:0 0 32px}
.legal-changes h2{font-size:17px;line-height:1.35;font-weight:600;letter-spacing:-.01em;margin:0 0 10px}
.legal-changes ul{margin:0;padding-left:20px}
.legal-changes li{font-size:15px;line-height:1.55;color:var(--ink-2,#3A3A3E);margin:6px 0}

/* ---- page head ---- */
.page-hero{margin-bottom:clamp(56px,7vw,88px)}
.page-hero h1,.legal-doc h1{font-size:clamp(36px,5.2vw,64px);font-weight:600;letter-spacing:-.04em;line-height:1.04;text-wrap:balance;margin-bottom:22px}
.page-hero h1 .ital{font-style:normal;color:var(--muted)}  /* the home hero's two-tone line, Geist only */
.page-sub{font-size:var(--fs-lede);color:var(--ink-2);line-height:1.5;letter-spacing:-.011em;max-width:620px;text-wrap:pretty}
.page-sub+.page-sub{margin-top:14px}
.page-meta-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.page-meta-pill{display:inline-flex;align-items:center;font-size:13px;font-weight:500;color:var(--ink-2);background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:6px 12px}

/* ---- sections ---- */
.page-sec+.page-sec{margin-top:clamp(40px,5vw,56px)}
.page-sec h2{font-size:var(--fs-h3);font-weight:600;letter-spacing:-.03em;line-height:1.15;text-wrap:balance;margin-bottom:14px}
.page-sec p,.page-sec li{color:var(--ink-2);line-height:1.6;letter-spacing:-.008em}
.page-sec p+p,.page-sec p+ul,.page-sec ul+p,.page-sec table+p{margin-top:14px}
.page-sec strong{color:var(--ink);font-weight:600}
.page-sec ul,.legal-doc ul{list-style:none}
.page-sec li,.legal-doc li{position:relative;padding-left:22px}
.page-sec li+li{margin-top:10px}
.page-sec li::before,.legal-doc li::before{content:"";position:absolute;left:0;top:.8em;width:8px;height:1.5px;background:var(--muted);border-radius:1px}

/* links in running text: the home's `p a` treatment, extended to list items and cells */
.page li a,.page td a,.legal-doc li a,.legal-doc td a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px;transition:text-decoration-color .15s}
.page li a:hover,.page td a:hover,.legal-doc li a:hover,.legal-doc td a:hover{text-decoration-color:currentColor}

code{font-family:var(--mono);font-size:.84em;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:1px 6px;overflow-wrap:anywhere;-webkit-box-decoration-break:clone;box-decoration-break:clone}

/* ---- tables (network requirements): a grid on wide screens, one stacked row per host on phones ---- */
.page-sec table{width:100%;border-collapse:collapse;margin-top:10px}
.page-sec thead th{text-align:left;font-size:13px;font-weight:500;color:var(--muted);padding:0 14px 10px;border-bottom:1px solid var(--line-2)}
.page-sec td{text-align:left;vertical-align:top;padding:14px;border-bottom:1px solid var(--line);color:var(--ink-2);line-height:1.5}
.page-sec th:first-child,.page-sec td:first-child{padding-left:0}
.page-sec th:last-child,.page-sec td:last-child{padding-right:0}
.page-sec td code{white-space:nowrap}
@media(max-width:640px){
  .page-sec table,.page-sec tbody,.page-sec tr,.page-sec td{display:block;width:100%}
  .page-sec thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .page-sec tr{padding:14px 0;border-bottom:1px solid var(--line)}
  .page-sec td{padding:0;border:0}
  .page-sec td+td{margin-top:4px}
  .page-sec td:nth-child(2){font-size:14px;color:var(--muted)}
  .page-sec td code{white-space:normal}
}
.page-note{margin-top:18px;padding:16px 18px;background:var(--surface);border:1px solid var(--line);border-radius:16px;font-size:16px;line-height:1.6;color:var(--ink-2)}

/* ---- closing lines ---- */
.page-reviewed{margin-top:56px;font-size:15px;line-height:1.6;color:var(--muted)}
.page-cta{margin-top:clamp(56px,7vw,80px);padding-top:32px;border-top:1px solid var(--line);color:var(--ink-2);line-height:1.6}
/* the home's primary button (.btn .btn-primary), for the one call to action a page carries */
.page-cta-btn{display:inline-flex;align-items:center;gap:10px;height:52px;padding:0 24px;margin-top:32px;border-radius:999px;background:var(--accent);color:#FFF;font-size:16px;font-weight:500;letter-spacing:-.01em;text-decoration:none;white-space:nowrap;box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 6px 16px -8px rgba(91,63,209,.6);transition:background-color .15s,transform .12s var(--ease)}
.page-cta-btn:hover{background:var(--accent-hover)}
.page-cta-btn:active{transform:translateY(1px)}
.page-cta-btn::after{content:"→";transition:transform .2s var(--ease)}
.page-cta-btn:hover::after{transform:translateX(3px)}

/* ---- legal documents (content ported verbatim: element selectors only) ---- */
.legal-doc{font-size:clamp(16px,1.1vw,17px)}
.legal-doc>p:first-of-type{font-size:var(--fs-lede);color:var(--ink-2);line-height:1.5;letter-spacing:-.011em;max-width:620px}
.legal-doc>p:nth-of-type(2){font-size:14px;color:var(--muted);margin-top:10px}
.legal-doc section{scroll-margin-top:76px}
.legal-doc h2{font-size:clamp(21px,1.8vw,24px);font-weight:600;letter-spacing:-.025em;line-height:1.25;margin:40px 0 12px;padding-top:24px;border-top:1px solid var(--line)}
.legal-doc h3{font-size:1.06em;font-weight:600;letter-spacing:-.015em;margin:24px 0 6px}
.legal-doc p,.legal-doc li{line-height:1.65;color:var(--ink-2);letter-spacing:-.005em}
.legal-doc p{margin:10px 0}
.legal-doc ul{margin:10px 0}
.legal-doc li{margin:8px 0}
.legal-doc strong{color:var(--ink);font-weight:600}
/* wide tables scroll inside their own box; the page itself never scrolls sideways */
.legal-doc table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-collapse:collapse;margin:16px 0;font-size:14px;line-height:1.5}
.legal-doc th,.legal-doc td{border:1px solid var(--line-2);padding:8px 11px;text-align:left;vertical-align:top;min-width:120px}
.legal-doc th{background:var(--bg-deep);font-weight:600;color:var(--ink)}
.legal-doc mark.todo{background:#FDF1D6;color:#7A4F09;border:1px solid #E9C877;border-radius:5px;padding:1px 6px;font-family:var(--mono);font-size:12px}

/* ---- use-case pages (26/10): the home's device frames inside the reading column, and the FAQ ---- */
.page-fig{margin-top:28px;display:flex;justify-content:center}
.page-fig-window .dev{width:100%}
.page-faq+.page-faq{margin-top:22px}
.page-faq h3{font-size:clamp(17px,1.2vw,18px);font-weight:600;letter-spacing:-.015em;line-height:1.35;color:var(--ink);margin-bottom:6px}
.page-faq+p{margin-top:28px}
@media(max-width:640px){.page-fig-window{padding:8px 0}}
