/* ScrollSense legal pages. Same look as scrollsense.app: black, warm white, one gold accent, DM Sans only. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(fonts/dm-sans-latin-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(fonts/dm-sans-latin-ext-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #f2ede3;
  --ink-2: rgba(242, 237, 227, 0.84);
  --mute: #b9b3a9;
  --line: rgba(242, 237, 227, 0.11);
  --gold: #d4b786;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink-2);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(212, 183, 134, 0.35); color: var(--ink); }

a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(212, 183, 134, 0.6); text-underline-offset: 3px; transition: text-decoration-color 200ms ease; }
a:hover { text-decoration-color: var(--gold); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.shell { width: 100%; max-width: 760px; margin: 0 auto; padding: 24px var(--gutter) 64px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; font-size: 1.05rem; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px; }
.nav a { padding: 6px 12px; border-radius: 999px; color: var(--mute); font-size: 0.92rem; font-weight: 500; text-decoration: none; transition: color 200ms ease, background-color 200ms ease; }
.nav a:hover { color: var(--ink); background: rgba(242, 237, 227, 0.06); }
.nav a[aria-current="page"] { color: var(--ink); background: rgba(242, 237, 227, 0.1); }

/* Page title */
.intro { padding: 56px 0 8px; }
h1 { margin: 0; color: var(--ink); font-size: clamp(2.4rem, 7vw, 3.6rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.04; text-wrap: balance; }
.lede { max-width: 36rem; margin: 16px 0 0; color: var(--mute); font-size: 1.15rem; line-height: 1.55; }
.updated { margin: 18px 0 0; color: var(--mute); font-size: 0.88rem; font-variant-numeric: tabular-nums; }

/* In short */
.short { margin: 36px 0 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.short h2 { margin: 0 0 12px; font-size: 1rem; color: var(--gold); letter-spacing: 0; }
.short ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.short li { position: relative; padding-left: 22px; color: var(--ink); }
.short li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* On this page */
.toc { margin: 30px 0 0; }
.toc p { margin: 0 0 8px; color: var(--mute); font-size: 0.88rem; font-weight: 600; }
.toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: 0.9rem; text-decoration: none; transition: border-color 200ms ease, color 200ms ease; }
.toc a:hover { border-color: rgba(212, 183, 134, 0.6); color: var(--ink); }

/* Sections */
section { padding: 40px 0 0; }
section + section { margin-top: 8px; }
h2 { margin: 0 0 12px; color: var(--ink); font-size: clamp(1.35rem, 3vw, 1.6rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance; }
h3 { margin: 26px 0 6px; color: var(--ink); font-size: 1.08rem; font-weight: 500; }
p, ul, ol { margin: 10px 0 0; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: 8px; }
li::marker { color: var(--mute); }
strong { color: var(--ink); font-weight: 500; }

/* Platform tag, used only where a line applies to one phone */
.tag { display: inline-block; margin-right: 6px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--mute); font-size: 0.78rem; font-weight: 600; vertical-align: 0.1em; white-space: nowrap; }

/* Tables */
.table-wrap { margin-top: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--mute); font-size: 0.85rem; font-weight: 600; }
td:first-child { color: var(--ink); font-weight: 500; width: 28%; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 14px; }
.steps li { counter-increment: step; position: relative; margin: 0; padding-left: 40px; min-height: 28px; color: var(--ink); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); font-size: 0.85rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.cols > div { min-width: 0; }

.note { margin-top: 16px; padding-left: 14px; border-left: 2px solid var(--gold); color: var(--ink); }

/* Button, same pill as the website */
.button { display: inline-flex; align-items: center; gap: 10px; height: 50px; margin-top: 18px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #0b0b0c; font-weight: 600; font-size: 1rem; text-decoration: none; transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 200ms ease; }
.button:hover { background: #fff; color: #0b0b0c; }
.button:active { transform: scale(0.97); }
.copy { display: inline-block; margin-top: 8px; color: var(--mute); font-size: 0.92rem; user-select: all; }

/* Index cards: plain rows, no boxes */
.docs { margin-top: 36px; border-top: 1px solid var(--line); }
.docs a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.docs strong { display: block; font-size: 1.25rem; }
.docs span { display: block; color: var(--mute); font-size: 0.98rem; }
.docs svg { color: var(--mute); transition: transform 260ms cubic-bezier(0.23, 1, 0.32, 1), color 200ms ease; }
.docs a:hover svg { transform: translateX(3px); color: var(--gold); }

footer { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; color: var(--mute); font-size: 0.88rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--mute); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .intro { padding-top: 40px; }
  .cols { grid-template-columns: 1fr; gap: 8px; }
  /* Stack the data table on phones so nothing scrolls sideways */
  table, tbody, tr, td { display: block; min-width: 0; width: auto; }
  thead { display: none; }
  tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  td { padding: 0; border: 0; }
  td:first-child { width: auto; margin-bottom: 8px; }
  td + td { margin-top: 6px; }
  td:nth-child(2)::before, td:nth-child(3)::before { display: block; color: var(--mute); font-size: 0.8rem; font-weight: 600; }
  td:nth-child(2)::before { content: "What it gets"; }
  td:nth-child(3)::before { content: "Why"; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.h2-gap { margin-top: 32px; }
