/* ============================================================================
   legal.css · the layer on top of assets/site.css for /privacy /terms /support /account-deletion
   site.css is a verbatim copy of the <style> block of index.html (run `node tools/extract-site-css.mjs`
   after any design change on the home page). Everything here only arranges long-form text with the
   site's own components: .sec .wrap .sp .hd .kick .h2 .lede .sheet .faq .rows .btn .note .foot.
   ========================================================================== */

/* page frame: the same stacked, un-pinned scene the home page uses on phones */
.lg{position:relative;z-index:1}
.lgsec{align-items:start;min-height:0;padding-bottom:72px}
.lgsp{align-items:start;gap:clamp(28px,5vw,88px)}
.lghd{position:sticky;top:calc(var(--nav) + var(--sat) + 28px);max-width:560px}
.lghd .h2{margin-top:18px}
.lghd .h2 .ln{display:block}
.lghd .lede{max-width:40ch}

/* the contents list: the home page's numbered .rows look, as links */
.lgtoc{list-style:none;margin:30px 0 0;padding:0;border-top:1px solid var(--line2)}
.lgtoc li{border-bottom:1px solid var(--line)}
.lgtoc a{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:baseline;padding:13px 0;min-height:44px;text-decoration:none;color:var(--mut);transition:color .25s var(--e)}
.lgtoc a .n{font:700 11px/1 var(--mono);color:var(--faint)}
.lgtoc a .tt{font-size:16px;font-weight:600;letter-spacing:-.01em}
.lgtoc a:hover,.lgtoc a[aria-current="true"]{color:var(--fg)}
.lgtoc a[aria-current="true"]{box-shadow:inset 2px 0 0 var(--acc);padding-inline-start:10px}
[dir="rtl"] .lgtoc a[aria-current="true"]{box-shadow:inset -2px 0 0 var(--acc)}
.lgtoc a[aria-current="true"] .n{color:var(--acct)}

/* the paper sheet carries the text, like the Privacy and FAQ chapter */
.lgsheet{margin:0;padding:clamp(8px,1.4vw,18px) clamp(18px,3vw,44px) clamp(14px,2vw,28px)}
.lgfaq{border-top:0}
.lgfaq details.lgs{border-bottom:1px solid var(--linep)}
.lgfaq details.lgs:last-of-type{border-bottom:3px double var(--fgp)}
.lgfaq summary{padding:20px 0;min-height:64px;font-size:clamp(18px,1.7vw,22px);letter-spacing:-.02em;font-weight:700}
.lgfaq summary:hover{color:var(--accp)}
.lgfaq summary .t{display:inline}
.lgfaq .ans{padding:0 34px 26px 44px;max-width:none;color:#2A2E34}
[dir="rtl"] .lgfaq .ans{padding:0 44px 26px 34px}
:root[data-theme="dark"] .lgfaq .ans{color:#2A2E34}

/* long-form text inside an answer */
.art{min-width:0;overflow-wrap:anywhere}
.ans p,.ans li{font-size:16.5px;line-height:1.68;color:#2A2E34}
.ans p{margin:14px 0 0}
.ans p:first-child{margin-top:0}
.ans ul,.ans ol{margin:14px 0 0;padding-inline-start:1.25em;display:grid;gap:9px}
.ans li::marker{color:var(--accp);font-weight:700}
.ans a{color:var(--fgp);text-underline-offset:3px;text-decoration-thickness:1px}
.ans a:hover{text-decoration-thickness:2px}
.ans h3{margin:26px 0 0;font-size:17px;font-weight:700;letter-spacing:-.01em}
.ans .ptable{margin-top:16px}
.callout{padding:14px 16px;border-radius:14px;background:var(--paper2);border:1px solid var(--linep2);font-weight:600}
.lgsheet>.note{margin-top:28px;display:block}
.only-en{margin-top:8px}
html:not([lang="en"]) .only-en{display:none}

/* placeholders stay visible on purpose (never hidden by CSS) so nobody ships them by accident */
mark.ph{background:rgba(163,95,0,.12);color:#7A4300;padding:0 .2em;border-radius:4px;outline:1px dashed #A35F00;font-weight:600}
.draft,.pend{margin:22px 0 0;padding:12px 14px;border-radius:14px;border:1px dashed var(--line2);background:color-mix(in srgb,var(--fg) 5%,transparent);font:600 13px/1.5 var(--sans);color:var(--fg);letter-spacing:0;max-width:44ch}
.draft{border-color:#A35F00}
.pend{display:none;direction:ltr;text-align:left;font-weight:500;color:var(--mut)}
html[lang="ckb"] .pend{display:block}
.ans .pend{margin:0 0 14px;background:var(--paper2);color:var(--mutp);border-color:var(--linep2)}

/* the three language variants of every text: only the active language shows; Kurdish falls back to English (data-fb) */
html[lang="en"] .t[lang="ar"],html[lang="en"] .t[lang="ckb"],
html[lang="ar"] .t[lang="en"],html[lang="ar"] .t[lang="ckb"],
html[lang="ckb"] .t[lang="ar"],html[lang="ckb"] .t[lang="en"]:not([data-fb]){display:none!important}
.t[data-fb]{text-align:left}
[dir="rtl"] .ans .t[data-fb] a,[dir="rtl"] .ans .t[data-fb] mark{unicode-bidi:isolate}
html[lang="ckb"] .ans :is(h3,p,li):has(> .t[data-fb]),html[lang="ckb"] .ans :is(ul,ol):has(> li > .t[data-fb]){direction:ltr;text-align:left}

/* the footer on these pages has three columns */
.fgrid{grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1fr))}
.foot ul a mark.ph{outline:none}
.foot .fbase .made{margin-inline-start:auto}

@media (max-width:1023px){
  .lgsp{grid-template-columns:minmax(0,1fr)}
  .lghd{position:static;max-width:none}
  .lgtoc{margin-top:22px}
}
@media (max-width:767px){
  .lgsec{padding-top:calc(var(--nav) + var(--sat) + 18px)}
  .lgsheet{border-radius:28px;padding:6px 16px 12px;margin:0 -6px}
  .lgfaq .ans{padding:0 4px 22px 4px}
  [dir="rtl"] .lgfaq .ans{padding:0 4px 22px 4px}
  .ans p,.ans li{font-size:16px}
  .fgrid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{
  .top,.foot,.skip,.lgtoc,.draft,#world{display:none!important}
  html,body{background:#fff!important}
  .sec{padding:0}.sheet{background:#fff;border-radius:0;box-shadow:none}
  .lgfaq details{display:block}.lgfaq details>summary{pointer-events:none}.lgfaq details:not([open])>.ans{display:block}
  .ans p,.ans li{color:#000;font-size:11pt}.ans a{color:#000}
  .ans a[href^="/"]::after,.ans a[href^="mailto"]::after{content:" (" attr(href) ")";font-size:9pt}
  .lgs{break-inside:avoid-page}
}

/* header: push the actions to the end like the home page's pill, and keep the "Get the app" button */
.top-act{margin-inline-start:auto}
@media (max-width:767px){.top .btn-p{display:none}}

/* the page title is a chapter title like the home page's: big, two lines, second line in the accent */
.lghd .h2{font-size:clamp(46px,5.2vw,80px);line-height:.98}
@media (max-width:767px){.lghd .h2{font-size:clamp(40px,12vw,54px)}}

/* phones and tablets: the accordion is already the list of sections, so the contents list steps aside */
@media (max-width:1023px){.lgtoc{display:none}}
