/* ChronoPill site chrome for the secondary pages (privacy, security, terms,
   eula, disclaimer, compliance, delete-account, whats-new, help, redeem).
   Same theme as the home page (web-src/index.html): same tokens in light and
   dark ([data-theme] on <html>, dark by default, choice kept in localStorage
   cp_theme by /site-theme.js, shared with the home page), same Inter font,
   same background, same glass header and same footer.

   Loaded AFTER each page's own <style>: every rule here is scoped under
   body.cp-sub so it wins over the page rules, and html[data-theme] beats the
   :root token definitions the pages still carry. Every text colour is set
   together with the background it sits on (WCAG AA in both themes). */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url('/fonts/inter.woff2') format('woff2-variations'),url('/fonts/inter.woff2') format('woff2')}

html[data-theme="light"]{
 --bg:#FAFAFD;--bg2:#FFFFFF;--card:#FFFFFF;--card2:#F4F4F9;
 --border:#E4E4EA;--text:#0E0E15;--muted:#5C5C70;
 --violet:#6E6BF0;--violet2:#5750E0;--cyan:#0E7490;
 --grad-cta:linear-gradient(135deg,#5750E0,#0E7490);
 --success:#16A34A;--success-text:#15803D;--warning:#D97706;--danger:#DC2626;--danger-text:#B91C1C;
 --hero-bg:radial-gradient(ellipse 80% 50% at 50% -20%,rgba(110,107,240,.18) 0%,transparent 60%),radial-gradient(ellipse 60% 40% at 100% 30%,rgba(6,182,212,.10) 0%,transparent 60%),radial-gradient(ellipse 60% 50% at 0% 60%,rgba(31,184,127,.06) 0%,transparent 60%);
 --nav-bg:rgba(250,250,253,.85);
 --card-fill:#FFFFFF;
 --card-shadow:0 8px 30px -10px rgba(15,16,36,.10);
 --callout-bg:#FEF3C7;--callout-text:#0E0E15;--callout-border:#D97706;
 --tint-bg:rgba(110,107,240,.08);
 /* aliases of the older page tokens (whats-new / help / delete-account / redeem) */
 --surface:var(--card);--surface-2:var(--card2);--text-dim:var(--muted);
 --ink:var(--text);--ink2:var(--muted);--rule:var(--border);
 --green:#166534;--amber:#92400E;--red:#B91C1C;--blue:#1D4ED8;
 --ok:#0A7550;--err:#B42318;
 color-scheme:light;
}
html[data-theme="dark"]{
 --bg:#0A0B16;--bg2:#0F1024;--card:#161A33;--card2:#1E2240;
 --border:#252850;--text:#F1F1F8;--muted:#9494B0;
 --violet:#6E6BF0;--violet2:#A5A3FA;--cyan:#06B6D4;
 --grad-cta:linear-gradient(135deg,#5750E0,#0E7490);
 --success:#1FB87F;--success-text:#1FB87F;--warning:#FBBF24;--danger:#E5484D;--danger-text:#F87171;
 --hero-bg:radial-gradient(ellipse 80% 50% at 50% -20%,rgba(110,107,240,.30) 0%,transparent 60%),radial-gradient(ellipse 60% 40% at 100% 30%,rgba(6,182,212,.18) 0%,transparent 60%),radial-gradient(ellipse 60% 50% at 0% 60%,rgba(31,184,127,.10) 0%,transparent 60%);
 --nav-bg:rgba(10,11,22,.72);
 --card-fill:rgba(22,26,51,.5);
 --card-shadow:none;
 --callout-bg:#2A2410;--callout-text:#F1F1F8;--callout-border:#FBBF24;
 --tint-bg:rgba(110,107,240,.14);
 --surface:var(--card);--surface-2:var(--card2);--text-dim:var(--muted);
 --ink:var(--text);--ink2:var(--muted);--rule:var(--border);
 --green:#4ADE80;--amber:#FBBF24;--red:#F87171;--blue:#93C5FD;
 --ok:#3ECF9A;--err:#F0777B;
 color-scheme:dark;
}

html{-webkit-text-size-adjust:100%;overflow-x:clip}
@supports not (overflow-x:clip){html{overflow-x:hidden}}
body.cp-sub{
 font-family:'Inter','-apple-system','BlinkMacSystemFont','Segoe UI',Helvetica,Arial,sans-serif;
 background-color:var(--bg);background-image:var(--hero-bg);background-repeat:no-repeat;
 color:var(--text);line-height:1.65;margin:0;padding:0;
 display:block;min-height:100vh;
}
body.cp-sub a{color:var(--violet2);text-decoration:underline;text-underline-offset:2px}
body.cp-sub a:hover{color:var(--violet)}
html[data-theme="dark"] body.cp-sub a:hover{color:var(--text)}

/* ---------- Header (same as index .nav) ---------- */
body.cp-sub .cp-header{position:sticky;top:10px;z-index:100;background:transparent;border:0;padding:0 14px;margin:10px 0 0;pointer-events:none}
body.cp-sub .cp-header .nav-inner{pointer-events:auto;display:flex;align-items:center;justify-content:space-between;gap:0;padding:10px 18px;max-width:1240px;margin:0 auto;background:var(--nav-bg);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border:1px solid var(--border);border-radius:18px;box-shadow:0 10px 34px rgba(8,10,26,.22)}
html[data-theme="light"] body.cp-sub .cp-header .nav-inner{box-shadow:0 10px 30px rgba(30,35,70,.12)}
body.cp-sub .cp-header .brand{display:flex;align-items:center;gap:10px;margin:0;font-weight:700;font-size:18px;color:var(--text);text-decoration:none;flex:0 0 auto}
body.cp-sub .cp-header .brand img{width:32px;height:32px;border-radius:0}
body.cp-sub .cp-header .nav-links{display:flex;gap:30px;font-size:14px}
body.cp-sub .cp-header .nav-links a{color:var(--muted);font-weight:500;font-size:14px;text-decoration:none}
body.cp-sub .cp-header .nav-links a:hover,body.cp-sub .cp-header .nav-links a[aria-current="page"]{color:var(--text)}
body.cp-sub .cp-header .nav-cta{background:var(--grad-cta);color:#FFFFFF;padding:10px 18px;border-radius:12px;font-weight:600;font-size:14px;text-decoration:none;white-space:nowrap}
body.cp-sub .cp-header .nav-cta:hover{transform:translateY(-1px);color:#FFFFFF}
body.cp-sub .theme-toggle{background:transparent;border:1px solid var(--border);color:var(--text);width:44px;height:44px;border-radius:12px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;margin-inline-end:10px;padding:0;flex:0 0 auto;transition:background .15s,border-color .15s}
body.cp-sub .theme-toggle:hover{border-color:var(--violet)}
body.cp-sub .theme-toggle .icon-sun{display:none}
body.cp-sub .theme-toggle .icon-moon{display:block}
html[data-theme="dark"] body.cp-sub .theme-toggle .icon-sun{display:block}
html[data-theme="dark"] body.cp-sub .theme-toggle .icon-moon{display:none}
@media(max-width:560px){body.cp-sub .cp-soon-nav{display:none}}
@media(max-width:860px){body.cp-sub .cp-header .nav-links{display:none}}
@media(max-width:430px){body.cp-sub .cp-header .nav-inner{padding:12px 14px}body.cp-sub .cp-header .nav-cta{padding:10px 12px;font-size:13px}body.cp-sub .cp-header .brand{font-size:16px}body.cp-sub .theme-toggle{width:40px;height:40px;margin-inline-end:6px}}

/* ---------- Content column ---------- */
body.cp-sub .cp-main{display:block;max-width:820px;margin:44px auto 0;padding:0 24px;overflow-wrap:break-word}
body.cp-sub .cp-main a{overflow-wrap:anywhere}
body.cp-sub .cp-main > .wrap,
body.cp-sub .cp-main > .card{max-width:none;width:auto;margin:0;background:var(--card-fill);color:var(--text);border:1px solid var(--border);border-radius:24px;padding:48px 52px;box-shadow:var(--card-shadow)}
body.cp-sub .cp-main > .container{max-width:none;margin:0;padding:0}
body.cp-sub .cp-main h1{font-size:40px;line-height:1.1;font-weight:900;letter-spacing:-1px;margin:0 0 12px;color:var(--text);background:linear-gradient(120deg,#FFFFFF 0%,#A5A3FA 50%,#6E6BF0 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
html[data-theme="light"] body.cp-sub .cp-main h1{background:linear-gradient(120deg,#0E0E15 0%,#5750E0 60%,#0E7490 100%);-webkit-background-clip:text;background-clip:text}
body.cp-sub .cp-main h2{color:var(--violet2);border-color:var(--border)}
body.cp-sub .cp-main h3,body.cp-sub .cp-main h4{color:var(--text)}
body.cp-sub .cp-main p,body.cp-sub .cp-main li,body.cp-sub .cp-main td{color:var(--text)}
body.cp-sub .cp-main strong,body.cp-sub .cp-main b{color:inherit}
body.cp-sub .cp-main em{color:var(--muted)}
body.cp-sub .cp-main .sub,body.cp-sub .cp-main .date,body.cp-sub .cp-main .lead,body.cp-sub .cp-main p.sub{color:var(--muted)}
body.cp-sub .cp-main .box{background:var(--card2);color:var(--text);border:1px solid var(--border)}
body.cp-sub .cp-main .warning{background:var(--callout-bg);color:var(--callout-text);border:0;border-inline-start:4px solid var(--callout-border)}
body.cp-sub .cp-main .warning *{color:var(--callout-text)}
body.cp-sub .cp-main .warning a{color:inherit;text-decoration:underline}
body.cp-sub .cp-main table{border-color:var(--border)}
body.cp-sub .cp-main th,body.cp-sub .cp-main td{border-color:var(--border)}
body.cp-sub .cp-main th{background:var(--card2);color:var(--text)}
body.cp-sub .cp-main hr{border:0;border-top:1px solid var(--border)}
body.cp-sub .cp-main code,body.cp-sub .cp-main kbd{background:var(--card2);color:var(--text);border-radius:6px;padding:1px 6px}
body.cp-sub .cp-main .foot{border-top-color:var(--border);color:var(--muted)}
body.cp-sub .cp-main .foot a{color:var(--violet2)}
body.cp-sub .cp-main .tag{background:#4F4BD8;color:#FFFFFF}

/* whats-new / help / delete-account blocks */
body.cp-sub .cp-main .release,body.cp-sub .cp-main .toc,body.cp-sub .cp-main .section,
body.cp-sub .cp-main .feature,body.cp-sub .cp-main .callout,body.cp-sub .cp-main .steps-box,
body.cp-sub .cp-main .note,body.cp-sub .cp-main .tip,body.cp-sub .cp-main .faq-item{background-color:var(--card-fill);color:var(--text);border-color:var(--border)}
body.cp-sub .cp-main .feature{background-color:transparent}
body.cp-sub .cp-main .release .version{color:var(--violet2)}
body.cp-sub .cp-main .release .date,body.cp-sub .cp-main .desc,body.cp-sub .cp-main .feature .desc{color:var(--muted)}
body.cp-sub .cp-main .feature .title{color:var(--text)}
body.cp-sub .cp-main .toc a{color:var(--violet2)}
body.cp-sub .cp-main .toc b{color:var(--text)}

/* redeem form */
body.cp-sub .cp-main > .card{max-width:460px;margin:0 auto;padding:32px}
body.cp-sub .cp-main input,body.cp-sub .cp-main select,body.cp-sub .cp-main textarea{background:var(--bg2);color:var(--text);border-color:var(--border)}
body.cp-sub .cp-main label{color:var(--muted)}
body.cp-sub .cp-main input::placeholder{color:var(--muted);opacity:1}

@media(max-width:680px){
 body.cp-sub .cp-main{margin-top:28px;padding:0 16px}
 body.cp-sub .cp-main > .wrap,body.cp-sub .cp-main > .card{padding:28px 20px;border-radius:20px}
 body.cp-sub .cp-main h1{font-size:30px}
 body.cp-sub .cp-main input,body.cp-sub .cp-main select,body.cp-sub .cp-main textarea{font-size:16px}
}

/* ---------- Footer (same as index footer) ---------- */
body.cp-sub .cp-footer{padding:70px 0 40px;border-top:1px solid var(--border);margin-top:90px;color:var(--muted);background:transparent}
body.cp-sub .cp-footer-inner{max-width:1240px;margin:0 auto;padding:0 24px}
body.cp-sub .cp-footer .footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px}
body.cp-sub .cp-footer .footer-brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:18px;color:var(--text);margin:0 0 14px}
body.cp-sub .cp-footer .footer-brand img{width:32px;height:32px}
body.cp-sub .cp-footer .footer-tagline{color:var(--muted);font-size:14px;max-width:320px;margin:0}
body.cp-sub .cp-footer h3{color:var(--text);font-size:13px;text-transform:uppercase;letter-spacing:.8px;margin:0 0 14px;font-weight:700;border:0;padding:0}
body.cp-sub .cp-footer ul{list-style:none;margin:0;padding:0}
body.cp-sub .cp-footer li{margin:0 0 8px;padding:0;font-size:14px}
body.cp-sub .cp-footer a{color:var(--muted);font-size:14px;text-decoration:none}
body.cp-sub .cp-footer a:hover{color:var(--text)}
body.cp-sub .cp-footer .footer-bottom{margin-top:50px;padding-top:24px;border-top:1px solid var(--border);color:var(--muted);font-size:13px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}
body.cp-sub .cp-footer .footer-bottom a{color:var(--violet2);font-size:13px}
body.cp-sub .cp-footer .footer-legal{margin-top:14px;font-size:12px;color:var(--muted);line-height:1.6}
@media(max-width:760px){body.cp-sub .cp-footer .footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){body.cp-sub .cp-footer{padding:48px 0 32px;margin-top:56px}body.cp-sub .cp-footer .footer-grid{gap:28px}}
@media (prefers-reduced-motion:reduce){body.cp-sub *,body.cp-sub *::before,body.cp-sub *::after{transition-duration:.01ms!important}}

/* Page-specific fixes: class rules generated from old style attributes
   (style_attrs.py, two-ID specificity) carried light-only colours. */
body.cp-sub .cps-ae0c8122:not(#cp-s):not(#cp-s),
body.cp-sub .cps-eb9a5a72:not(#cp-s):not(#cp-s){background:var(--card2);color:var(--text);border-left:0;border-inline-start:3px solid var(--violet)}
body.cp-sub .cps-ac560b95:not(#cp-s):not(#cp-s){color:var(--violet2)}

/* Labels of whats-new / help: tint + text from the same theme. */
body.cp-sub .cp-main .pill{background:var(--tint-bg);color:var(--violet2)}
body.cp-sub .cp-main .pill.new{background:rgba(34,197,94,.16);color:var(--green)}
body.cp-sub .cp-main .pill.improved{background:rgba(59,130,246,.16);color:var(--blue)}
body.cp-sub .cp-main .pill.fix{background:rgba(245,158,11,.18);color:var(--amber)}
body.cp-sub .cp-main .pill.safety{background:var(--tint-bg);color:var(--violet2)}

/* redeem: white text needs the darker violet (#5750E0, 5.79:1). */
body.cp-sub .cp-main button{background:#5750E0;color:#FFFFFF}
body.cp-sub .cp-main button:hover:not(:disabled){background:#4842C9}

/* Narrow phones: brand mark only and the language flag only (the button
   keeps its translated aria-label), so brand, language, theme toggle and
   CTA all fit on one row down to 320px. */
@media(max-width:480px){
 body.cp-sub .cp-header .brand span{display:none}
 body.cp-sub .cp-header #cp-lang-btn > span:not(.cp-flag):not(.cp-caret){display:none}
 body.cp-sub .cp-header #cp-lang-wrap{margin-inline-end:6px}
 body.cp-sub .cp-header .nav-inner{padding:10px 12px}
}
