/* Plain text pages (Privacy Policy, Support). Tokens, header and footer match the other pages. */
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans.ttf") format("truetype"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/CormorantGaramond.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/Caveat.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }

:root {
  --field: #eef0f3; --hi: #fbfcfd; --text: #424a58; --ink: #172031; --muted: #4c5666;
  --hand: #914430; --route: #d2582f;
  --line: color-mix(in oklab, var(--ink) 15%, transparent);
  --warn: color-mix(in oklab, var(--route) 62%, var(--ink));
  --gutter: clamp(16px, 3.4vw, 48px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--field); color: var(--text); overflow-x: clip; font: 400 18px/1.6 "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--route); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), 1344px); margin-inline: auto; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 60; background: var(--ink); color: var(--field); padding: 12px 16px; border-radius: 4px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 8px; }

.top { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; padding-block: 10px; }
.wordmark { font: 700 32px/1 "Caveat", cursive; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 600; font-size: 16px; color: var(--ink); text-decoration: none; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--line); } }

.doc { width: min(100% - 2 * var(--gutter), 720px); margin-inline: auto; padding-block: 48px 96px; }
.kicker { font: 600 12px/1.4 "DM Sans", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--hand); margin-bottom: 16px; }
.doc h1 { font: 500 clamp(42px, 5vw, 64px)/1 "Cormorant Garamond", serif; color: var(--ink); letter-spacing: -.01em; text-wrap: balance; }
.doc .lede { margin-top: 24px; font-size: 20px; line-height: 1.5; color: var(--ink); }
.doc .review-note { margin-top: 24px; padding: 8px 16px; border: 1px dashed var(--warn); border-radius: 4px; color: var(--warn); font-size: 15px; font-weight: 600; }
.doc h2 { margin-top: 48px; font: 600 28px/1.15 "Cormorant Garamond", serif; color: var(--ink); }
.doc p, .doc ul { margin-top: 16px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 8px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .todo { color: var(--warn); font-weight: 600; }
.updated { margin-top: 48px; font-size: 14px; color: var(--muted); }
.doc .updated-top { margin-top: 16px; }
.doc h3 { margin-top: 24px; font: 600 17px/1.3 "DM Sans", system-ui, sans-serif; color: var(--ink); }

.foot { background: var(--hi); border-top: 1px solid var(--line); padding: 20px var(--gutter) 28px; }
.foot .wrap { width: min(100%, 1344px); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.foot .wordmark { font-size: 26px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.foot .copy { margin-left: auto; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .foot .copy { margin-left: 0; width: 100%; } .doc { padding-block: 32px 64px; } }

/* Phone header, same on every page: the wordmark on its own row, the four links on the next, aligned to the text edge. */
@media (max-width: 640px) {
  .top { flex-wrap: wrap; gap: 0 12px; padding-block: 6px 0; }
  .nav { order: 3; width: 100%; margin-left: -12px; }
}

/* ---------- Chinese pages (html lang="zh-Hans", the /zh/ copies load this same file). System fonts only, nothing downloaded:
   the brand faces stay first, so Latin letters and digits keep them, and the CJK face that follows draws the Chinese.
   No faux italic, no tracking on label styles (it pulls Chinese apart), no negative tracking on headings (it makes
   Chinese glyphs touch), and a little more line height where Chinese runs as body text or wraps in headings. */
html:lang(zh) :is(body, .kicker, .doc h3) { font-family: "DM Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
html:lang(zh) :is(.doc h1, .doc h2) { font-family: "Cormorant Garamond", "Songti SC", "Noto Serif SC", serif; }
html:lang(zh) :is(.wordmark) { font-family: "Caveat", "Kaiti SC", "STKaiti", "KaiTi", cursive; }
html:lang(zh) :is(.kicker, .doc h1) { letter-spacing: 0; }
html:lang(zh) :is(em, i, cite, dfn, var, address) { font-style: normal; }
html:lang(zh) body { line-height: 1.75; }
html:lang(zh) .doc h1 { line-height: 1.15; }
/* Short Chinese footer labels (支持) still get a 44 px wide target. */
html:lang(zh) .foot-links a { min-width: 44px; justify-content: center; }
