/* Shared chrome for the legal pages (privacy, terms).
   Same tokens, fonts and card language as the landing page, just calmer.
   Privacy uses the full layout below — summary card, side index, one card per
   section. Terms is still a single .sheet and keeps working unchanged. */

:root{
  --cream:#FEFAEB; --peach:#FBE5C7; --card:#fff;
  --orange:#EE7D4D; --coral:#EC5D62; --green:#6F876A;
  --ink:#2D2D2D; --dark:#171717;
  --serif:"Fraunces",Georgia,"Times New Roman",serif;
}
*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:ui-rounded,"SF Pro Rounded",-apple-system,system-ui,sans-serif;
  background:var(--cream);
  color:var(--ink);line-height:1.62;-webkit-font-smoothing:antialiased;
  min-height:100vh;
}
::selection{background:rgba(238,125,77,.26);color:var(--dark)}
a:focus-visible,summary:focus-visible{outline:2px solid var(--orange);
  outline-offset:3px;border-radius:6px}

/* how far down the document you are — the only thing that moves on the page */
.progress{position:fixed;left:0;top:0;height:3px;width:100%;z-index:60;
  background:var(--orange);transform:scaleX(var(--sp,0));transform-origin:left;
  pointer-events:none}

/* top bar — the fridge is the way home, and it stays reachable */
.topbar{position:sticky;top:0;z-index:50;background:var(--cream);
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:13px clamp(18px,5vw,40px);
  border-bottom:1px solid rgba(45,45,45,.07)}
.brand{display:flex;align-items:center;gap:9px;font-weight:800;font-size:20px;
  color:var(--dark);text-decoration:none}
.brand img{width:32px;height:32px;object-fit:contain;display:block;
  transition:transform .3s cubic-bezier(.2,.8,.3,1.1)}
@media(hover:hover){ .brand:hover img{transform:rotate(-6deg)} }
.nav-link{font-weight:700;font-size:14px;color:rgba(45,45,45,.5);text-decoration:none}
.nav-link:hover{color:var(--orange)}

main{max-width:820px;margin:0 auto;padding:clamp(18px,4vw,34px) clamp(20px,5vw,28px) 72px}

.doc-head{margin-bottom:clamp(26px,5vw,38px)}
.eyebrow{font-size:11.5px;font-weight:700;letter-spacing:2.4px;text-transform:uppercase;
  color:var(--orange);margin-bottom:14px;display:flex;align-items:center;gap:10px}
.eyebrow::before{content:"";width:26px;height:2px;background:var(--orange)}
h1{font-family:var(--serif);font-weight:600;font-size:clamp(34px,6vw,52px);
  line-height:1.03;letter-spacing:-.5px;color:var(--dark)}
.effective{margin-top:12px;font-size:14px;font-weight:600;color:rgba(45,45,45,.5)}
.lead{font-size:clamp(16px,2vw,17.5px);line-height:1.6;color:rgba(45,45,45,.7);
  font-weight:500;max-width:62ch;margin:20px 0 clamp(24px,4vw,34px)}

/* ============ THE SHORT VERSION ============
   Four promises, before the policy that backs them up. Someone who reads only
   this should still leave knowing the true shape of what Frij collects. */
.tldr{background:var(--peach);border-radius:26px;
  padding:clamp(22px,3.4vw,32px);margin-bottom:clamp(28px,5vw,44px);
  border:1px solid rgba(238,125,77,.14)}
.tldr > h2{font-family:var(--serif);font-weight:600;font-size:clamp(22px,3vw,27px);
  color:var(--dark);margin:0 0 4px}
.tldr > p{font-size:15px;color:rgba(80,52,32,.72);font-weight:600;margin:0 0 18px}
.tldr-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.promise{background:#fff;border-radius:18px;padding:17px 18px;
  display:flex;gap:12px;align-items:flex-start}
.promise .ic{width:34px;height:34px;border-radius:11px;flex:none;
  background:rgba(238,125,77,.12);color:var(--orange);display:grid;place-items:center}
.promise .ic svg{width:18px;height:18px}
.promise b{display:block;font-size:15.5px;font-weight:800;color:var(--dark);
  line-height:1.3;margin-bottom:3px}
.promise span{font-size:14px;line-height:1.48;color:rgba(45,45,45,.66);font-weight:500}
@media(max-width:620px){ .tldr-grid{grid-template-columns:1fr} }

/* ============ LAYOUT: index beside the document ============ */
.wrap{max-width:1080px;margin:0 auto;padding:clamp(18px,4vw,34px) clamp(20px,5vw,28px) 80px}
.cols{display:grid;grid-template-columns:224px minmax(0,1fr);
  gap:clamp(24px,4vw,54px);align-items:start}

.toc{position:sticky;top:84px}
.toc-t{font-size:11px;font-weight:800;letter-spacing:2px;text-transform:uppercase;
  color:rgba(45,45,45,.38);padding:0 12px;margin-bottom:10px}
.toc a{display:block;padding:7px 12px;border-radius:11px;text-decoration:none;
  font-size:13.5px;font-weight:700;line-height:1.32;color:rgba(45,45,45,.52);
  border-left:2px solid transparent;transition:color .18s,background .18s}
.toc a:hover{color:var(--orange);background:rgba(238,125,77,.07)}
.toc a.here{color:var(--dark);background:#fff;border-left-color:var(--orange);
  box-shadow:0 4px 14px rgba(120,70,40,.07)}

/* the collapsed version, for phones */
.toc-m{display:none;background:#fff;border-radius:16px;margin-bottom:22px;
  border:1px solid rgba(45,45,45,.08);box-shadow:0 4px 14px rgba(120,70,40,.06)}
.toc-m summary{cursor:pointer;list-style:none;padding:15px 18px;
  font-weight:800;font-size:15px;color:var(--dark);
  display:flex;justify-content:space-between;align-items:center}
.toc-m summary::-webkit-details-marker{display:none}
.toc-m summary::after{content:"+";color:var(--orange);font-weight:800;font-size:24px;line-height:1}
.toc-m[open] summary::after{content:"–"}
.toc-m nav{padding:0 10px 12px}
.toc-m nav a{display:block;padding:8px 10px;border-radius:10px;text-decoration:none;
  font-size:14.5px;font-weight:700;color:rgba(45,45,45,.6)}

/* ============ ONE CARD PER SECTION ============ */
.sec{background:var(--card);border-radius:24px;
  padding:clamp(22px,3.2vw,32px);margin-bottom:clamp(14px,2vw,20px);
  border:1px solid rgba(238,125,77,.09);
  box-shadow:0 14px 34px -16px rgba(120,70,40,.16);
  scroll-margin-top:96px}
.sec-h{display:flex;align-items:center;gap:13px;margin-bottom:10px}
.sec-h h2{font-family:var(--serif);font-weight:600;font-size:clamp(20px,2.7vw,25px);
  line-height:1.16;color:var(--dark);margin:0}
.ic{width:40px;height:40px;border-radius:13px;flex:none;
  background:rgba(238,125,77,.1);color:var(--orange);display:grid;place-items:center}
.ic svg{width:21px;height:21px}
.sec > p:first-of-type{margin-top:4px}

/* One clause on the terms page matters more than the rest — the food and
   allergen one — so it gets the only coloured card on the page. */
.sec.warn{background:#FEF3F1;border-color:rgba(236,93,98,.2);
  box-shadow:0 14px 34px -16px rgba(200,70,60,.22)}
.sec.warn .ic{background:rgba(236,93,98,.13);color:var(--coral)}
.sec.warn strong{color:#8E2F33}

/* the closing card carries the one thing people came to do: get in touch */
.sec.contact{background:var(--dark);border-color:transparent;color:#fff}
.sec.contact .ic{background:rgba(255,255,255,.12);color:#FFC59A}
.sec.contact .sec-h h2{color:#fff}
.sec.contact p{color:rgba(255,255,255,.72)}
.sec.contact a{color:#FFC59A}
.sec.contact a:hover{color:#fff}

p{margin:12px 0;font-size:16px;color:rgba(45,45,45,.86)}
ul{margin:14px 0 4px;padding:0;list-style:none}
li{margin:11px 0;font-size:16px;color:rgba(45,45,45,.86);
  padding-left:26px;position:relative}
/* a small warm dot instead of a browser bullet */
li::before{content:"";position:absolute;left:6px;top:.62em;
  width:7px;height:7px;border-radius:50%;background:var(--orange);opacity:.55}
strong{color:var(--ink);font-weight:800}
.sec.contact strong{color:#fff}
a{color:var(--orange);font-weight:700}
a:hover{color:var(--coral)}
code{background:#F6EFE3;padding:2px 6px;border-radius:5px;font-size:.92em}

@media(max-width:860px){
  .cols{grid-template-columns:1fr}
  .toc{display:none}
  .toc-m{display:block}
}

/* ============ TERMS still renders as one sheet ============ */
.sheet{background:var(--card);border-radius:26px;padding:clamp(24px,4.5vw,42px);
  box-shadow:0 24px 54px -18px rgba(120,70,40,.18);
  border:1px solid rgba(238,125,77,.08)}
.sheet > p:first-child{margin-top:0}
.sheet h2{font-family:var(--serif);font-weight:600;font-size:clamp(21px,3vw,26px);
  line-height:1.2;color:var(--dark);margin:34px 0 10px;scroll-margin-top:20px}
.sheet > h2:first-of-type{margin-top:4px}
.sheet ul{padding-left:0}
.sheet h2::before{content:"";display:block;height:1px;background:rgba(45,45,45,.08);
  margin-bottom:24px}
.sheet > h2:first-of-type::before{display:none}

/* the footer lines up with whatever the page above it is: the wide
   two-column privacy layout, or the narrower single sheet on terms */
footer{max-width:820px;margin:0 auto;padding:26px clamp(20px,5vw,28px) 56px;
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;
  font-size:14px;font-weight:600;color:rgba(45,45,45,.5);
  border-top:1px solid rgba(45,45,45,.1)}
footer a{color:rgba(45,45,45,.5);text-decoration:none;margin-left:18px;font-weight:600}
footer a:hover{color:var(--orange)}
body:has(.wrap) footer{max-width:1080px}

@media(prefers-reduced-motion:reduce){
  .brand img,.toc a{transition:none}
  html{scroll-behavior:auto}
}
