/* Spectra: Legal. A calm long-read. Reads css/site.css for tokens, fonts, header, focus ring; css/footer.css for the footer.
   The words are static HTML written by tools/build_legal.py, so the page reads the same with no JS. JS only adds the
   contents highlight, the phone jump label and the progress hairline. One device: the thin spectrum line. */

html{scroll-behavior:smooth}
#main{padding-top:calc(var(--head) + var(--sat) + 8px)}

/* ---------- reading progress: a spectrum hairline along the very top ---------- */
.lg-progress{position:fixed;left:0;right:0;top:0;height:2px;z-index:70;pointer-events:none}
.lg-progress i{display:block;height:100%;background:var(--spectrum);transform:scaleX(0);transform-origin:left}

/* ---------- hero ---------- */
.lg-hero{max-width:1200px;margin:0 auto;padding:clamp(28px,6vh,72px) calc(var(--gut) + var(--sar)) clamp(36px,7vh,80px) calc(var(--gut) + var(--sal))}
.lg-h1{margin:0;color:var(--ink);font-family:var(--serif);font-stretch:118%;font-weight:800;
  font-size:clamp(38px,7vw,96px);line-height:1.04;letter-spacing:-.012em;max-width:14ch}
.lg-intro{margin:clamp(20px,3.5vh,32px) 0 0;max-width:52ch;color:var(--soft);font-size:clamp(17px,1.5vw,19px);line-height:1.55}
.lg-a{color:var(--ink);text-decoration:underline;text-decoration-color:rgba(252,252,252,.4);text-underline-offset:3px}
@media (hover:hover){.lg-a:hover{text-decoration-color:currentColor}}

/* ---------- layout: contents rail + the text ---------- */
.lg-layout{max-width:1200px;margin:0 auto;padding:0 calc(var(--gut) + var(--sar)) clamp(56px,9vh,104px) calc(var(--gut) + var(--sal));
  display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.lg-toc{display:none}
.lg-docs{min-width:0}

/* ---------- a policy ---------- */
.lg-doc{max-width:68ch;scroll-margin-top:calc(var(--head) + var(--sat) + 72px);padding:clamp(40px,7vh,72px) 0}
.lg-doc:first-child{padding-top:clamp(24px,4vh,40px);border-top:0}
.lg-doc + .lg-doc{border-top:1px solid var(--line)}
.lg-h2{margin:0;color:var(--ink);font-family:var(--serif);font-stretch:118%;font-weight:800;
  font-size:clamp(26px,3vw,38px);line-height:1.12;letter-spacing:-.005em;overflow-wrap:anywhere}
.lg-meta{margin:14px 0 clamp(24px,4vh,36px);color:var(--dim);font-size:15px;line-height:1.4;letter-spacing:.01em}
.lg-doc p,.lg-doc li{font-family:var(--sans);font-size:clamp(18px,1.5vw,20px);line-height:1.68;color:var(--soft);overflow-wrap:anywhere}
.lg-doc p{margin:0 0 1.15em}
.lg-h3{margin:clamp(32px,5vh,44px) 0 12px;color:var(--ink);font-family:var(--sans);font-weight:600;font-size:clamp(20px,1.7vw,23px);line-height:1.3;overflow-wrap:anywhere}
.lg-list{margin:0 0 1.3em;padding:0;list-style:none}
.lg-list li{position:relative;padding-left:1.4em;margin:0 0 .6em}
.lg-list li::before{content:"";position:absolute;left:0;top:.82em;width:.7em;height:1px;background:var(--dim)}
.lg-doc > :last-child{margin-bottom:0}

/* ---------- phone: a compact jump menu, sticky under the header ---------- */
.lg-jump{position:sticky;top:calc(var(--head) + var(--sat) - 8px);z-index:20;margin:0 calc(-1 * (var(--gut) + var(--sar))) 0 calc(-1 * (var(--gut) + var(--sal)));
  background:rgba(0,0,0,.92);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.lg-jump summary{list-style:none;display:flex;align-items:center;gap:12px;min-height:48px;padding:0 calc(var(--gut) + var(--sar)) 0 calc(var(--gut) + var(--sal));cursor:pointer}
.lg-jump summary::-webkit-details-marker{display:none}
.lg-jump-k{flex:none;font-family:var(--mono);font-stretch:62%;font-weight:700;font-size:13px;letter-spacing:.07em;text-transform:uppercase;color:var(--dim)}
.lg-jump-now{flex:1 1 auto;min-width:0;color:var(--ink);font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-jump summary::after{content:"";flex:none;width:8px;height:8px;border:solid var(--soft);border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg);transition:transform .2s var(--ease)}
.lg-jump[open] summary::after{transform:translateY(2px) rotate(-135deg)}
.lg-jump ul{list-style:none;margin:0;padding:0 calc(var(--gut) + var(--sar)) 8px calc(var(--gut) + var(--sal));border-top:1px solid var(--line);max-height:calc(100svh - var(--head) - 120px);overflow:auto}
.lg-jump li{border-bottom:1px solid var(--line)}
.lg-jump li:last-child{border-bottom:0}
.lg-jump a{display:flex;align-items:center;min-height:48px;color:var(--soft);text-decoration:none;font-size:17px;overflow-wrap:anywhere}
.lg-jump a[aria-current="true"]{color:var(--ink)}

/* ---------- desktop: a sticky contents rail that follows the reading ---------- */
@media (min-width:900px){
  .lg-layout{grid-template-columns:260px minmax(0,1fr);column-gap:clamp(48px,7vw,112px)}
  .lg-jump{display:none}
  .lg-toc{display:block;position:sticky;top:calc(var(--head) + var(--sat) + 32px);align-self:start}
  .lg-toc ul{list-style:none;margin:0;padding:0;border-left:1px solid var(--line)}
  .lg-toc a{position:relative;display:flex;align-items:center;min-height:44px;padding:6px 0 6px 18px;color:var(--dim);text-decoration:none;font-size:16px;line-height:1.3;transition:color .2s}
  .lg-toc a:focus-visible{color:var(--ink)}@media (hover:hover){.lg-toc a:hover{color:var(--ink)}}
  .lg-toc a::before{content:"";position:absolute;left:-1px;top:0;bottom:0;width:2px;background:var(--spectrum);transform:scaleY(0);transform-origin:top;transition:transform .3s var(--ease)}
  .lg-toc a[aria-current="true"]{color:var(--ink)}
  .lg-toc a[aria-current="true"]::before{transform:scaleY(1)}
  .lg-doc{scroll-margin-top:calc(var(--head) + var(--sat) + 16px)}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .lg-toc a,.lg-toc a::before,.lg-jump summary::after{transition:none}
}

/* current-page nav link in the footer, matching career.css so this file works standalone too */
.sfoot .sf-nav a[aria-current="page"]{color:var(--ink);text-decoration:underline;text-decoration-color:rgba(252,252,252,.4);text-underline-offset:3px}
