/* ==========================================================================
   LEGAL PAGES — privacy.html, cookies.html, terms.html
   ==========================================================================
   Loaded AFTER css/site.css and ONLY by those three pages.

   WHY THIS IS A FILE AND NOT THREE <style> BLOCKS. Every other page on this
   site scopes its rules into its own <head>, because each is a one-off and
   site.css is shared by all of them. These three are the opposite case:
   they are the SAME layout three times over, and a scoped block would mean
   three copies of one stylesheet drifting apart — exactly the problem the
   handoff records for the testimonial slider (now in four pages) and the
   Deep Green header (five).

   It is a NEW file rather than an addition to site.css, so the eight
   existing pages are untouched and cannot be affected by anything here.
   Nothing in site.css or js/site.js was changed.

   The legal TEXT is the client's and is reproduced word for word. Nothing
   below changes a sentence; it only sets it.
   ========================================================================== */

/* ---------- 1. Page shell ---------- */
.section-rule{border-bottom:0}
@media(min-width:1001px){ .container{width:min(1320px,calc(100% - 80px))} }

/* ---------- 3. The ivory field and its dot texture ----------
   Same values as work-with-us.html §3, contact.html and keynote.html, so
   every ivory surface on the site carries the identical texture.

   NOT a V1.0 device — the guideline names the logo pattern (merch only,
   p.37) and the switcher pattern (the website device, p.38) and a dot grid
   is neither. One deletable rule, held low enough to read as paper. */
.lg{position:relative;overflow:hidden;background:var(--paper)}
/* The dot field was removed on 7 Nov. Designer: it is not in the
   guideline — V1.0 names only the logo pattern (merch, p.36) and the
   switcher pattern (p.38). These sections are plain Soft Ivory now. */

.lg>*{position:relative;z-index:1}

/* ---------- 4. (was the draft bar — removed 2 November) ----------
   The three pages carried a black bar at the top counting the unfilled
   blanks. It was taken off at the user's request: the pages should read as
   the documents they are, not as a to-do list.

   THE WORK DID NOT DISAPPEAR WITH IT. Every outstanding field is listed,
   with its section and surrounding sentence, in BACKLOG.md at the repo
   root. The inline <mark class="ph"> highlights stay — see section 11. */

/* ---------- 5. The hero ---------- */
.lg-hero{padding:clamp(48px,5.5vw,84px) 0 clamp(34px,4vw,56px)}
.lg-hero .eyebrow{font-size:17px;letter-spacing:.06em}

/* The page title, on work-with-us.html's .ws-title scale — these are page
   names, so they sit above the section scale rather than among it. Typed in
   literal uppercase in the markup so js/site.js §3a's /([OD])/ wraps the
   wide O and D by itself. */
.lg-hero h1{
  margin:14px 0 18px;max-width:none;
  font-size:clamp(40px,6.4vw,96px);line-height:.92;
  letter-spacing:.02em;color:var(--ink);
}
.lg-meta{
  margin:0 0 22px;font-size:14px;color:var(--muted);
  font-family:var(--display);letter-spacing:.06em;text-transform:uppercase;
}
/* The lead paragraph is a step up from body copy, because it is the only
   part of these pages most people will read. */
.lg-intro{
  margin:0;max-width:62ch;
  font-size:clamp(17px,1.4vw,20px);line-height:1.6;color:var(--ink);
}
.lg-intro em{font-style:normal;font-weight:700}

/* ---------- 6. The two-column body ----------
   Contents rail left, text right. The rail is STICKY on desktop: these run
   to thirty-odd sections and scrolling back to the top to re-orient is the
   single worst thing about reading a legal page. */
.lg-body{
  display:grid;grid-template-columns:260px minmax(0,1fr);
  gap:clamp(34px,5vw,80px);
  align-items:start;
  padding-bottom:clamp(60px,7vw,104px);
}

.lg-toc{
  position:sticky;
  /* --header-h clears the sticky site header; the 28px is breathing room. */
  top:calc(var(--header-h) + 28px);
  max-height:calc(100vh - var(--header-h) - 56px);
  overflow-y:auto;
  /* The rail scrolls independently on the long Terms page. A hairline on
     the right edge separates it from the text without drawing a box. */
  border-right:1px solid var(--rule);
  padding-right:22px;
}
.lg-toc-label{
  margin:0 0 14px;
  font:13px/1 var(--display);letter-spacing:.18em;
  text-transform:uppercase;color:var(--ink);
}
.lg-toc ol{list-style:none;margin:0;padding:0;counter-reset:none}
.lg-toc li{margin:0 0 2px}
.lg-toc a{
  display:block;padding:6px 0;
  font-size:13.5px;line-height:1.38;
  color:var(--muted);text-decoration:none;
  border-left:2px solid transparent;padding-left:10px;
  transition:color .15s,border-color .15s;
}
.lg-toc a:hover,.lg-toc a:focus-visible{color:var(--ink);border-left-color:var(--lime)}

/* ---------- 7. The text column ---------- */
.lg-text{max-width:72ch}

/* scroll-margin-top is what makes the contents links usable: without it a
   jumped-to heading lands UNDER the sticky header and reads as a broken
   anchor. The value is the header plus air. */
.lg-text section{scroll-margin-top:calc(var(--header-h) + 26px)}
.lg-text section + section{
  margin-top:clamp(34px,4vw,54px);
  padding-top:clamp(34px,4vw,54px);
  border-top:1px solid var(--rule);
}

/* Section headings keep site.css's display face but drop the blanket
   uppercase: these are sentences, not statements, and V1.0 p.26 puts
   longer sentences in standard letterforms. They also carry their own
   number from the client's copy, so no counter is added. */
.lg-text h2{
  margin:0 0 18px;max-width:none;
  font-size:clamp(24px,2.3vw,32px);line-height:1.12;
  letter-spacing:.01em;text-transform:none;color:var(--ink);
}
.lg-text h3{
  margin:30px 0 12px;max-width:none;
  font-family:var(--body);font-weight:700;text-transform:none;
  font-size:17px;line-height:1.35;letter-spacing:0;color:var(--ink);
}
.lg-text p{
  margin:0 0 15px;
  font-size:16px;line-height:1.68;color:var(--muted);
}
.lg-text p:last-child{margin-bottom:0}
.lg-text strong{color:var(--ink)}
.lg-text a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.lg-text a:hover{color:var(--lime-ink,var(--ink));text-decoration-thickness:2px}

.lg-text ul,.lg-text ol{margin:0 0 16px;padding-left:22px}
.lg-text li{
  margin-bottom:9px;
  font-size:16px;line-height:1.62;color:var(--muted);
}
.lg-text li::marker{color:var(--ink)}

/* ---------- 8. The contact block ----------
   A bordered card rather than a loose paragraph. It is the one piece of
   hard information on a privacy page — who is accountable — and it appears
   in all three documents. */
.lg-text .contact{
  margin:0 0 18px;padding:22px 24px;
  background:#fff;border:1px solid var(--rule);
  border-left:4px solid var(--lime);
  border-radius:var(--r-card);
  font-size:15.5px;line-height:1.8;color:var(--muted);
}
.lg-text .contact strong{
  display:inline-block;margin-bottom:4px;
  font-family:var(--display);font-size:19px;letter-spacing:.03em;
  color:var(--ink);
}

/* ---------- 9. The fact lists ----------
   The privacy policy states Data / Why / Legal basis / Kept for against
   every processing activity, as a <dl>. A two-column grid turns that from
   a wall of prose into something scannable — which is the whole point of
   stating it that way. */
.lg-text .facts{
  margin:0 0 20px;padding:18px 20px;
  background:rgba(20,51,24,.035);
  border-radius:var(--r-card);
  display:grid;grid-template-columns:132px minmax(0,1fr);
  gap:8px 18px;
}
.lg-text .facts dt{
  font:12px/1.5 var(--display);letter-spacing:.12em;
  text-transform:uppercase;color:var(--ink);
  padding-top:3px;
}
.lg-text .facts dd{
  margin:0;font-size:15.5px;line-height:1.6;color:var(--muted);
}

/* ---------- 10. Tables ----------
   The cookie policy is mostly tables. They are the one thing on these pages
   that will not fit a phone, so each is wrapped in a .scroll container that
   scrolls on its own rather than pushing the page sideways. */
.lg-text .scroll{
  margin:0 0 20px;overflow-x:auto;
  border:1px solid var(--rule);border-radius:var(--r-card);
  -webkit-overflow-scrolling:touch;
}
.lg-text table{
  width:100%;border-collapse:collapse;
  font-size:14.5px;min-width:520px;background:#fff;
}
.lg-text thead th{
  text-align:left;padding:13px 16px;
  background:var(--ink);color:var(--paper);
  font:12px/1.4 var(--display);letter-spacing:.1em;text-transform:uppercase;
  font-weight:400;
}
.lg-text tbody td,.lg-text tbody th{
  padding:12px 16px;vertical-align:top;
  border-top:1px solid var(--rule);
  line-height:1.55;color:var(--muted);text-align:left;font-weight:400;
}
.lg-text tbody tr:nth-child(even) td,
.lg-text tbody tr:nth-child(even) th{background:rgba(20,51,24,.025)}

/* ---------- 11. Placeholders ----------
   REVIEW FURNITURE. Every <mark class="ph"> is a blank the client has to
   fill — a KvK number, a cancellation percentage, a retention period. They
   are marked LOUDLY on purpose: a legal page that looks finished but still
   says [KvK number] is worse than one that obviously does not.

   Deep Green on Detox Green is the sanctioned pairing (V1.0 p.21), so this
   is on-palette while still being impossible to miss.

   WHEN A BLANK IS FILLED, replace the whole <mark> with the real value.
   When all of them are gone, drop the noindex tag on all three pages.
   The running list lives in BACKLOG.md. */
.lg-text mark.ph,
.lg-hero mark.ph,
.lg-foot mark.ph{
  background:var(--lime);color:var(--ink);
  padding:1px 7px;border-radius:4px;
  font-weight:700;font-size:.94em;
  box-decoration-break:clone;-webkit-box-decoration-break:clone;
}
/* .opt marks an optional clause rather than a missing fact. Quieter, so
   the two kinds of blank do not read as equally urgent. */
.lg-text .opt{
  display:block;margin:0 0 16px;padding:14px 18px;
  border:1px dashed var(--ink);border-radius:var(--r-card);
  font-size:15px;line-height:1.6;color:var(--muted);
}
.lg-text .opt-label{font-size:.9em}

/* ---------- 12. The document's own footer line ----------
   The company line that closed each supplied file. Kept, because it is
   where the KvK and VAT numbers live, and those belong at the foot of a
   legal document rather than only in section 1. */
.lg-foot{
  margin-top:clamp(40px,4.6vw,64px);
  padding-top:24px;border-top:2px solid var(--ink);
  font-size:14px;line-height:1.75;color:var(--muted);
}
.lg-foot p{margin:0 0 4px}
.lg-foot a{color:var(--ink)}

/* ---------- 13. Phone and tablet ----------
   The rail cannot be sticky on a phone — it would eat the screen — so it
   collapses into a <details> the reader opens on purpose. The markup uses
   <details> on every width and this rule simply unstyles it back into a
   plain rail on desktop; building it the other way round would need JS. */
@media(max-width:980px){
  /* minmax(0,1fr), NOT 1fr, and this was a real bug. A bare `1fr` track is
     `minmax(auto,1fr)`, so its minimum is the item's min-content width —
     and the contents rail refused to shrink below ~522px inside a 445px
     container, pushing the whole page sideways on a phone. Measured:
     grid-template-columns resolved to 522px. The desktop rule already used
     minmax(0,1fr) on the text column for exactly this reason; the mobile
     one did not. Keep the 0 minimum on both. */
  .lg-body{grid-template-columns:minmax(0,1fr);gap:30px}
  .lg-toc{
    position:static;max-height:none;overflow:visible;
    border-right:0;padding-right:0;
    border:1px solid var(--rule);border-radius:var(--r-card);
    padding:0;background:#fff;
  }
  .lg-toc summary{
    display:flex;align-items:center;justify-content:space-between;
    gap:12px;padding:15px 18px;cursor:pointer;list-style:none;
    font:13px/1 var(--display);letter-spacing:.14em;
    text-transform:uppercase;color:var(--ink);
  }
  .lg-toc summary::-webkit-details-marker{display:none}
  /* A rotating chevron drawn in CSS, so no icon asset is needed. */
  .lg-toc summary::after{
    content:"";width:9px;height:9px;flex:none;
    border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);
    transform:rotate(45deg) translate(-2px,-2px);
    transition:transform .18s;
  }
  .lg-toc[open] summary::after{transform:rotate(-135deg) translate(-2px,-2px)}
  .lg-toc ol{padding:0 18px 14px}
  .lg-toc a{padding:7px 0 7px 10px}
  .lg-text .facts{grid-template-columns:1fr;gap:3px 0;padding:16px 18px}
  .lg-text .facts dt{padding-top:10px}
  .lg-text .facts dt:first-of-type{padding-top:0}
}

/* On desktop the <details> is always open and its summary becomes the
   plain "Contents" label. `open` is set in the markup so the list is
   present for everyone, including anyone whose CSS never loads. */
@media(min-width:981px){
  .lg-toc summary{
    display:block;list-style:none;cursor:default;
    margin:0 0 14px;
    font:13px/1 var(--display);letter-spacing:.18em;
    text-transform:uppercase;color:var(--ink);
  }
  .lg-toc summary::-webkit-details-marker{display:none}
}

@media(max-width:520px){
  .lg-text .contact{padding:18px 18px}
  .lg-text h2{font-size:21px}
}

/* ---------- 14. Print ----------
   Legal pages get printed and filed. Drop everything that is furniture. */
@media print{
  .site-header,.site-footer,footer,.pb,.lg-toc,.skip-link,.preloader{display:none!important}
  .lg::before{display:none}
  .lg-body{display:block}
  .lg-text{max-width:none}
  .lg-text a{text-decoration:none;color:#000}
  .lg-text mark.ph{background:none;border:1px solid #000;color:#000}
}
