/* ==== LEGAL pages (privacy · terms · accessibility), prefix ct- · markup src/p/contact.js (legalPage) · behaviour js/p/privacy.js
   This is the MASTER file: css/p/terms.css and css/p/accessibility.css are generated copies — edit here, then run `node tools/contact-build.js`. ==== */

/* ---------------------------------------------------------------- dark hero: tabs, two-tone title, last update | a quiet summary card */
.ct-lh{position:relative;overflow:hidden;isolation:isolate;padding:calc(var(--nav-h) + clamp(36px,4.5vw,72px)) 0 clamp(52px,6vw,96px);background:var(--ink);color:#EDEEF5;text-align:start}
.ct-lh .k-hero-sky{background:
  radial-gradient(46% 70% at 24% 60%,rgba(84,121,255,.26),transparent 70%),
  linear-gradient(180deg,#12162F 0%,#171C3E 55%,#1A2049 100%)}
.ct-lh::after{content:"";position:absolute;inset-inline:0;bottom:0;height:1px;background:linear-gradient(90deg,transparent,rgba(169,188,255,.32),transparent)}
.ct-lh-in{width:var(--mwrap,calc(100% - 48px));margin-inline:auto;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:clamp(28px,5vw,96px);align-items:center}
.ct-lh-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.ct-ltabs{display:inline-flex;gap:4px;padding:4px;border-radius:40px;margin-bottom:clamp(28px,3.2vw,48px);max-width:100%;overflow-x:auto;scrollbar-width:none;
  background:rgba(175,178,206,.12);border:1px solid rgba(175,178,206,.24);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
.ct-ltabs::-webkit-scrollbar{display:none}
.ct-ltabs a{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 16px;border-radius:30px;font-size:14.5px;color:#C3C6D6;white-space:nowrap;transition:background-color .25s,color .25s}
.ct-ltabs a:hover{color:#fff;background:rgba(175,178,206,.14)}
.ct-ltabs a[aria-current="page"]{background:#EDEEF5;color:#12142A}
.ct-ltabs .ct-ic{opacity:.85}
.ct-lh1{font-size:clamp(2.75rem,1.5rem + 3.6vw,5.25rem);line-height:1;font-weight:500;letter-spacing:-.012em;color:#F3F4FA}
.ct-lt{display:block;font-weight:280;letter-spacing:0;color:#9AA2CC}
.ct-lupd{margin-top:clamp(20px,2.2vw,28px);display:inline-flex;align-items:center;gap:8px;font-size:15px;color:#B4B8CC}
.ct-lupd .ct-ic{color:#A9BCFF}
.ct-ic,.ct-mark{flex:none;display:block}

/* the summary card: what the document says, in three lines (a real UI fragment, not decoration) */
.ct-sum{justify-self:end;width:min(100%,400px);padding:22px 22px 18px;border-radius:22px;background:#fff;color:#12142A;text-align:start;
  box-shadow:0 0 0 1px rgba(255,255,255,.06),0 40px 90px -40px rgba(0,0,0,.75)}
.ct-sum-h{display:flex;align-items:center;gap:12px;padding-bottom:16px;border-bottom:1px solid #ECEEF3}
.ct-sum-ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:rgba(46,91,255,.09);color:#2E5BFF;flex:none}
.ct-sum-h b{display:block;font-size:16.5px;font-weight:500}
.ct-sum-h small{display:block;margin-top:2px;font-size:13px;color:#8A8D9E}
.ct-sum-k{margin-top:16px;font-size:13px;font-weight:500;color:#8A8D9E}
.ct-sum ul{margin-top:10px;display:flex;flex-direction:column;gap:11px}
.ct-sum li{display:flex;align-items:center;gap:11px;font-size:15.5px;line-height:1.35;color:#272735}
.ct-sum li i{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;flex:none;background:#E7F6F0;color:#14936F}
.ct-sum-f{margin-top:18px;padding-top:14px;border-top:1px solid #ECEEF3;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13.5px;color:#6A6E86}
.ct-sum-f a{display:inline-flex;align-items:center;gap:6px;font-weight:480;color:#2E5BFF}
.ct-sum-f a:hover{color:#2148DB}
.ct-sum-f a .ct-ic{transform:rotate(-90deg)}

/* ---------------------------------------------------------------- reading layout */
.ct-lb{padding-top:clamp(48px,6vw,96px);padding-bottom:clamp(80px,9vw,140px)}
.ct-lgrid{display:grid;grid-template-columns:minmax(230px,290px) minmax(0,1fr);gap:clamp(32px,6vw,112px);align-items:start}

/* sticky table of contents with a stage track (scroll-spy) */
.ct-toc{position:sticky;top:calc(var(--nav-h) + 28px);max-height:calc(100vh - var(--nav-h) - 56px);overflow:auto;scrollbar-width:thin;
  padding:20px 16px 16px;border-radius:18px;background:#fff;border:1px solid rgba(18,20,42,.07);
  box-shadow:0 1px 2px rgba(18,20,42,.04),0 24px 48px -28px rgba(18,20,42,.22)}
.ct-toc-h{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:500;color:var(--dim,#8A8D9E);padding:0 8px 12px;letter-spacing:.01em}
.ct-toc ol{position:relative;display:flex;flex-direction:column;gap:2px}
.ct-toc li{position:relative}
.ct-toc a{position:relative;display:flex;align-items:flex-start;gap:11px;padding:8px 8px 8px 10px;border-radius:10px;font-size:14.5px;line-height:1.35;color:#5D6075;transition:background-color .25s,color .25s}
.ct-toc a:hover{background:rgba(46,91,255,.05);color:#272735}
.ct-toc-n{position:relative;z-index:1;flex:none;width:28px;height:28px;border-radius:9px;display:grid;place-items:center;color:#6A6E86;background:#F1F2F7;transition:background-color .3s,color .3s,box-shadow .3s}
.ct-toc-t{min-width:0;padding-top:1px}
.ct-toc-t small{display:block;font-family:"Fragment Mono","Discovery",monospace;font-size:10.5px;color:#9A9DB0;direction:ltr;text-align:right;margin-bottom:1px}
.ct-toc li:not(:last-child)::before{content:"";position:absolute;right:21.5px;top:36px;bottom:-10px;width:1px;background:#E3E4EC}
.ct-toc a.is-done .ct-toc-n{background:rgba(46,91,255,.12);color:#2E5BFF}
.ct-toc li.is-done::before{background:rgba(46,91,255,.35)}
.ct-toc a.is-on{background:rgba(46,91,255,.08);color:#12142A;font-weight:480}
.ct-toc a.is-on .ct-toc-n{background:#2E5BFF;color:#fff;box-shadow:0 4px 12px -4px rgba(46,91,255,.7)}
.ct-toc-prog{height:3px;margin:14px 8px 0;border-radius:3px;background:#ECEDF3;overflow:hidden}
.ct-toc-prog i{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(to left,#2E5BFF,#7C97FF);transition:width .2s linear}
.ct-toc-q{display:flex;align-items:center;gap:8px;margin:12px 0 0;padding:11px 10px 4px;border-top:1px solid #EEEFF4;font-size:14px;color:#2E5BFF}
.ct-toc-q:hover{color:#2148DB}

/* document */
.ct-doc{max-width:720px;min-width:0}
.ct-sec{position:relative;display:grid;grid-template-columns:76px minmax(0,1fr);padding:34px 0 38px;border-top:1px solid var(--rule,#C3C3CC);scroll-margin-top:calc(var(--nav-h) + 28px)}
.ct-sec:first-child{padding-top:6px;border-top:0}
.ct-sec > *:not(.ct-n){grid-column:2}
.ct-n{grid-row:1 / span 2;align-self:start;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.ct-n i{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;color:#2E5BFF;background:#fff;box-shadow:inset 0 0 0 1px rgba(18,20,42,.08),0 12px 24px -16px rgba(18,20,42,.35);transition:background-color .35s,color .35s,box-shadow .35s}
.ct-n b{font-family:"Fragment Mono","Discovery",monospace;font-size:12px;font-weight:400;color:#8A8D9E;direction:ltr;width:48px;text-align:center}
.ct-sec.is-on .ct-n i{background:#2E5BFF;color:#fff;box-shadow:0 14px 28px -12px rgba(46,91,255,.75)}
.ct-sec.is-on .ct-n b{color:#2E5BFF}
.ct-sec h2{padding-top:10px;font-size:clamp(22px,1.8vw,29px);line-height:1.22;font-weight:480;color:var(--fg);letter-spacing:.005em;text-wrap:balance}
.ct-body{margin-top:12px}
.ct-body p,.ct-body li{font-size:clamp(16.5px,1.2vw,18.5px);line-height:1.75;color:var(--mut);text-wrap:pretty}
.ct-body p + p,.ct-body ul + p,.ct-body p + ul{margin-top:12px}
.ct-body ul{display:flex;flex-direction:column;gap:8px}
.ct-body li{position:relative;padding-inline-start:24px}
.ct-body li::before{content:"";position:absolute;inset-inline-start:3px;top:.72em;width:7px;height:7px;border-radius:2px;rotate:45deg;background:rgba(46,91,255,.18);box-shadow:inset 0 0 0 1.5px #2E5BFF}
.ct-body a{color:var(--fg);border-bottom:1px solid rgba(46,91,255,.4);transition:color .2s,border-color .2s}
.ct-body a:hover{color:#2E5BFF;border-color:#2E5BFF}
.ct-body a[dir="ltr"]{unicode-bidi:isolate}
.ct-act{margin-top:18px;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 18px 0 16px;border-radius:40px;font-size:15px;font-weight:450;color:#12142A;background:#fff;
  box-shadow:inset 0 0 0 1px rgba(18,20,42,.12),0 6px 16px -10px rgba(18,20,42,.3);transition:box-shadow .25s,color .25s}
.ct-act:hover{color:#2E5BFF;box-shadow:inset 0 0 0 1px rgba(46,91,255,.45),0 8px 20px -10px rgba(46,91,255,.4)}
.ct-act .ct-ic{color:#2E5BFF}

/* contact line + other documents */
.ct-end{margin-top:10px;padding-top:36px;border-top:1px solid var(--rule,#C3C3CC)}
.ct-end-card{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:22px 24px;border-radius:18px;color:#EDEEF5;
  background:radial-gradient(80% 140% at 0% 100%,rgba(84,121,255,.38),transparent 60%),linear-gradient(180deg,#1A1F3E,#12162F);box-shadow:0 30px 60px -30px rgba(18,20,42,.55)}
.ct-end-mk{width:52px;height:52px;border-radius:15px;display:grid;place-items:center;background:#2E5BFF;color:#fff;flex:none;box-shadow:0 10px 24px -10px rgba(46,91,255,.9)}
.ct-end-tx{flex:1;min-width:220px}
.ct-end-tx p{font-size:clamp(17px,1.3vw,20px);line-height:1.4;font-weight:450}
.ct-end-tx a{border-bottom:1px solid rgba(255,255,255,.4);unicode-bidi:isolate}
.ct-end-tx a:hover{border-color:#fff}
.ct-end-tx small{display:block;margin-top:4px;font-size:13.5px;color:#A6ABC6}
.ct-end-btns{display:flex;gap:8px;flex-wrap:wrap}
.ct-btn-wa{background:rgba(31,181,143,.18);color:#9FF0D6;box-shadow:inset 0 0 0 1px rgba(31,181,143,.4)}
.ct-btn-wa:hover{background:rgba(31,181,143,.28);color:#fff}
.ct-end-k{margin-top:30px;font-size:13px;font-weight:500;color:var(--dim,#8A8D9E)}
.ct-end-more{margin-top:10px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ct-more{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:14px;background:#fff;border:1px solid rgba(18,20,42,.07);color:#272735;font-size:16px;
  box-shadow:0 14px 30px -24px rgba(18,20,42,.3);transition:transform .35s cubic-bezier(.22,.61,.36,1),border-color .25s}
.ct-more:hover{transform:translateY(-2px);border-color:rgba(46,91,255,.35)}
.ct-more b{flex:1;font-weight:480}
.ct-more > .ct-ic{color:#8A8D9E;transition:transform .35s cubic-bezier(.22,.61,.36,1),color .25s}
.ct-more:hover > .ct-ic{transform:translateX(-4px);color:#2E5BFF}
.ct-more-ic{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:rgba(46,91,255,.08);color:#2E5BFF;flex:none}

/* ---------------------------------------------------------------- responsive: the TOC becomes a sticky chip rail */
@media (max-width:1023px){
  .ct-lh-in{grid-template-columns:minmax(0,1fr);gap:36px}
  .ct-sum{justify-self:start;width:min(100%,520px)}
  .ct-lgrid{grid-template-columns:minmax(0,1fr);gap:28px}
  .ct-toc{top:var(--nav-h);z-index:5;max-height:none;overflow:visible;margin-inline:-24px;padding:10px 24px 0;border-radius:0;border:0;border-bottom:1px solid rgba(18,20,42,.08);
    background:rgba(251,252,253,.9);-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);box-shadow:none}
  .ct-toc-h,.ct-toc .ct-toc-q,.ct-toc-t small{display:none}
  .ct-toc ol{flex-direction:row;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:10px;margin-inline:-24px;padding-inline:24px;scroll-padding-inline:24px}
  .ct-toc ol::-webkit-scrollbar{display:none}
  .ct-toc li{flex:none}
  .ct-toc li:not(:last-child)::before{display:none}
  .ct-toc a{height:38px;align-items:center;padding:0 5px 0 14px;border-radius:30px;background:#fff;box-shadow:inset 0 0 0 1px rgba(18,20,42,.1);font-size:14px;white-space:nowrap;gap:8px}
  .ct-toc a:hover{background:#fff}
  .ct-toc a.is-on{background:#12142A;color:#fff;box-shadow:none}
  .ct-toc-n{width:28px;height:28px;border-radius:50%}
  .ct-toc-t{padding-top:0}
  .ct-toc-prog{margin:0 -24px;height:2px;border-radius:0;background:transparent}
  .ct-sec{scroll-margin-top:calc(var(--nav-h) + 80px)}
  .ct-doc{max-width:none}
}
@media (max-width:640px){
  .ct-lh1{font-size:clamp(42px,12.5vw,58px)}
  .ct-sum{padding:20px 18px 16px;border-radius:20px}
  .ct-sec{grid-template-columns:minmax(0,1fr);padding:28px 0 30px}
  .ct-sec > *:not(.ct-n){grid-column:1}
  .ct-n{grid-row:auto;flex-direction:row;align-items:center;gap:10px;margin-bottom:4px}
  .ct-n i{width:40px;height:40px;border-radius:12px}
  .ct-n b{width:auto}
  .ct-sec h2{padding-top:4px}
  .ct-end-card{padding:20px}
  .ct-end-btns{width:100%}
  .ct-end-btns .btn{flex:1}
  .ct-end-more{grid-template-columns:1fr}
  .ct-ltabs a{padding:0 12px;font-size:13.5px}
  .ct-ltabs .ct-ic{display:none}
}
@media (prefers-reduced-motion:reduce){.ct-toc-prog i,.ct-more,.ct-more > .ct-ic{transition:none}}
.ct-body a[dir="ltr"],.ct-end-tx a{white-space:nowrap}
