/* Just Cut legal pages (privacy, terms, support). Same tokens as index.html:
   Studio (black ground) in dark mode, Paper (warm light ground) in light mode. No fonts from services, no tracking. */
:root {
  --film: #000000; --film-2: #0e0e0f; --film-3: #1c1c1e; --raised: #2c2c2e;
  --line: rgba(255, 255, 255, 0.16); --edge: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --paper: #f5f5f7; --mute: #b4b4bc; --cut: #ff8c4a; --cut-text: #ffa05c; --on-cut: #0c0c0d;
  --verify-bg: rgba(255, 196, 0, 0.18); --verify-line: #ffc400; --verify-text: #ffe08a;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wordmark: "Bricolage Grotesque", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --slant: -20deg; --r: 20px;
  --splice: polygon(0 0, calc(100% - 29px) 0, 100% 20px, 100% 100%, 0 100%);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --film: #f3eee6; --film-2: #ebe4d9; --film-3: #ffffff; --raised: #e4ddd1;
    --line: rgba(20, 22, 25, 0.14); --edge: inset 0 0 0 1px rgba(20, 22, 25, 0.07);
    --paper: #141619; --mute: #57534c; --cut: #f27a36; --cut-text: #b04a12;
    --verify-bg: #ffe9a3; --verify-line: #c99400; --verify-text: #4a3500;
    color-scheme: light;
  }
}
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/BricolageGrotesque-ExtraBold.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--film); color: var(--paper); font: 400 1.0625rem/1.65 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--cut-text); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--cut-text); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 46rem; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wm { font-family: var(--wordmark); font-weight: 800; letter-spacing: -0.01em; color: var(--paper); white-space: nowrap; }
.wm b { font-weight: inherit; color: var(--cut); }

/* Header, as on index.html */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--film) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; max-width: 72rem; }
.brand { display: flex; align-items: center; gap: 0.45rem; text-decoration: none; font: 700 1.2rem/1 var(--display); color: var(--paper); }
.brand img { width: auto; height: 0.84em; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0.55rem 1rem; border-radius: 999px; background: var(--raised); text-decoration: none; color: var(--paper); font-weight: 600; white-space: nowrap; }

/* The draft banner */
.draft { background: var(--verify-bg); border-bottom: 2px solid var(--verify-line); color: var(--paper); }
.draft .wrap { display: grid; gap: 0.2rem; padding-block: 0.85rem; font-size: 0.95rem; line-height: 1.45; }
.draft strong { font: 700 1.15rem/1.2 var(--display); letter-spacing: -0.01em; }

/* The VERIFY marks: never hidden, always readable in both themes */
mark.verify { background: var(--verify-bg); color: var(--verify-text); box-shadow: inset 0 0 0 1px var(--verify-line); border-radius: 4px; padding: 0 0.25em; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; overflow-wrap: anywhere; }
.draft mark.verify { color: inherit; }

/* The document */
.doc { padding-block: 1.5rem 4rem; }
.docnav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.75rem; }
.docnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0.4rem 0.85rem; border-radius: 999px; background: var(--film-3); box-shadow: var(--edge); color: var(--paper); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.docnav a[aria-current="page"] { background: var(--cut); color: var(--on-cut); box-shadow: none; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.015em; line-height: 1.2; margin: 0; text-wrap: balance; scroll-margin-top: 5rem; }
h1 { font-size: clamp(2rem, 8vw, 3rem); font-weight: 700; letter-spacing: -0.022em; line-height: 1.05; margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.4rem, 5vw, 1.75rem); font-weight: 700; margin: 2.6rem 0 0.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
h3 { font-size: 1.15rem; font-weight: 650; margin: 1.8rem 0 0.6rem; }
h4 { font-size: 1.05rem; font-weight: 650; margin: 1.6rem 0 0.35rem; }
p, ul { margin: 0 0 1rem; }
.doc p, .doc li { color: var(--paper); }
ul { padding-left: 1.2rem; display: grid; gap: 0.5rem; }
li::marker { color: var(--cut); }
strong { font-weight: 650; }
code { font: 500 0.88em/1.4 var(--mono); overflow-wrap: anywhere; }

/* On this page */
.toc { background: var(--film-3); box-shadow: var(--edge); border-radius: var(--r); clip-path: var(--splice); padding: 0 1.15rem; margin-bottom: 1rem; }
.toc summary { cursor: pointer; list-style: none; padding-block: 0.95rem; font-weight: 650; display: flex; justify-content: space-between; gap: 1rem; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; flex: none; width: 0.55rem; height: 0.55rem; margin-top: 0.45rem; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); }
.toc[open] summary::after { transform: rotate(225deg); }
.toc ol { margin: 0 0 1rem; padding-left: 1.4rem; display: grid; gap: 0.35rem; font-size: 0.95rem; }
.toc a { color: var(--paper); }

/* Subscription Terms inside terms.html */
.sub { scroll-margin-top: 4.5rem; margin-top: 3rem; padding: 0.2rem clamp(1rem, 4vw, 1.5rem) 0.6rem; background: var(--film-2); border-radius: var(--r); box-shadow: inset 0 0 0 2px var(--cut); }
.sub > h2 { border-top: 0; margin-top: 1.2rem; padding-top: 0; }

footer { border-top: 1px solid var(--line); padding-block: 2rem 3rem; font-size: 0.9rem; color: var(--mute); }
footer .wrap { display: grid; gap: 0.9rem; }
footer .links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
footer .links a { color: var(--paper); }
footer p { margin: 0; }
