/* Basepoint Works · privacy.css — privacy.html only (loads after site.css).
   The head: big light type over a dimmed silk loop (scene "legal" in js/privacy.js lifts the copy and sinks the loop);
   on desktop the kicker carries a hairline datum that ends in the Basepoint coordinates.
   The reading grid: a sticky section index (>= 1024 px) whose amber marker slides to the section being read (the rail
   fills down to it and the header counts it), beside one reading panel (.legal-pane) with a document bar on desktop and
   a native contents disclosure below 1024 px. The policy markup (<article class="legal-doc">) is the v3 legal text,
   untouched: style it, never edit it. Base rules = the static page; every entrance state is scoped under .eng. */

/* ---------- head ---------- */
.legal__top{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:clamp(420px,calc(var(--svh) * .74),780px);padding:calc(var(--hdr-h) + 48px) var(--gut) clamp(40px,7vh,80px);overflow:hidden;overflow:clip}
.legal__media{position:absolute;inset:0;overflow:hidden;background:#0d0e10}
.legal__vid{position:absolute;inset:0;transform-origin:50% 40%}
.legal__vid .vid{opacity:.82}
.legal__shade{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(20,22,24,.82) 0%,rgba(20,22,24,.5) 46%,rgba(20,22,24,.12) 100%),
             linear-gradient(180deg,rgba(20,22,24,.72) 0%,rgba(20,22,24,.18) 34%,rgba(20,22,24,.42) 66%,var(--ink-0) 100%)}
.legal__head{position:relative;z-index:2;width:100%;max-width:var(--max);margin-inline:auto}
.legal__meta-row{display:flex;align-items:center;gap:16px;margin-bottom:clamp(14px,2.4vh,26px)}
.legal__meta-row .legal__meta{flex:none;margin:0}
.legal__rule,.legal__coord{display:none}
@media (min-width:1024px){
  .legal__rule{display:block;flex:1 1 auto;height:1px;transform-origin:0 50%;
    background:linear-gradient(90deg,var(--hair-2),rgba(244,241,234,.12) 70%,rgba(244,241,234,.04)),
               linear-gradient(90deg,rgba(244,241,234,.3) 0 1px,transparent 1px) 0 0/80px 1px repeat-x}
  .legal__coord{display:block;flex:none;color:var(--mist);letter-spacing:.12em;white-space:nowrap}
  .legal__coord::before{content:"";display:inline-block;width:5px;height:5px;margin:0 10px 1px 0;border:1px solid var(--amber);vertical-align:middle}
}
.legal__title{text-shadow:0 6px 44px rgba(0,0,0,.35)}
.legal__title .ln{display:block}
@media (max-width:767px){.legal__title{font-size:clamp(50px,15vw,72px)}} /* round 3: the same phone size as the What we build title */
.legal__go{margin-top:clamp(20px,3.6vh,38px)}
.legal__link{gap:10px;white-space:normal;text-align:left;min-height:48px;background:rgba(20,22,24,.5)}
.legal__arr{display:inline-block;color:var(--amber);transition:transform .35s var(--ease)}
@media (hover:hover){.legal__link:hover .legal__arr{transform:translateX(4px)}}
.legal__link:focus-visible .legal__arr{transform:translateX(4px)}
@media (min-width:1024px){.legal__top{min-height:clamp(520px,calc(var(--svh) * .78),820px)}}
/* intro: the h1 lines rise with site.css's .title__h rules; the datum draws, the coordinates and the link follow */
.legal__go{transition:opacity .9s .62s,transform 1s .62s var(--ease)}
.eng.is-loading .legal__go{opacity:0;transform:translateY(16px);animation:ld-show 0s 9.2s forwards}
.eng .legal__rule{transition:transform 1.4s var(--ease) .45s}
.eng .legal__coord{transition:opacity .8s var(--ease) 1.05s}
.eng.is-loading .legal__rule{transform:scaleX(0);animation:ld-show 0s 9.2s forwards}
.eng.is-loading .legal__coord{opacity:0;animation:ld-show 0s 9.2s forwards}

/* ---------- reading grid ---------- */
.legal__grid{position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:32px;max-width:calc(var(--max) + 2 * var(--gut));margin:0 auto;padding:clamp(4px,1vh,16px) var(--gut) clamp(70px,12vh,140px)}
.legal-index{display:none}

/* the reading panel (.legal-pane.ui): one card around the bar / contents and the policy, framed by amber corner ticks */
/* the panel is site.css's dark-glass product card (.ui: translucent gradient, amber top hairline), so the light fibres glow faintly through it */
.legal-pane{border-radius:24px}
.legal-pane::after{content:"";position:absolute;inset:10px;z-index:1;pointer-events:none;opacity:.45;
  --c:var(--amber);--l:11px;
  background:
    linear-gradient(var(--c),var(--c)) left top/var(--l) 1px no-repeat,linear-gradient(var(--c),var(--c)) left top/1px var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) right top/var(--l) 1px no-repeat,linear-gradient(var(--c),var(--c)) right top/1px var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) left bottom/var(--l) 1px no-repeat,linear-gradient(var(--c),var(--c)) left bottom/1px var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) right bottom/var(--l) 1px no-repeat,linear-gradient(var(--c),var(--c)) right bottom/1px var(--l) no-repeat}
.legal-pane__bar{display:none}

/* below 1024 px: "Contents · 10 sections" opens a numbered list of the sections (native <details>) */
.legal-toc{border-bottom:1px solid var(--hair)}
.legal-toc__sum{display:flex;align-items:center;gap:12px;min-height:58px;padding:0 20px 0 24px;cursor:pointer;list-style:none;border-radius:24px 24px 0 0}
.legal-toc__sum::-webkit-details-marker{display:none}
.legal-toc__h{color:var(--paper);font-size:12px}
.legal-toc__h::before{content:"";display:inline-block;width:6px;height:6px;margin:0 10px 1px 0;background:var(--amber);vertical-align:middle}
.legal-toc__n{margin-left:auto;font-size:12px}
.legal-toc__ico{position:relative;flex:none;width:32px;height:32px;border:1px solid var(--hair-2);border-radius:50%;transition:transform .4s var(--ease),border-color .25s}
.legal-toc__ico::before,.legal-toc__ico::after{content:"";position:absolute;left:50%;top:50%;width:11px;height:1px;margin:-.5px 0 0 -5.5px;background:var(--amber)}
.legal-toc__ico::after{transform:rotate(90deg)}
.legal-toc[open] .legal-toc__ico{transform:rotate(45deg);border-color:rgba(242,169,59,.5)}
.legal-toc__sum:focus-visible{outline-offset:-3px}
.legal-toc__list{padding:2px 20px 16px 24px}
.legal-toc__list li+li{border-top:1px solid rgba(244,241,234,.06)}
.legal-toc__list a{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:baseline;min-height:44px;padding:11px 0;font-size:15.5px;line-height:1.35;color:var(--body);transition:color .25s var(--ease)}
.legal-toc__list .mono{color:var(--amber)}
@media (hover:hover){.legal-toc__list a:hover{color:var(--paper)}.legal-toc__sum:hover .legal-toc__ico{border-color:var(--amber)}}
/* round 2: no height animation (that is layout); the panel opens at once and its rows rise in, transform/opacity only,
   in a short stagger (the same feel as the home FAQ answers) */
.eng .legal-toc[open] .legal-toc__list li{animation:legal-toc-in .5s var(--ease) both;animation-delay:calc(var(--i,0) * 22ms)}
.legal-toc__list li:nth-child(2){--i:1}.legal-toc__list li:nth-child(3){--i:2}.legal-toc__list li:nth-child(4){--i:3}
.legal-toc__list li:nth-child(5){--i:4}.legal-toc__list li:nth-child(6){--i:5}.legal-toc__list li:nth-child(7){--i:6}
.legal-toc__list li:nth-child(8){--i:7}.legal-toc__list li:nth-child(9){--i:8}.legal-toc__list li:nth-child(10){--i:9}
@keyframes legal-toc-in{from{opacity:0;transform:translate3d(0,-8px,0)}}
.still .legal-toc__ico{transition:none}
/* round 4: closing (js/privacy.js keeps the <details> open while its list fades and the policy rises) turns the icon back at once */
.legal-toc.is-closing .legal-toc__ico{transform:none;border-color:var(--hair-2)}
/* the hairline jumps to where it ends up (under the summary), so the rising policy never slides across it */
.legal-toc.is-closing{border-bottom-color:transparent}
.legal-toc.is-closing .legal-toc__sum{box-shadow:inset 0 -1px 0 var(--hair)}

/* the policy itself */
.legal-doc{padding:26px 20px 36px;font-size:16.5px;line-height:1.7;color:var(--body)}
.legal-doc>*{max-width:68ch}
.legal-doc p{margin-top:16px}
.legal-doc .legal-doc__intro{margin-top:0;max-width:34em;font-size:clamp(19px,1.75vw,26px);font-weight:300;line-height:1.45;letter-spacing:-.012em;color:var(--paper)}
/* html{scroll-padding-top:var(--hdr-h)} (site.css) already clears the header; scroll-margin-top on the h2s only adds breathing room.
   Each section opens on a hairline whose first 28px is amber. */
.legal-doc h2{display:flex;align-items:baseline;gap:14px;margin-top:44px;padding-top:26px;font-size:clamp(25px,2.5vw,38px);font-weight:300;line-height:1.12;letter-spacing:-.025em;color:var(--paper);scroll-margin-top:24px;
  background:linear-gradient(var(--amber),var(--amber)) 0 0/28px 1px no-repeat,linear-gradient(90deg,var(--hair-2),var(--hair) 40%,rgba(244,241,234,.05)) 0 0/100% 1px no-repeat}
.legal-doc h2 + p{margin-top:14px}
.legal-doc__n{flex:none;width:28px;color:var(--amber)}
.legal-doc ul{display:grid;gap:12px;margin-top:18px}
.legal-doc li{position:relative;padding-left:24px}
.legal-doc li::before{content:"";position:absolute;left:2px;top:.7em;width:6px;height:6px;background:var(--amber)}
.legal-doc a{word-break:break-word}
/* touch: the policy's links get a 44px hit area (padding offset by negative margin, so the lines do not move) */
@media (pointer:coarse){.legal-doc a{display:inline-block;padding:12px 0;margin:-12px 0}}
@media (min-width:768px){
  .legal-pane{border-radius:28px}
  .legal-pane::after{inset:12px}
  .legal-toc__sum{padding:0 40px 0 64px;min-height:64px;border-radius:28px 28px 0 0}
  .legal-toc__list{padding:2px 64px 20px}
  .legal-doc{padding:48px 64px 64px;font-size:17px}
  .legal-doc h2{gap:22px;margin-top:56px;padding-top:30px}
  .legal-doc__n{width:34px}
  /* body text hangs under the heading text, past the section number */
  .legal-doc h2 ~ p,.legal-doc h2 ~ ul{margin-left:56px}
}
/* round 4: a comfortable reading measure (about 70 characters a line; it ran ~95 at 1440). Styling only; the text is untouched */
@media (min-width:1024px){.legal-doc h2 ~ p,.legal-doc h2 ~ ul{max-width:54ch}}
@media (min-width:1280px){.legal-doc{font-size:17.5px}.legal-doc h2 ~ p,.legal-doc h2 ~ ul{max-width:52ch}}
/* the policy's mail link eases its hover like every other link on the site */
.legal-doc .tlink{transition:color .25s var(--ease),text-decoration-color .25s var(--ease)}
.still .legal-doc .tlink{transition:none}

/* ---------- sticky index + document bar (>= 1024 px) ---------- */
@media (min-width:1024px){
  .legal__grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:24px;align-items:start}
  .legal-pane{grid-column:4 / 13}
  .legal-toc{display:none}
  .legal-pane__bar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0;padding:22px 64px 20px;border-bottom:1px solid var(--hair);color:rgba(167,173,179,.8)}
  .legal-pane__id{color:var(--paper)}
  .legal-pane__id::before{content:"";display:inline-block;width:6px;height:6px;margin:0 10px 1px 0;background:var(--amber);vertical-align:middle}
  .legal-doc{padding-top:52px}
  .legal-index{display:block;grid-column:1 / 4;position:sticky;top:calc(var(--hdr-h) + 28px);padding:4px 0 0}
  .legal-index__h{display:flex;justify-content:space-between;align-items:center;margin:0 12px 26px 0;padding-bottom:14px;border-bottom:1px solid var(--hair);color:rgba(167,173,179,.8)}
  .legal-index__h>span:first-child::before{content:"";display:inline-block;width:6px;height:6px;margin:0 10px 1px 0;background:var(--amber);vertical-align:middle}
  .legal-index__pos b{font-weight:500;color:var(--amber)}
  .legal-index__list{position:relative}
  .legal-index__list::before{content:"";position:absolute;left:8px;top:-14px;bottom:20px;width:1px;background:repeating-linear-gradient(180deg,var(--hair-2) 0 4px,transparent 4px 8px)}
  .legal-index__link{position:relative;display:grid;grid-template-columns:34px 30px minmax(0,1fr);align-items:baseline;min-height:40px;padding:9px 12px 9px 0;border-radius:10px;font-size:14.5px;line-height:1.35;color:var(--mist);transition:color .25s var(--ease),background-color .25s var(--ease)}
  .legal-index__tick{position:absolute;left:5px;top:16px;width:7px;height:7px;border:1px solid var(--hair-2);background:var(--ink-0);transition:border-color .25s,background-color .25s}
  .legal-index__n{grid-column:2;color:inherit}
  .legal-index__t{grid-column:3}
  .legal-index__link:hover,.legal-index__link:focus-visible{color:var(--paper);background:rgba(244,241,234,.04)}
  .legal-index__link:focus-visible{outline-offset:0}
  .legal-index__link.is-on{color:var(--paper)}
  .legal-index__link.is-on .legal-index__n{color:var(--amber)}
  .legal-index__link.is-on .legal-index__tick,.legal-index__link.is-read .legal-index__tick{border-color:var(--amber);background:var(--amber)}
  .legal-index__link.is-read .legal-index__tick{background:rgba(242,169,59,.35);border-color:rgba(242,169,59,.6)}
  /* the rail fills in amber down to the marker (js/privacy.js sets --ft/--fh and the scale) */
  .legal-index__fill{position:absolute;left:8px;top:var(--ft,0);width:1px;height:var(--fh,0);background:linear-gradient(180deg,rgba(242,169,59,.2),var(--amber));transform-origin:50% 0;transform:scaleY(0);pointer-events:none}
  .legal-index__fill.is-live{transition:transform .6s var(--ease)}
  /* the Basepoint: an amber square that slides down the rail to the section being read (js/privacy.js places it) */
  .legal-index__mark{position:absolute;left:1px;top:0;z-index:1;width:15px;height:15px;background:var(--amber);box-shadow:0 0 0 4px rgba(20,22,24,.9),0 0 22px rgba(242,169,59,.55);pointer-events:none;opacity:0;transform:translate3d(0,12px,0)}
  .legal-index__mark.is-on{opacity:1}
  .legal-index__mark.is-live{transition:transform .6s var(--ease),opacity .4s}
}
/* the page end: the index keeps its place under the header and scrolls its own list (privacy.js sets the height) */
/* the page end: the index rides up with the page (plain sticky) and fades out on a line held under the header; js/privacy.js
   sets --cut (how far the end of the grid has pushed it up), so the fade band always sits between the header and the index top */
@media (min-width:1024px){.legal-index.is-cut{-webkit-mask-image:linear-gradient(180deg,transparent calc(var(--cut) - 26px),#000 calc(var(--cut) + 6px));mask-image:linear-gradient(180deg,transparent calc(var(--cut) - 26px),#000 calc(var(--cut) + 6px))}}
@media (min-width:1024px) and (pointer:coarse){.legal-index__link{min-height:44px}}
.still .legal-index__mark,.still .legal-index__fill,.still .legal-index *{transition:none!important}
.still .legal__arr{transition:none}

/* ---------- the end: the wordmark rises (cta scene) ---------- */
.legal-end{padding:0 var(--gut);max-width:calc(var(--max) + 2 * var(--gut));margin:0 auto}
.legal-end .cta__mark{margin-top:0}
/* round 3: the wordmark sits on site.css's full-bleed ink base (the light settles behind it, never through it). The mark box
   clipped that base to its own rectangle (a hard seam across the strands), so here it clips only below, where the wordmark
   rises from (static clip-path, no per-frame cost); the base starts a little lower, clear of the policy panel */
.legal-end .cta__mark{overflow:visible;clip-path:inset(-40vh -100vw 0 -100vw)}
.legal-end .cta__mark::before{top:-10vh}

/* ---------- light fibres (js/fibers.js): the head band is the slot (data-fib-slot on .legal__media), so the strands
   run over the dimmed silk loop and under the headline; .legal__top isolates them, and the reading grid (positioned,
   later in main) paints over the layer as you scroll on ---------- */
.legal__top{isolation:isolate}
.legal__top>.fib{z-index:1}
/* the silk loop steps back so the strands lead; the coordinates keep an ink halo where the light crosses them */
.legal__vid .vid{opacity:.62}
.legal__coord{text-shadow:0 0 14px var(--ink-0),0 0 5px var(--ink-0),0 0 2px var(--ink-0)}
/* .ui is a flex column on tablets/phones for the home product card; the reading panel stays a plain block */
.eng .legal-pane.ui{display:block}
/* Motion off / no JS / no WebGL: the same composed still of the light sits on the head band (screen-blended over the
   silk poster), so the head reads the same without the live layer; it never animates */
.legal__media::after{content:none}
html:not(.eng) .legal__media::after,.fib-no .legal__media::after{content:"";position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;opacity:.6;
  background:url(../assets/fibers-still.webp) 100% 40%/cover no-repeat;-webkit-mask-image:linear-gradient(#000 55%,transparent 96%);mask-image:linear-gradient(#000 55%,transparent 96%)}
@media (max-width:767px) and (orientation:portrait){html:not(.eng) .legal__media::after,.fib-no .legal__media::after{background-image:url(../assets/fibers-still-m.webp);background-position:50% 0}}
/* while the live layer runs, its brightest bend crosses the coordinates' spot, so the datum runs on to the edge instead */
@media (min-width:1024px){.eng:not(.fib-no) .legal__coord{display:none}}
/* (static only) the head band's foot fades out, so the page's own still frame continues under it without a seam */
html:not(.eng) .legal__media{-webkit-mask-image:linear-gradient(#000 82%,transparent);mask-image:linear-gradient(#000 82%,transparent)}
