/* Shared styles for Cutform's inner pages (legal, data deletion).
   Same tokens, nav and footer as the landing page (b-in-hand.html), so they read as one site.
   When the site moves to Astro, the nav and footer become shared components and this file becomes their styles. */
@font-face{font-family:"New Kansas";src:url("../fonts/new-kansas-regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"New Kansas";src:url("../fonts/new-kansas-bold.otf") format("opentype");font-weight:700;font-style:normal;font-display:swap}
:root{
  --paper:#FEFEFC; --ink:#172523; --ink2:#3B4845; --mute:#51605B; --mute2:#6E7974;
  --line:color-mix(in oklab,var(--ink) 11%,var(--paper));
  --accent:#E9712B; --deep:#B44C12; --peach:#FBDCC8; --onacc:#FFF9F4; --sheet:#1B2422;
  --serif:"New Kansas",Georgia,serif; --sans:"Hanken Grotesk",system-ui,sans-serif;
  --out:cubic-bezier(.22,1,.36,1);
  --gutter:clamp(16px,4vw,56px);
}
*{box-sizing:border-box;margin:0;font-synthesis:none}
html{-webkit-font-smoothing:antialiased;scroll-padding-top:96px}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{background:var(--paper);color:var(--ink);font:400 17px/1.55 var(--sans);overflow-x:hidden;min-height:100vh;display:flex;flex-direction:column}
img{display:block;max-width:100%}
a{color:inherit}
.wrap{position:relative;z-index:1;width:100%;max-width:1280px;margin:0 auto;padding:0 var(--gutter)}
.paper-texture{position:fixed;inset:0;z-index:25;pointer-events:none;mix-blend-mode:multiply;background:url("../art/paper.webp") center/cover no-repeat;opacity:.35}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* nav: flat on the page, floats as a white bar once you scroll (same as the landing page) */
.top{position:sticky;top:0;z-index:20;padding-top:14px}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 -18px;padding:10px 10px 10px 18px;border-radius:22px;
  transition:background-color .4s var(--out),box-shadow .4s var(--out)}
.top.stuck .nav{background:#FFFFFE;box-shadow:0 0 0 1px color-mix(in oklab,var(--ink) 7%,var(--paper)),0 18px 34px -22px rgba(23,37,35,.38)}
.brand{display:block;flex:none;line-height:0}
.brand img{height:30px;width:auto}
.links{display:flex;gap:30px;align-items:center;font:500 15px/1 var(--sans);color:var(--mute)}
.links a{text-decoration:none;transition:color .2s}
.links a:hover{color:var(--ink)}
.links .pill{position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;height:46px;aspect-ratio:3.6;font-size:14px;font-weight:800;white-space:nowrap;
  color:var(--onacc);text-shadow:0 1px 0 rgba(150,60,10,.3);filter:drop-shadow(0 3px 5px rgba(180,76,18,.18));transition:transform .3s var(--out)}
.links .pill::before{content:"";position:absolute;inset:-1px;z-index:-1;background:url("../art/buttons/pillow.png") center/100% 100% no-repeat}
.links .pill:hover{color:var(--onacc);transform:translateY(-1px)}
.links a:focus-visible,.brand:focus-visible{outline:3px solid color-mix(in oklab,var(--accent) 45%,transparent);outline-offset:3px;border-radius:8px}
@media (max-width:760px){
  .links a:not(.pill){display:none}
  .top{padding-top:10px}
  .nav{margin:0 -8px;padding:8px 8px 8px 12px;border-radius:18px}
  .brand img{height:24px}
  .links .pill{height:42px;font-size:13px}
}

/* ============ Legal pages ============ */
.lg{flex:1;padding:clamp(48px,7vw,104px) 0 clamp(96px,10vw,150px)}
.lg-head{max-width:920px}
.lg-crumb{display:inline-flex;align-items:center;gap:8px;font:600 14px/1 var(--sans);color:var(--mute2);text-decoration:none;transition:color .2s}
.lg-crumb:hover{color:var(--ink)}
.lg-crumb svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lg h1{margin-top:18px;font:700 clamp(40px,5.4vw,76px)/1.02 var(--serif);letter-spacing:-.024em;text-wrap:balance}
.lg-meta{margin-top:16px;font:500 15px/1.5 var(--sans);color:var(--mute2)}
.lg-lede{margin-top:18px;max-width:58ch;font-size:clamp(17px,1.4vw,19px);line-height:1.6;color:var(--mute)}

/* the set of documents, as folder tabs along the top of the page; the open one is filled */
.lg-tabs{display:flex;gap:6px;margin-top:clamp(32px,4vw,48px);padding-bottom:2px;overflow-x:auto;scrollbar-width:none;
  border-bottom:1px solid var(--line);margin-inline:calc(var(--gutter) * -1);padding-inline:var(--gutter)}
.lg-tabs::-webkit-scrollbar{display:none}
.lg-tabs a{flex:none;position:relative;top:1px;padding:11px 16px 12px;border-radius:12px 12px 0 0;font:600 14.5px/1 var(--sans);color:var(--mute2);text-decoration:none;white-space:nowrap;
  border:1px solid transparent;border-bottom:0;transition:color .2s,background-color .2s}
.lg-tabs a:hover{color:var(--ink);background:color-mix(in oklab,var(--ink) 4%,transparent)}
.lg-tabs a[aria-current="page"]{color:var(--ink);background:var(--paper);border-color:var(--line)}
.lg-tabs a[aria-current="page"]::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:var(--paper)}
.lg-tabs a:focus-visible{outline:3px solid color-mix(in oklab,var(--accent) 45%,transparent);outline-offset:-3px}

/* the document: contents on the left, clauses on the right with their numbers hung in the margin */
.lg-grid{display:grid;grid-template-columns:minmax(200px,250px) minmax(0,1fr);gap:clamp(40px,6vw,96px);margin-top:clamp(40px,5vw,64px);align-items:start}
.lg-toc{position:sticky;top:104px;max-height:calc(100vh - 128px);overflow:auto;scrollbar-width:thin}
.lg-toc summary{display:none}
.lg-toc h2{font:600 13.5px/1 var(--sans);color:var(--mute2);margin-bottom:14px}
.lg-toc ol{list-style:none;padding:0;display:grid;gap:2px}
.lg-toc a{display:grid;grid-template-columns:22px minmax(0,1fr);gap:6px;padding:7px 10px 7px 8px;margin-left:-8px;border-radius:10px;
  font:500 14.5px/1.35 var(--sans);color:var(--mute2);text-decoration:none;transition:color .2s,background-color .2s}
.lg-toc a i{font:700 13px/1.5 var(--serif);font-style:normal;color:#AEB4AE;font-variant-numeric:tabular-nums;transition:color .2s}
.lg-toc a:hover{color:var(--ink);background:color-mix(in oklab,var(--ink) 4%,transparent)}
.lg-toc a.on{color:var(--ink);background:color-mix(in oklab,var(--accent) 9%,transparent)}
.lg-toc a.on i{color:var(--accent)}
.lg-toc a:focus-visible{outline:3px solid color-mix(in oklab,var(--accent) 45%,transparent);outline-offset:0}

.lg-body{max-width:68ch;counter-reset:cl}
.lg-body section{position:relative;padding-top:clamp(28px,3vw,40px)}
.lg-body section+section{margin-top:clamp(28px,3vw,40px);border-top:1px solid var(--line)}
.lg-body h2{position:relative;font:700 clamp(23px,2vw,28px)/1.2 var(--serif);letter-spacing:-.012em;text-wrap:balance;margin-bottom:16px}
.lg-body h2 i{position:absolute;right:calc(100% + 22px);top:.12em;font:700 .8em/1.2 var(--serif);font-style:normal;color:var(--accent);font-variant-numeric:tabular-nums}
.lg-body p,.lg-body li{font-size:17px;line-height:1.72;color:var(--ink2);text-wrap:pretty}
.lg-body p+p,.lg-body p+ul,.lg-body p+ol,.lg-body ul+p,.lg-body ol+p{margin-top:14px}
.lg-body h3{margin:22px 0 8px;font:700 19px/1.3 var(--serif)}
.lg-body strong,.lg-body b{color:var(--ink);font-weight:600}
.lg-body a{color:var(--deep);text-decoration:underline;text-decoration-color:color-mix(in oklab,var(--accent) 45%,transparent);text-underline-offset:3px;text-decoration-thickness:1.5px;transition:text-decoration-color .2s}
.lg-body a:hover{text-decoration-color:var(--accent)}
.lg-body ul,.lg-body ol{padding-left:0;list-style:none;display:grid;gap:9px}
.lg-body ul li{position:relative;padding-left:22px}
.lg-body ul li::before{content:"";position:absolute;left:4px;top:.72em;width:6px;height:6px;border-radius:50%;background:var(--accent)}
.lg-body ol{counter-reset:li}
.lg-body ol li{position:relative;padding-left:34px;counter-increment:li}
.lg-body ol li::before{content:counter(li);position:absolute;left:0;top:.18em;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;
  background:var(--peach);color:var(--deep);font:700 13px/1 var(--serif)}

/* the legal index: one ruled list, each row the whole link */
.lg-list{list-style:none;padding:0;margin-top:clamp(40px,5vw,64px);max-width:920px;border-top:1px solid var(--line)}
.lg-list a{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 32px;align-items:baseline;padding:26px 14px;margin:0 -14px;border-bottom:1px solid var(--line);
  border-radius:4px;text-decoration:none;transition:background-color .25s var(--out)}
.lg-list strong{font:700 clamp(22px,2.1vw,28px)/1.2 var(--serif);letter-spacing:-.012em;color:var(--ink);transition:color .2s}
.lg-list span{grid-column:1;font-size:16px;line-height:1.55;color:var(--mute);max-width:62ch}
.lg-list time{grid-row:1;grid-column:2;font:500 14px/1.4 var(--sans);color:var(--mute2);white-space:nowrap}
.lg-list svg{grid-row:1/3;grid-column:3;align-self:center;width:20px;height:20px;fill:none;stroke:var(--mute2);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .3s var(--out),stroke .2s}
.lg-list a{grid-template-columns:minmax(0,1fr) auto 20px}
.lg-list a:hover{background:color-mix(in oklab,var(--accent) 6%,transparent)}
.lg-list a:hover strong{color:var(--deep)}
.lg-list a:hover svg{transform:translateX(3px);stroke:var(--accent)}
.lg-list a:focus-visible{outline:3px solid color-mix(in oklab,var(--accent) 45%,transparent);outline-offset:-3px}

@media (max-width:900px){
  .lg-grid{grid-template-columns:minmax(0,1fr);gap:8px}
  .lg-toc{position:static;max-height:none;overflow:visible;border:1px solid var(--line);border-radius:16px;background:#FFFFFE}
  .lg-toc summary{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;font:600 15px/1 var(--sans);cursor:pointer;list-style:none}
  .lg-toc summary::-webkit-details-marker{display:none}
  .lg-toc summary svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .3s var(--out)}
  .lg-toc[open] summary svg{transform:rotate(180deg)}
  .lg-toc h2{display:none}
  .lg-toc ol{padding:0 10px 12px 18px}
  .lg-body h2 i{position:static;margin-right:10px}
}
@media (max-width:640px){
  .lg-list a{grid-template-columns:minmax(0,1fr) 20px;padding:22px 8px;margin:0 -8px}
  .lg-list time{grid-row:auto;grid-column:1}
  .lg-list svg{grid-row:1/4;grid-column:2}
  .lg-body p,.lg-body li{font-size:16.5px}
}

/* ============ footer: the dark sheet from the landing page's last section, tilted the same way ============ */
.ft{--tilt:clamp(22px,3vw,44px);position:relative;isolation:isolate;margin-top:auto;padding:calc(var(--tilt) + clamp(56px,6vw,88px)) 0 36px;color:#F6F1E8}
.ft::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--sheet);clip-path:polygon(0 0,100% var(--tilt),100% 100%,0 100%)}
.ft-top{display:grid;grid-template-columns:minmax(0,1.2fr) repeat(2,minmax(0,1fr));gap:40px clamp(32px,5vw,80px);align-items:start}
.ft .brand img{height:28px}
.ft-top p{margin-top:16px;max-width:30ch;font-size:15.5px;line-height:1.55;color:rgba(246,241,232,.62)}
.ft h2{font:600 13.5px/1 var(--sans);color:rgba(246,241,232,.5);margin-bottom:16px}
.ft ul{list-style:none;padding:0;display:grid;gap:11px}
.ft ul a{font-size:15.5px;color:rgba(246,241,232,.82);text-decoration:none;transition:color .2s}
.ft ul a:hover{color:#FFFDF8}
.ft a:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:2px}
.ft-legal{display:flex;flex-wrap:wrap;gap:8px 28px;justify-content:space-between;margin-top:clamp(56px,6vw,80px);padding-top:24px;border-top:1px solid rgba(246,241,232,.12);
  font-size:13.5px;line-height:1.6;color:rgba(246,241,232,.5)}
.ft-legal p:first-child{max-width:72ch}
@media (max-width:760px){
  .ft-top{grid-template-columns:1fr 1fr}
  .ft-top>div:first-child{grid-column:1/-1}
}
