/* Privacy Policy + Terms of Service — Unhosted Ink.
   Tokens, kit, nav and footer mirror index.html; ink.js rewrites the tokens
   for the reader's paper and ink. */
:root {
  --paper: #efe9dc;
  --paper-2: #e6dfcd;
  --ink: #2c46a8;
  --ink-2: rgba(44, 70, 168, 0.74);
  --ink-3: rgba(44, 70, 168, 0.5);
  --rule: rgba(44, 70, 168, 0.26);
  --wash: rgba(44, 70, 168, 0.06);
  --red: #c8452f;
  --veil: rgba(239, 233, 220, 0.6);
  --grain: none;
  --hatch: none;
  --hatch-light: none;
  --scribble: none;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --hand: Caveat, "Segoe Print", cursive;
  --ease-enter: cubic-bezier(.2, .8, .2, 1);
  --ease-exit: cubic-bezier(.4, 0, .6, 1);
  --gutter: clamp(16px, 4vw, 44px);
  color-scheme: light;
}
:root[data-paper="night"] { color-scheme: dark; --paper: #17181c; --paper-2: #1f2126; --ink: #e9e4d6; --ink-2: rgba(233, 228, 214, 0.74); --ink-3: rgba(233, 228, 214, 0.5); --rule: rgba(233, 228, 214, 0.3); --wash: rgba(233, 228, 214, 0.07); --red: #ff7d62; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { background-color: var(--paper); }
body {
  margin: 0; overflow-x: hidden;
  background-image: var(--grain);
  color: var(--ink); font: 14.5px/1.65 var(--mono);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px dashed var(--ink); outline-offset: 4px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ────────────────────────────────────────────────────────────── */
/* The Ink kit                                                    */
/* ────────────────────────────────────────────────────────────── */
.serif { font-family: var(--serif); font-weight: 400; }
.hand { font-family: var(--hand); }
.num { font-variant-numeric: tabular-nums; }
.i2 { color: var(--ink-2); }
.i3 { color: var(--ink-3); }
.red { color: var(--red); }
.lbl, .eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* A drawn edge: a wobbly pen line over any box. */
.pen { position: relative; }
.pen::before { content: ""; position: absolute; inset: 0; border: 1.4px solid currentColor; border-radius: inherit; filter: url(#wob); pointer-events: none; }
.pen.soft::before { opacity: 0.38; }
.rule { height: 1.4px; background: var(--rule); filter: url(#wob); border: 0; margin: 0; }
.rule.strong { background: var(--ink-2); }
.leader { display: flex; align-items: baseline; gap: 10px; }
.leader .l { color: var(--ink-2); white-space: nowrap; }
.leader .d { flex: 1; border-bottom: 1.5px dotted var(--ink-3); transform: translateY(-4px); min-width: 12px; }
.leader .v { text-align: right; white-space: nowrap; }

.ic { display: block; width: 22px; height: 22px; flex: none; }
.ico-circle { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--ink); }
.coin { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background-image: var(--hatch-light); font: 21px/1 var(--serif); flex: none; color: var(--ink); }

.btn {
  all: unset; box-sizing: border-box; position: relative; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding-inline: 24px; border-radius: 17px; font: 500 14.5px/1 var(--mono); color: var(--ink); white-space: nowrap;
  transition: transform 160ms var(--ease-exit);
}
.btn.primary { background-color: var(--ink); background-image: var(--hatch); color: var(--paper); }
.btn.primary::before { color: var(--ink); }
.btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: var(--hatch-light); opacity: 0; pointer-events: none; transition: opacity 160ms var(--ease-exit); }
.btn.primary::after { background-image: var(--hatch); }
.btn:hover::after { opacity: 0.8; }
.btn:active { transform: scale(0.97); transition-duration: 90ms; }
.btn .ic { width: 19px; height: 19px; }
.btn .beta { font: 17px/1 var(--hand); opacity: 0.85; transform: rotate(-4deg) translateY(-1px); }
.btn.small { height: 40px; padding-inline: 16px; border-radius: 13px; font-size: 13px; }
.link { text-decoration: underline wavy var(--ink-3) 1px; text-underline-offset: 5px; }
.link:hover { text-decoration-color: var(--ink); }

.chip { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; font: 12.5px/1.3 var(--mono); color: var(--ink-2); white-space: nowrap; }
.chip::before { opacity: 0.45; }
.chip.on { background-color: var(--ink); background-image: var(--hatch); color: var(--paper); }
.chip.on::before { opacity: 1; color: var(--ink); }
.chip .ic { width: 15px; height: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.stamp {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 2px solid currentColor; border-radius: 5px;
  outline: 1px solid currentColor; outline-offset: 2px; transform: rotate(-4deg); filter: url(#wob-hard);
  font: 500 11px/1.2 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.9; white-space: nowrap;
}
.stamp.dashed { border-style: dashed; outline: 0; }
.stamp.sm { font-size: 9px; padding: 2px 6px; outline-offset: 1.5px; }

.doodle { display: block; pointer-events: none; color: var(--ink); }
.note { font: 24px/1.05 var(--hand); color: var(--ink-2); }


.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
/* nav */
.nav { position: sticky; top: 0; z-index: 50; background-color: var(--paper); background-image: var(--grain); }
.nav::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1.4px; background: var(--rule); filter: url(#wob); opacity: 0; transition: opacity 200ms; }
.nav.scrolled::after { opacity: 1; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark-box { position: relative; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.brand .mark-box canvas { width: 30px; height: 30px; }
.brand span { font: 30px/1 var(--serif); letter-spacing: -0.01em; }
.nav-links { display: flex; gap: clamp(14px, 2vw, 28px); font-size: 13px; }
.nav-links a { text-decoration: none; color: var(--ink-2); position: relative; padding-block: 6px; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 8px; background: var(--scribble) left center / auto 100% repeat-x; clip-path: inset(0 100% 0 0); transition: clip-path 260ms var(--ease-enter); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { clip-path: inset(0 0 0 0); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.icon-btn { all: unset; position: relative; cursor: pointer; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--ink); }
.icon-btn::before { opacity: 0.4; }
.icon-btn:hover { background: var(--wash); }
.paper-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; color: var(--ink); }
.paper-switch button { all: unset; cursor: pointer; position: relative; font: 12px/1 var(--mono); padding: 8px 12px; border-radius: 999px; color: var(--ink-2); transition: background-color 160ms var(--ease-exit), color 160ms var(--ease-exit); }
.paper-switch button:hover { color: var(--ink); background: var(--wash); }
.paper-switch button[aria-pressed="true"] { background-color: var(--ink); background-image: var(--hatch); color: var(--paper); }
.paper-switch button:focus-visible { outline: 2px dashed var(--ink); outline-offset: 2px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 52px; width: 230px; padding: 16px 18px; border-radius: 18px; background-color: var(--paper); background-image: var(--grain); display: grid; gap: 4px; box-shadow: 8px 10px 0 var(--wash); }
.menu-panel a { text-decoration: none; padding: 8px 0; border-bottom: 1px dotted var(--ink-3); }
.menu-panel a:last-child { border-bottom: 0; }


/* the document */
.policy-hero { padding-block: clamp(48px, 8vw, 110px) clamp(28px, 4vw, 48px); }
.policy-hero .eyebrow { margin-bottom: 18px; }
.policy-hero h1 { font-size: clamp(56px, 8vw, 116px); line-height: 0.92; letter-spacing: -0.03em; }
.policy-hero .stamp { margin-top: 26px; }
.policy-body { padding-bottom: clamp(72px, 10vw, 140px); }
.policy-card { position: relative; max-width: 860px; border-radius: 28px; padding: clamp(24px, 5vw, 60px); }
.policy-card::before { opacity: 0.45; }
.policy-card p, .policy-card li { color: var(--ink-2); }
.policy-card a { color: var(--ink); text-decoration: underline wavy var(--ink-3) 1px; text-underline-offset: 4px; }
.policy-card strong { color: var(--ink); font-weight: 500; }
.intro p { margin: 0 0 14px; }
.intro ul, .policy-section ul { padding-left: 20px; margin: 0 0 14px; }
.intro li, .policy-section li { margin-bottom: 6px; }
li::marker { color: var(--ink-3); }
.toc { margin: 34px 0 10px; padding: 22px 24px; border-radius: 18px; background: var(--wash); position: relative; }
.toc__label { margin: 0 0 12px !important; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3) !important; }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 13px; }
.toc li { break-inside: avoid; margin-bottom: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline wavy var(--ink-3) 1px; }
.policy-section { padding-top: 34px; margin-top: 34px; border-top: 1.5px dotted var(--ink-3); scroll-margin-top: 96px; }
.policy-section h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.05; margin-bottom: 14px; color: var(--ink); }
.policy-section h3 { font-size: 22px; margin: 22px 0 8px; }
.policy-section h4 { font: 500 12px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 8px; }
.policy-section p { margin: 0 0 14px; }
.policy-section .address { font-style: normal; padding: 14px 18px; border-radius: 14px; background: var(--wash); color: var(--ink); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fbrand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 14px; }
  .toc ol { columns: 1; }
  .nav .wrap { height: 66px; }
}
