/* 私隱政策、使用條款共用样式（Token 同落地页，见 docs/DESIGN.md） */
:root { --ink: #141117; --ink2: #3D3641; --mut: #8A818D; --base: #F7F5F6; --l2: #EEE9EC; --o: #FF5B23; --p: #FF2D78; --bouncy: linear(0, 0.141, 0.723 12.9%, 1.017, 1.149 24.3%, 1.163, 1.129 32.8%, 1.017 43.1%, 0.974 53.8%, 0.997 69.8%, 1); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; scroll-behavior: smooth; }
body { font-family: 'Noto Sans HK', system-ui, sans-serif; background: var(--base); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--p); }
.wrap { width: min(760px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--p); outline-offset: 3px; border-radius: 8px; }

.bar { position: sticky; top: 0; z-index: 10; padding: max(10px, env(safe-area-inset-top)) 0 10px; background: rgba(247,245,246,.82); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); box-shadow: 0 1px 0 rgba(20,17,23,.06); }
.bar .wrap { display: flex; align-items: center; }
.home { display: flex; align-items: center; gap: 8px; }
.home img:first-child { width: 32px; height: 32px; border-radius: 9px; }
.home .wm { height: 22px; width: auto; }
.grow { flex: 1; }
.lang { height: 34px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--l2); font: 800 13px 'Bricolage Grotesque', sans-serif; cursor: pointer; transition: transform .5s var(--bouncy); }
.lang:active { transform: scale(.965); transition-duration: .12s; }

.doc { padding: 40px 0 56px; }
.kick { font: 800 12px 'Bricolage Grotesque', sans-serif; letter-spacing: 3px; text-transform: uppercase; color: var(--p); }
h1 { margin-top: 6px; font-size: clamp(30px, 7vw, 42px); font-weight: 900; line-height: 1.2; }
.meta { margin-top: 8px; font-size: 13px; color: var(--mut); }
.lead { margin-top: 22px; font-size: 16px; line-height: 1.8; color: var(--ink2); }
.toc { margin: 26px 0 8px; padding: 18px 20px; border-radius: 22px; background: #fff; border: 1px solid var(--l2); }
.toc ol { padding-left: 1.4em; columns: 2; column-gap: 24px; font-size: 14px; line-height: 2; }
.toc a { color: var(--ink2); text-decoration: none; font-weight: 700; }
.toc a:hover { color: var(--p); }
@media (max-width: 520px) { .toc ol { columns: 1; } }
h2 { margin-top: 38px; font-size: 20px; font-weight: 900; }
p, li { font-size: 15px; line-height: 1.85; color: var(--ink2); }
h2 + p, h2 + ul, h2 + table { margin-top: 10px; }
p + p, p + ul, ul + p, table + p, p + table { margin-top: 12px; }
ul { padding-left: 1.3em; display: grid; gap: 4px; }
b { color: var(--ink); }
table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--l2); border-radius: 18px; overflow: hidden; background: #fff; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; line-height: 1.7; color: var(--ink2); }
th { background: #FBFAFA; font-size: 12.5px; font-weight: 900; color: var(--ink); }
td:first-child { width: 30%; font-weight: 700; color: var(--ink); }
tr + tr td, tbody tr:first-child td { border-top: 1px solid var(--l2); }
@media (max-width: 520px) { td:first-child { width: 36%; } th, td { padding: 10px 12px; } }
.other { margin-top: 44px; font-size: 15px; font-weight: 700; }
.other a { text-decoration: none; }

.foot { border-top: 1px solid var(--l2); background: #fff; padding: 22px 0 max(22px, env(safe-area-inset-bottom)); font-size: 12.5px; color: var(--mut); }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot a { color: var(--ink2); font-weight: 700; text-decoration: none; }

/* 语言：两种语言都在页面里，按 html[lang] 显示一种 */
html[lang="en"] .zh, html:not([lang="en"]) .en { display: none !important; }
/* 后台没填联系邮箱时隐藏邮箱那一句 */
.no-email .email-row { display: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
