/* Terms and privacy pages: same palette and type as the app, set for long reading. */
:root{--bg:#d7efea;--surface:#fffcf3;--line:#b9ddd5;--fg:#0e4535;--muted:#4f7a6d;--gold:#f7b52c;--cap:#ff5d57;
  --font:"Bricolage Grotesque","IBM Plex Sans Thai",system-ui,sans-serif;--thai-head:"Mitr","IBM Plex Sans Thai",system-ui,sans-serif;color-scheme:light}
@media (prefers-color-scheme:dark){:root{--bg:#0c2e25;--surface:#123b30;--line:#21584a;--fg:#e9f7f1;--muted:#93bdb0;--cap:#ff6b63;color-scheme:dark}}
*{box-sizing:border-box}html,body{margin:0}
body{background:var(--bg);color:var(--fg);font-family:var(--font);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased}
html:lang(th) body{line-height:1.75}
.cap-edge{fill:var(--cap)}.cap-ring{fill:none;stroke:#fffcf3;stroke-opacity:.45;stroke-width:1.6}
header{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:760px;margin:0 auto;padding:calc(14px + env(safe-area-inset-top,0px)) 18px 6px}
.logo{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--fg)}
.logo-mark{width:28px;height:28px;flex:none}
.logo-word{height:18px;width:auto;display:block}
.lang{display:flex;background:var(--surface);border-radius:999px;padding:3px;box-shadow:inset 0 0 0 1px var(--line)}
.lang button{border:0;background:none;font:inherit;font-size:14px;font-weight:650;padding:6px 12px;border-radius:999px;color:var(--muted);cursor:pointer}
.lang button[aria-pressed="true"]{background:var(--fg);color:var(--bg)}
main{max-width:760px;margin:0 auto;padding:10px 18px 60px}
article{background:var(--surface);border-radius:24px;padding:26px 24px 30px;box-shadow:inset 0 0 0 1px var(--line)}
h1{font-size:clamp(34px,8vw,48px);line-height:.98;letter-spacing:-.03em;margin:0 0 6px;font-variation-settings:"wdth" 78,"opsz" 96}
html:lang(th) h1{font-family:var(--thai-head);font-weight:600;letter-spacing:0;line-height:1.25;font-size:clamp(28px,7vw,38px)}
.updated{color:var(--muted);font-size:14px;margin:0 0 20px}
h2{font-size:21px;letter-spacing:-.015em;margin:28px 0 6px;font-variation-settings:"wdth" 85}
html:lang(th) h2{font-family:var(--thai-head);font-weight:500;letter-spacing:0}
p,li{max-width:66ch}ul{padding-left:22px}li{margin:4px 0}
a{color:var(--fg);text-decoration-color:var(--gold);text-decoration-thickness:2px;text-underline-offset:3px}
.back{display:inline-block;margin:18px 0 0;font-weight:700}
[hidden]{display:none!important}
