/* Shared by faq.html, privacy.html, terms.html and refunds.html. PT-APPV4 V10 (2026-11-11): the
   same warm paper, one terracotta and one ink as the landing page, so pressing a footer link no
   longer walks a reader from cream straight into near-black. Before this these four were the
   dark page PT-ST made them, which was right while `index.html` was dark too and wrong the
   moment PT-LV4 repainted it.

   These four are the only pages on the site with no theme switch, and that is the point: like the
   landing page they are paper and nothing else. A teacher who chose the dark console still reads
   a policy on the paper the link came from.

   Still no webfont, and that is a deliberate difference from `index.html`. These are the longest
   pages on the site and nobody reads them for pleasure: a policy should render instantly, and the
   heading subset `index.html` loads carries only the characters ITS headings use — 「中文摘要」 is
   not among them, so asking for it here would set three of those four characters in the system
   sans anyway. Headings get the landing page's WEIGHT and tracking on the system stack instead.
   Legibility first: 17px/1.7 in a 720px column, every colour on this file measured against the
   surface it is printed on (test/smoke.test.js, PT-ST and PT-APPV4 V10). */
:root {
  /* The product's shared tokens, byte-identical to `public/index.html` and `public/css/app.css`
     (DESIGN.md, the One Paper Rule). Contrast on the paper, measured: `--ink` 14.4:1,
     `--ink-soft` 5.7:1, `--terra-ink` 5.1:1 — so all three clear 4.5:1 as body text, which is
     what lets the greys stay grey and the links stay the one terracotta. `--terra` is 4.3:1 and
     is therefore only ever a large graphic here: the dot in the wordmark, the bar down the
     中文摘要 box and the drawn +/- on faq.html. Nothing small is `--terra` (the Small-Text Rule).
     Only the tokens this file paints with are declared; `--paper-deep` and `--tick` have no
     surface on a page that is one reading column. */
  --paper: #f4f1ea;
  --card: #fffdf9;
  --ink: #211f1c;
  --ink-soft: #645e55;
  --rule: #ddd5c7;
  --terra: #b8532e;
  --terra-ink: #a74b2a;
  --terra-soft: #fdeee5;
  --radius: 14px;
  /* The reading column. The nav and the footer use the same one, so on a page this narrow the
     wordmark, the headings and the footer all hang off one left edge. */
  --wide: 720px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.7 'Noto Sans TC', 'PingFang TC', 'Hiragino Sans CNS', 'Microsoft JhengHei',
    -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  /* Deliberately NOT `overflow-x: hidden`, which is the last line of defence `index.html` needs
     for its tilted bands. Nothing on these pages is rotated, and clipping the page here would
     make PT-ST's own sideways-scroll assertion read 0 whatever the tables did. */
}
.wrap {
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ── nav: the landing page's, minus the language switch (these pages are English with a Chinese
      summary, so there is nothing to switch) ── */
nav {
  position: sticky;
  top: 0;
  z-index: 6;
  /* Opaque paper and a hairline, exactly as `index.html` draws the same bar. The translucent
     near-black and its `backdrop-filter: blur(8px)` went with the dark ground: a blur behind an
     opaque surface is a filter nobody can see, and the one hex in this file that was not a token
     lived in that `rgba()`. */
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
}
.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.mark svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.accent {
  color: var(--terra);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* The landing page's ghost pill: a hairline, no fill, ink text. */
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  /* 10px, the same number `.btn.small` carries on the landing page and for the same measured
     reason: at 8px those two buttons came out 41px tall, and 44x44 is the smallest thing a thumb
     hits reliably (WCAG 2.5.5). This is the only control on the page. */
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.14s ease, color 0.14s ease;
}
.btn:hover {
  background: var(--ink);
  color: var(--card);
}

/* ── the document ── */
main {
  padding-block: 40px 16px;
}
h1,
h2,
h3 {
  /* The landing page's display setting without its webfont: 900 and negative tracking are what
     make a heading read as a heading here. Deliberately NOT `word-break: keep-all` — it refuses
     to break inside a run of Han characters, so one Chinese heading becomes one unbreakable line
     and the page scrolls sideways on a phone (PT-LD's own note). */
  font-weight: 900;
  line-height: 1.12;
  text-wrap: balance;
}
h1 {
  font-size: clamp(32px, 6vw, 46px);
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 0 8px;
}
h2 {
  font-size: clamp(21px, 2.6vw, 27px);
  letter-spacing: -0.02em;
  margin: 2em 0 0.5em;
  /* Ink, like every heading on the landing page. It was the orange while the ground was
     near-black; terracotta on paper is 4.3:1 and a section heading is text, not a graphic. */
  color: var(--ink);
}
h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 1.7em 0 0.4em;
}
p,
li {
  text-wrap: pretty;
}
p {
  margin: 0 0 14px;
}
.updated {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 30px;
}
.box {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--terra);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 28px 0;
}
.box h2 {
  margin-top: 0;
  font-size: 22px;
}
.box p:last-child,
.box ul:last-child {
  margin-bottom: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.2em 0;
  font-size: 15.5px;
  line-height: 1.6;
}
th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th {
  /* Ink and 700, for the same reason `h2` is. The stronger `--night-soft` border this row used
     to carry had no paper equivalent among the shared tokens, and DESIGN.md gives the system one
     divider at one weight — so the header row is told apart by its weight, not by a second rule
     colour. */
  color: var(--ink);
  font-weight: 700;
}
code {
  background: var(--card);
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
ul {
  padding-left: 1.2em;
}
li {
  margin: 7px 0;
}
a {
  /* 5.1:1 on the paper, and underlined by the browser's own default — a link in a sentence is
     never told apart by colour alone. `--terra` would be 4.3:1 and these are 17px. */
  color: var(--terra-ink);
  text-underline-offset: 3px;
}

/* The parts nobody draws still belong to the page. One ring, in the product's own colour, on
   everything that takes focus. */
::selection {
  background: var(--terra-soft);
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--terra-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

footer {
  margin-top: 56px;
  border-top: 1px solid var(--rule);
  padding-block: 30px 44px;
  font-size: 14px;
  color: var(--ink-soft);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
}
footer a {
  color: var(--ink-soft);
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}
footer a:hover {
  color: var(--terra-ink);
  text-decoration-color: currentColor;
}

/* Nothing on these pages moves on its own; the one transition is the nav button's hover, and a
   reader who asked for less motion gets none of it. */
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
