/* ════════════════════════════════════════════════════════════════════
   Legal pages (privacy-policy.html, imprint.html).

   Shared stylesheet on purpose: two long-lived documents that must not
   drift from each other, and neither justifies a copy of the landing
   page's 900-line sheet. Tokens below are a VERBATIM subset of
   index.html's :root — if a brand colour changes there, change it here
   in the same commit or the legal pages become a second, older brand.

   This file is also the deploy trigger's canary: it is the nested landing
   asset a push touches to prove Cloudflare's Build watch paths reach below
   docs/landing/ and not just its top level (docs/runbooks/landing-deploy.md).
   ════════════════════════════════════════════════════════════════════ */

:root{
  --paper:      #F7F9FB;
  --surface:    #FFFFFF;
  --border:     #DFE5EC;

  --ink:        #0B1524;
  --ink-2:      #3A4757;
  --ink-3:      #5B6875;

  --brand-from: #0057FF;
  --brand-to:   #00C9A7;
  --teal:       #00C9A7;

  --accent:       #0B57E8;
  --accent-hover: #0A46BC;

  --panel-from: #071726;
  --panel-via:  #0A2E33;
  --panel-to:   #0B6E70;

  --r-md:  16px;
  --r-lg:  20px;
  --e2: 0 6px 20px rgba(11,21,36,.08);
  --focus-glow: 0 0 0 3px rgba(11,87,232,.20);

  /* 'Jakarta Fallback' is Arial with Jakarta's metrics forced onto it, so the
     `font-display: swap` handover reflows nothing — see the note in
     assets/fonts/plus-jakarta-sans.css, which is where the face is declared
     and which every page linking this file also links. */
  --body: 'Plus Jakarta Sans', 'Jakarta Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shell: 880px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

*,*::before,*::after{ box-sizing:border-box }
html{ -webkit-text-size-adjust:100%; background:var(--paper) }
body,h1,h2,h3,h4,p,ul,ol{ margin:0 }
ul,ol{ padding:0 }
svg{ display:block; max-width:100% }
a{ color:inherit }

body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  font-size:1rem;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  overflow-x:clip;
  /* Same reason as site.css: `overflow-x:clip` cuts off anything wider than
     the screen, so a word that cannot fit its line has to break instead. */
  overflow-wrap:break-word;
}
/* "Datenschutzerklärung" at the h1 size is wider than a 320px phone's card.
   Hyphenated at a syllable instead of broken at a letter; phones only, long
   words only (the limit and its reason are in site.css), and `-webkit-`
   because Safari still needs it for this property. */
@media (max-width:480px){
  html:lang(de), html:lang(nl){ -webkit-hyphens:auto; hyphens:auto; hyphenate-limit-chars:14 5 5;
    -webkit-hyphenate-limit-before:5; -webkit-hyphenate-limit-after:5 }
}

.wrap{ width:100%; max-width:var(--shell); margin-inline:auto; padding-inline:var(--gutter) }

/* Visible focus ring everywhere — these pages have nothing but links. */
a:focus-visible, button:focus-visible{
  outline:2px solid var(--accent); outline-offset:2px; border-radius:4px;
}

/* ── Top bar ────────────────────────────────────────────────────── */
.legal-top{
  background:linear-gradient(120deg,var(--panel-from) 0%,var(--panel-via) 60%,var(--panel-to) 140%);
  color:#fff;
  padding-block:1.125rem;
}
.legal-top .wrap{ display:flex; align-items:center; justify-content:space-between; gap:1rem }
.legal-brand{ display:inline-flex; align-items:center; gap:.625rem; text-decoration:none; color:#fff; font-weight:700; letter-spacing:-.01em }
.legal-brand svg{ width:32px; height:32px }
.legal-back{ color:rgba(255,255,255,.8); text-decoration:none; font-size:.875rem; font-weight:600 }
.legal-back:hover{ color:#fff }

/* ── Document ───────────────────────────────────────────────────── */
.legal-doc{ padding-block:clamp(2rem,5vw,3.5rem) }
.legal-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  box-shadow:var(--e2);
  padding:clamp(1.5rem,4vw,3rem);
}
.legal-card h1{ font-size:clamp(1.875rem,3vw,2.5rem); line-height:1.15; letter-spacing:-.02em; font-weight:700 }
.legal-updated{ margin-top:.5rem; color:var(--ink-3); font-size:.875rem }
.legal-card h2{ font-size:clamp(1.25rem,2vw,1.5rem); line-height:1.25; letter-spacing:-.015em; font-weight:700; margin-top:2.25rem }
.legal-card h3{ font-size:1.0625rem; line-height:1.35; font-weight:700; margin-top:1.75rem }
.legal-card p{ margin-top:1rem; color:var(--ink-2); max-width:72ch }
.legal-card ul{ margin-top:1rem; padding-left:1.25rem; list-style:disc; color:var(--ink-2) }
.legal-card li{ margin-top:.375rem }
/* `anywhere`, not the body's `break-word`: these documents quote full URLs and
   addresses (https://tools.google.com/dlpage/gaoptout, the privacy contact's
   e-mail) that are single unbreakable strings up to ~100px wider than the card
   on a phone. A URL has no syllables to hyphenate, so any character is a fair
   break point; the property changes nothing on a line that already fits. */
.legal-card a{ color:var(--accent); text-decoration:underline; text-underline-offset:2px; overflow-wrap:anywhere }
.legal-card a:hover{ color:var(--accent-hover) }
.legal-card strong{ color:var(--ink) }

/* ── Foot ───────────────────────────────────────────────────────── */
.legal-foot{
  background:linear-gradient(160deg,var(--panel-from) 0%,var(--panel-via) 55%,var(--panel-to) 130%);
  color:rgba(255,255,255,.6);
  padding-block:1.5rem;
  font-size:.75rem;
}
.legal-foot .wrap{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.5rem 1.25rem }
.legal-foot nav{ display:flex; flex-wrap:wrap; gap:.375rem 1.25rem }
.legal-foot a{ color:rgba(255,255,255,.72); text-decoration:none }
.legal-foot a:hover{ color:#fff; text-decoration:underline; text-underline-offset:2px }
/* The maker link sits INSIDE a sentence, so it carries a standing underline —
   without it the only thing marking it as a link is a colour shift the eye
   does not read at 12px on a dark panel. Matches index.html's .footer-maker a. */
.legal-foot__credit a{ font-weight:500; text-decoration:underline; text-underline-offset:2px }

@media (max-width:640px){
  /* 12px links are a legitimate legal-footer size but a poor touch target,
     so the tap area grows on touch layouts without the type growing. */
  .legal-foot a{ display:inline-block; padding-block:.5rem }
}

/* ── Language switcher ─────────────────────────────────────────────────────
   Duplicated from site.css on purpose: the legal pages load only this
   stylesheet, and the alternative — pulling the whole marketing shell onto a
   text page — costs far more than nine lines. No colour is set on `a` here:
   `.legal-foot a` above already answers in translucent white for every link
   on this dark panel, .lang-switch included, so restating it would be the
   second definition this file's own header warns against. */
.lang-switch { display:inline-flex; align-items:center; gap:.125rem; }
/* .legal-foot nav{gap:.375rem 1.25rem} above is (0,1,1) and beats the plain
   .lang-switch rule's (0,1,0), so EN/DE sat ~1.25rem apart instead of as a
   tight pair. One extra class restores the tight gap without touching the
   nav rule other .legal-foot__links navs still rely on. */
.legal-foot .lang-switch { gap:.125rem; }
.lang-switch a { padding:.25rem .4rem; font-size:.8125rem; font-weight:600; text-decoration:none; border-radius:.25rem; }
.lang-switch a[aria-current] { font-weight:700; text-decoration:underline; }

/* 404 in the landing's new look (2026-11-25): the hero's dark warehouse panel, the code as the
   one large element, four destinations as cards. Scoped to .nf, legal pages are untouched. */
.nf{padding:clamp(1rem,2vw,1.5rem) 0 clamp(3rem,6vw,5rem)}
.nf-panel{position:relative;overflow:hidden;border-radius:28px;padding:clamp(2rem,5vw,4rem);color:#fff;
  background-color:#06121E;background-image:linear-gradient(90deg,rgba(6,18,30,.97) 0%,rgba(6,18,30,.9) 45%,rgba(6,20,32,.55) 100%),url("/assets/hero-warehouse-order-desk-960.webp");background-size:cover;background-position:center right}
.nf-code{margin:0;font-size:clamp(4.5rem,12vw,8rem);font-weight:800;line-height:.9;letter-spacing:-.05em;font-style:italic;background:linear-gradient(100deg,#5B9BFF,#2EE6C4);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.nf-panel h1{margin:1rem 0 0;color:#fff;font-size:clamp(1.9rem,3.4vw,2.8rem);letter-spacing:-.03em;line-height:1.08}
.nf-lead{margin:1rem 0 0;max-width:56ch;color:rgba(255,255,255,.78);font-size:1.075rem;line-height:1.6}
.nf-links{list-style:none;margin:2rem 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}
.nf-links a{display:block;height:100%;box-sizing:border-box;padding:1rem 1.1rem;border-radius:16px;background:#fff;color:#0B1524;text-decoration:none;border:1.5px solid transparent;transition:border-color .2s,transform .15s}
.nf-links a:hover{border-color:#00C9A7}
.nf-links a:active{transform:translateY(1px)}
.nf-links a:focus-visible{outline:3px solid #6EA2FF;outline-offset:2px}
.nf-links b{display:block;font-size:1rem}
.nf-links span{display:block;margin-top:.25rem;font-size:.85rem;line-height:1.4;color:#5B6875}
.nf-note{margin:1.75rem 0 0;color:rgba(255,255,255,.7);font-size:.92rem}
.nf-note a{color:#9CC2FF}
@media (max-width:860px){.nf-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:420px){.nf-links{grid-template-columns:minmax(0,1fr)}}
