/* Senditor's legal pages: /privacy, /terms, /data-deletion (rendered by ops/landing-deploy/render-legal.py from
   dashboard/server/lab/legal.py). The landing's look, copied from security.css (never imported, so a change there cannot
   move these pages): the dark stage carries the top bar and the title, the sheet slides over it with the text. On the sheet
   a reading column of about 70 characters, beside a table of contents that stays in view on a computer. No script, and no
   motion beyond the buttons' press: a reference page is read, not watched. Colours are tokens (tokens.css). */

:root {
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-press: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--stage); }
body { margin: 0; background: var(--stage); color: var(--s-ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--s-light); }
.sheet ::selection { background: var(--selection); }
h1, h2, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--s-focus); outline-offset: 3px; }
.sheet :focus-visible { outline-color: var(--focus); }
.skip { position: fixed; z-index: 60; left: 16px; top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--s-chosen); color: var(--s-on-chosen); font: 600 14px/1 var(--font); }
.skip:not(:focus-visible) { clip-path: inset(50%); opacity: 0; }
.mark { width: 24px; height: 24px; flex: none; }
.mk-up { fill: var(--s-mark-upper); }
.mk-lo { fill: var(--s-mark-lower); }
.foot .mk-up { fill: var(--mark-upper); }
.foot .mk-lo { fill: var(--mark-lower); }

/* ---------- buttons and the top bar (site.css, the plain page's bar: no glass) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 550 16px/1 var(--font); letter-spacing: -.01em; white-space: nowrap; transition: transform 160ms var(--e-press), background-color 200ms ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn-chosen { background: var(--s-chosen); color: var(--s-on-chosen); }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.nav { position: absolute; z-index: 50; top: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 6px 0 10px; border-radius: 999px; color: var(--s-ink); background: var(--s-veil); box-shadow: inset 0 0 0 .5px var(--s-hair); white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 8px; border-radius: 14px; font: 600 17px/1 var(--font); letter-spacing: -.02em; }
.nav .brand { margin-right: 6px; }
.links { display: flex; gap: 2px; }
.links a { height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; font: 500 14px/1 var(--font); color: var(--s-ink-2); transition: color 200ms ease, background-color 200ms ease; }
.nav .btn { margin-left: 6px; }
@media (hover: hover) and (pointer: fine) {
  .btn-chosen:hover { background: var(--s-chosen-hover); }
  .links a:hover { color: var(--s-ink); background: var(--s-veil-2); }
}

/* ---------- the title, on the stage ---------- */
.hero { padding: 150px 20px 96px; text-align: center; background: var(--stage); }
h1 { margin: 22px auto 0; max-width: 18ch; font: 600 66px/1.04 var(--font); letter-spacing: -.04em; color: var(--s-ink); text-wrap: balance; }
.sub { margin: 22px auto 0; max-width: 40ch; font: 400 20px/1.45 var(--font); color: var(--s-ink-2); letter-spacing: -.01em; text-wrap: balance; }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px; margin: 40px auto 0; }
.jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--s-veil); box-shadow: inset 0 0 0 1px var(--s-hair); font: 500 14px/1 var(--font); color: var(--s-ink-2); transition: color 200ms ease, background-color 200ms ease, transform 160ms var(--e-press); -webkit-tap-highlight-color: transparent; }
.jump a:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .jump a:hover { color: var(--s-ink); background: var(--s-veil-2); } }
html { scroll-behavior: smooth; }

/* ---------- the sheet and the footer (security.css) ---------- */
.sheet { position: relative; z-index: 10; margin-top: -48px; background: var(--sheet); color: var(--ink); border-radius: 40px 40px 0 0; box-shadow: 0 -40px 80px -20px var(--sheet-shadow); }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 48px; }
.foot { border-top: 1px solid var(--line); padding-block: 48px 56px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot .brand { margin-left: -8px; color: var(--ink); }
.foot-brand p { margin-top: 10px; max-width: 34ch; font: 400 14px/1.5 var(--font); color: var(--ink-2); }
.foot-h { margin-bottom: 4px; font: 600 13px/1.3 var(--font); letter-spacing: .02em; color: var(--ink); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; }
.foot-col a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; font: 400 15px/1.3 var(--font); color: var(--ink-2); transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) {
  .foot-col a:hover { color: var(--ink); }
}

/* ---------- this page's own: the date, the page switch, the reading column ---------- */
.date { margin: 18px auto 0; font: 500 14px/1.2 var(--font); color: var(--s-ink-3); font-variant-numeric: tabular-nums; }
/* the three legal pages, as the hero's section links; the page you are on wears the chosen fill */
.jump a[aria-current="page"] { color: var(--s-on-chosen); background: var(--s-chosen); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .jump a[aria-current="page"]:hover { color: var(--s-on-chosen); background: var(--s-chosen-hover); } }

.doc { max-width: 1200px; margin: 0 auto; padding: 96px 48px 128px; display: grid; grid-template-columns: 224px minmax(0, 39em); gap: 88px; justify-content: center; align-items: start; }
.toc { position: sticky; top: 32px; max-height: calc(100vh - 64px); overflow-y: auto; overscroll-behavior: contain; padding: 4px 4px 4px 0; }
.toc-h { margin-bottom: 10px; font: 600 13px/1.3 var(--font); letter-spacing: .02em; color: var(--ink); }
.toc ol { border-left: 1px solid var(--line); }
.toc a { display: block; margin-left: -1px; padding: 6px 0 6px 15px; border-left: 1px solid transparent; font: 400 14px/1.4 var(--font); color: var(--ink-2); text-wrap: pretty; transition: color 160ms ease, border-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--ink); border-left-color: var(--line-2); } }

.prose { font-size: 17px; overflow-wrap: break-word; }
.prose h2 { margin-top: 64px; font: 600 28px/1.15 var(--font); letter-spacing: -.025em; color: var(--ink); text-wrap: balance; scroll-margin-top: 32px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { font: 400 17px/1.65 var(--font); color: var(--ink-2); text-wrap: pretty; }
.prose p { margin-top: 18px; }
.prose h2 + p, .prose h2 + ul { margin-top: 16px; }
.prose strong { font-weight: 600; color: var(--ink); }
/* a paragraph that opens with a short italic lead ("Your account.") reads it as a run-in heading */
.prose p > em:first-child { font-style: normal; font-weight: 600; color: var(--ink); }
.prose ul { margin-top: 18px; display: grid; gap: 12px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 5px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .prose a:hover { text-decoration-color: var(--ink); } }
/* the phone's contents: one line that unfolds (a details element, so it needs no script) */
.toc-m { display: none; }
.toc-m summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 15px; font: 600 15px/1.2 var(--font); color: var(--ink); list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 160ms ease; }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m .i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; color: var(--ink-2); transition: transform 200ms var(--e-out); }
.toc-m[open] .i { transform: rotate(180deg); }
.toc-m ol { margin: 0 16px; padding: 6px 0 8px; border-top: 1px solid var(--line); }
.toc-m a { display: flex; align-items: center; min-height: 44px; font: 400 15px/1.35 var(--font); color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .toc-m summary:hover { background: var(--hover); } }
.prose code { padding: 1px 6px; border-radius: 6px; background: var(--sunk); color: var(--ink); font: 500 .92em/1 var(--font); overflow-wrap: anywhere; }

/* ---------- phones and narrow windows (security.css, plus the reading column) ---------- */
@media (max-width: 860px) {
  .nav .links { display: none; }
  .hero { padding: 116px 20px 120px; }
  h1 { margin-top: 14px; max-width: 12ch; font-size: clamp(36px, 11vw, 46px); line-height: 1.04; }
  .sub { margin-top: 16px; max-width: 30ch; font-size: 17px; }
  .date { margin-top: 14px; font-size: 13px; }
  .jump { margin-top: 28px; gap: 6px; }
  .jump a { padding: 0 13px; font-size: 13px; }
  .sheet { margin-top: -36px; border-radius: 28px 28px 0 0; }
  .wrap { padding-inline: 20px; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 40px 20px 80px; }
  .toc { display: none; }
  .toc-m { display: block; border: 1px solid var(--line); border-radius: 16px; }
  .prose h2 { margin-top: 52px; font-size: clamp(24px, 6.6vw, 28px); }
  .foot { padding-block: 40px 48px; }
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .foot-brand { grid-column: 1 / -1; }
}

/* reduced motion: nothing scales or scrolls smoothly; colour changes stay */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .links a, .jump a, .foot-col a, .toc-m .i { transition: none; }
  .btn:active, .jump a:active { transform: none; }
}
