/* 隐私政策页 + 满 18 岁确认页（js/privacy-policy.js、js/age-gate.js）。
   z-index：确认页 1092 盖住激活码页（1090）；隐私政策页 1095 盖住两者；都低于 toast（1100）。 */
.privacy-page,.age-gate{position:fixed;inset:0;display:flex;flex-direction:column;box-sizing:border-box;background:var(--bg);color:var(--ink);font-family:var(--font-body)}
.privacy-page{z-index:1095}
.pp-top{display:flex;align-items:center;gap:8px;padding:calc(10px + env(safe-area-inset-top,0px)) 12px 10px;border-bottom:1px solid var(--mist)}
.pp-top h1{margin:0;font-size:17px;font-weight:600;letter-spacing:.02em}
.pp-close{width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:var(--ink);font-size:26px;line-height:1;cursor:pointer}
.pp-close:focus-visible,.ag-link:focus-visible,.ag-go:focus-visible{outline:2px solid var(--pri-deep);outline-offset:2px}
.pp-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none;padding:14px 20px calc(28px + env(safe-area-inset-bottom,0px));max-width:640px;width:100%;margin:0 auto;box-sizing:border-box}
.pp-body::-webkit-scrollbar,.age-gate::-webkit-scrollbar{display:none;width:0;height:0}
.pp-date{margin:0 0 6px;font-size:12.5px;color:var(--ink2)}
.pp-body h2{margin:20px 0 6px;font-size:15px;font-weight:600}
.pp-body p,.pp-body li{font-size:14px;line-height:1.75;color:var(--ink)}
.pp-body p{margin:6px 0}
.pp-body ul{margin:6px 0;padding-left:20px}
.pp-body li{margin:4px 0}

.age-gate{z-index:1092;align-items:center;justify-content:center;padding:24px 20px;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}
.ag-card{width:100%;max-width:340px;padding:26px 22px 20px;border-radius:24px;background:var(--surface);border:1px solid var(--mist);box-shadow:0 18px 40px -14px rgb(40 58 84/30%);box-sizing:border-box}
.ag-card h1{margin:0 0 10px;font-size:20px;text-align:center}
.ag-card p{margin:0 0 16px;font-size:14.5px;line-height:1.7;text-align:center;color:var(--ink2)}
.ag-check{display:flex;align-items:flex-start;gap:10px;margin:0 0 12px;font-size:14.5px;line-height:1.5;cursor:pointer}
.ag-check input{width:22px;height:22px;margin:0;flex:none;accent-color:var(--pri-deep)}
.ag-links{margin:0 0 16px;font-size:13.5px;color:var(--ink2)}
.ag-link{padding:0;border:0;background:none;font:inherit;color:var(--accent-text);text-decoration:underline;cursor:pointer}
.ag-go{display:block;width:100%;min-height:46px;border:0;border-radius:16px;background:var(--pri-deep);color:var(--surface);font-size:16px;font-weight:600;cursor:pointer}
.ag-go:disabled{opacity:.4;cursor:not-allowed}
.ag-err{min-height:18px;margin:8px 0 0;font-size:13px;text-align:center;color:#B3473F}

/* 入口：激活码页底部、设置 → 关于 */
.bg-foot .pp-open,.pp-open{padding:0;border:0;background:none;font:inherit;color:inherit;text-decoration:underline;cursor:pointer}

/* 设置 v3 PR7: the policy reads like the other 设置 pages - white page (theme background in dark mode), each section a card */
.privacy-page{background:#fff}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .privacy-page{background:linear-gradient(170deg,color-mix(in srgb,var(--pri) 40%,var(--surface)) 0%,var(--pri-pale) 42%,var(--surface) 100%)}}
:root[data-theme="dark"] .privacy-page{background:linear-gradient(170deg,color-mix(in srgb,var(--pri) 40%,var(--surface)) 0%,var(--pri-pale) 42%,var(--surface) 100%)}
.pp-top{border-bottom:none;padding-inline:10px 16px}
.pp-top h1{font-family:var(--font-display);font-size:22px;font-weight:700;letter-spacing:.01em}
.pp-close{display:grid;place-items:center;font-size:0}
.pp-close svg{width:22px;height:22px;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pp-body{padding:6px 16px calc(28px + env(safe-area-inset-bottom,0px))}
.pp-date{margin:0 4px 4px}
.pp-body section{margin:12px 0 0;padding:14px 16px;border-radius:20px;background:#fff;border:1px solid rgb(20 30 45/7%);box-shadow:0 1px 2px rgb(20 30 45/4%),0 6px 18px -6px rgb(20 30 45/8%)}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .pp-body section{background:color-mix(in srgb,var(--surface) 82%,transparent);border-color:rgb(255 255 255/9%);box-shadow:none}}
:root[data-theme="dark"] .pp-body section{background:color-mix(in srgb,var(--surface) 82%,transparent);border-color:rgb(255 255 255/9%);box-shadow:none}
.pp-body h2{margin:0 0 6px;font-family:var(--font-display);font-size:15.5px}
.pp-body p,.pp-body li{font-size:13.5px;line-height:1.7}
.pp-body ul{padding-left:18px}

/* 用户协议页与隐私政策页互相链接 */
.pp-see{margin:16px 4px 0;font-size:13.5px;color:var(--ink2)}
