/*
  The text pages: /privacy, /terms, /support and /delete-account.

  What it does: puts the four text pages on the same sky, type and controls
  as the home page and the quiz, using /tokens.css and /components.css
  (linked before this file). Only the look lives here; every word on these
  pages is in their HTML and must not change through a design change
  (site-checks/test-quiz-pages.mjs compares their visible text with main).

  Why not legal.css: /auth/confirm and /auth/reset build on legal.css and
  must render exactly as they do today, so legal.css is left as it was and
  serves only those two pages.

  How to change it: colours, sizes, radii and timings are tokens in
  /tokens.css; this file holds layout only. Every rule is scoped to
  body.legal, the class the four pages set.
*/
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:24px}
body.legal{margin:0;min-height:100svh;color:var(--ink-0);font-family:var(--f-sans);font-weight:500;font-size:var(--t-base);line-height:1.7;background:var(--bg-0);
  padding:28px var(--gutter) 72px;-webkit-font-smoothing:antialiased;overflow-x:hidden;position:relative}
/* the sky: the two soft lights, violet top right and coral top left, as on every page */
.legal::before,.legal::after{content:"";position:fixed;border-radius:50%;filter:blur(90px);pointer-events:none;z-index:0}
.legal::before{width:62vmax;height:62vmax;right:-26vmax;top:-34vmax;background:var(--ai-glow)}
.legal::after{width:46vmax;height:46vmax;left:-24vmax;top:-18vmax;background:var(--warm-glow)}
.legal ::selection{background:var(--ai-line);color:var(--ink-0)}
.legal :focus-visible{outline:2px solid var(--ai-0);outline-offset:3px;border-radius:var(--r-sm)}
.legal .wrap{position:relative;z-index:1;max-width:760px;margin:0 auto}

/* the wordmark and the line under it */
.legal header{display:flex;flex-direction:column;align-items:flex-start}
.legal .logo{display:inline-flex;align-items:center;min-height:var(--tap);font-family:var(--f-sans);font-weight:700;font-size:var(--t-xl);letter-spacing:-.5px;line-height:1;text-decoration:none;color:var(--ink-0);
  padding:10px 18px;border-radius:var(--r-pill);border:1px solid var(--hair);background:var(--glass-1);transition:background-color var(--dur-fast),border-color var(--dur-fast),transform var(--dur-fast) var(--ease)}
.legal .logo:hover{background:var(--glass-3);border-color:var(--ai-line);transform:translateY(-1px)}
.legal .logo:active{transform:translateY(1px) scale(.985);transition-duration:var(--dur-press)}
.legal .logo em{font-style:normal;color:var(--ai-1)}
.legal .tag{font-family:var(--f-mono);font-size:var(--t-xs);letter-spacing:.24em;color:var(--ai-0);margin-top:56px;text-transform:uppercase}

/* headings: the serif for the title, the sans for sections */
.legal h1{font-family:var(--f-display);font-weight:700;font-size:var(--d-3);line-height:1.02;letter-spacing:-.01em;margin:14px 0 18px}
.legal h2{font-family:var(--f-sans);font-weight:700;font-size:var(--t-xl);line-height:1.3;margin:52px 0 12px;padding-top:28px;border-top:1px solid var(--line-0);color:var(--ink-0)}
.legal h3{font-family:var(--f-sans);font-weight:700;font-size:var(--t-md);margin:28px 0 8px}

/* body copy */
.legal p,.legal li{color:var(--ink-1);font-size:var(--t-base)}
.legal strong{color:var(--ink-0);font-weight:700}
.legal a{color:var(--ai-0);text-decoration-thickness:1px;text-underline-offset:3px;transition:color var(--dur-fast)}
.legal a:hover{color:var(--ink-0)}
.legal ul,.legal ol{padding-left:22px}
.legal li{margin:6px 0}
.legal li::marker{color:var(--ai-1)}

/* the intro panel: the same panel as the quiz */
.legal .intro{margin:22px 0 10px;padding:26px 26px 24px;border-radius:var(--r-lg);background:var(--panel);border:1px solid var(--line-0);box-shadow:var(--shadow-card)}
.legal .intro .big{font-family:var(--f-display);font-weight:700;font-size:var(--d-1);color:var(--ink-0);line-height:1.3;margin:0;max-width:640px}
.legal .pills{list-style:none;padding:0;margin:18px 0 0;display:flex;flex-wrap:wrap;gap:8px}
.legal .pills li{margin:0;font-size:var(--t-sm);font-weight:600;color:var(--ai-0);border:1px solid var(--ai-line);background:var(--ai-tint);border-radius:var(--r-pill);padding:7px 14px}

/* tables: a keyboard focusable region that scrolls sideways on small screens */
.legal table{border-collapse:collapse;width:100%;font-size:var(--t-sm)}
.legal th,.legal td{border-bottom:1px solid var(--line-0);border-right:1px solid var(--line-0);padding:11px 13px;text-align:left;vertical-align:top;color:var(--ink-1);min-width:140px}
.legal th{background:var(--bg-2);color:var(--ink-0);font-weight:700}
.legal tr:last-child td{border-bottom:0}
.legal th:last-child,.legal td:last-child{border-right:0}
.legal .table-scroll{overflow-x:auto;margin:18px 0;border-radius:var(--r-md);border:1px solid var(--line-0)}
.legal .table-scroll:focus-visible{outline:2px solid var(--ai-0);outline-offset:3px}

/* the skip link and the footer */
.legal .skip{position:absolute;left:16px;top:-80px;z-index:10;padding:12px 18px;border-radius:var(--r-pill);background:var(--ai-0);color:var(--bg-0);font-weight:700;text-decoration:none;transition:transform var(--dur-base)}
.legal .skip:focus{transform:translateY(92px)}
.legal .foot{margin-top:64px;padding-top:24px;border-top:1px solid var(--line-0);font-size:var(--t-sm);color:var(--ink-2);line-height:2}
.legal .foot a{display:inline-flex;align-items:center;min-height:var(--tap);padding:0 4px;color:var(--ink-1);text-decoration:none;background:linear-gradient(currentColor,currentColor) 4px calc(100% - 10px)/0 1px no-repeat;transition:color var(--dur-fast),background-size var(--dur-fast) var(--ease)}
.legal .foot a:hover{color:var(--ink-0);background-size:calc(100% - 8px) 1px}

@media(min-width:1280px){.legal .wrap{max-width:800px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.legal *{transition:none!important}}
