/* ───────────────────────────────────────────────────────────────────────────
   douce scroll — public site (landing + legal)
   Tokens mirror tailwind.config.js. This site is plain static HTML, so the
   tokens are restated here as CSS custom properties rather than imported.
   Keep the hex values in sync with tailwind.config.js if they ever change.

   Fonts are SELF-HOSTED on purpose. Loading them from fonts.gstatic.com would
   transmit every visitor's IP address to Google before they have consented —
   the exact practice LG München I, 3 O 17493/20 (20 Jan 2022) held unlawful.
   ─────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/assets/fonts/HankenGrotesk_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/assets/fonts/HankenGrotesk_500Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/assets/fonts/HankenGrotesk_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Young Serif';
  src: url('/assets/fonts/YoungSerif_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f4f1ea;
  --surface: #fcfbf8;
  --sunken: #eeeae0;
  --line: #e5e0d5;
  --line-strong: #d7d1c4;
  --ink: #2a2824;
  --ink-soft: #6a655b;
  --ink-faint: #9c978b;
  --on: #fbfaf6;

  --clay: #c06a4e;
  --clay-tint: #f6e7e0;
  --clay-deep: #8c4231;
  --sage: #6e8e55;
  --sage-tint: #e8eedd;
  --sage-deep: #46622f;
  --pine: #3f857a;
  --pine-tint: #ddece8;
  --pine-deep: #2c5f56;
  --ochre-tint: #f5ead2;
  --ochre-deep: #7e5f1f;

  --radius-control: 8px;
  --radius-inset: 12px;
  --radius-card: 16px;
  --radius-pill: 9999px;

  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #181715;
    --surface: #201e1b;
    --sunken: #2b2824;
    --line: #34302b;
    --line-strong: #433e37;
    --ink: #ece8e0;
    --ink-soft: #aba59a;
    --ink-faint: #766f66;
    --on: #181715;

    --clay: #d98668;
    --clay-tint: #413129;
    --clay-deep: #d98668;
    --sage: #93b179;
    --sage-tint: #35382c;
    --sage-deep: #93b179;
    --pine: #5fa99b;
    --pine-tint: #2b3732;
    --pine-deep: #5fa99b;
    --ochre-tint: #413823;
    --ochre-deep: #d7ae4a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout ───────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 22px;
}

.wrap--prose {
  max-width: var(--measure);
}

/* ─── Skip link (WCAG 2.4.1) ───────────────────────────────────────────── */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--on);
  padding: 10px 16px;
  border-radius: var(--radius-control);
  z-index: 100;
}
.skip:focus {
  left: 16px;
  top: 16px;
}

/* ─── Header ───────────────────────────────────────────────────────────── */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-nav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 700;
}

/* ─── Typography ───────────────────────────────────────────────────────── */

h1,
h2,
h3 {
  line-height: 1.22;
  letter-spacing: -0.4px;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(30px, 5.2vw, 42px);
  font-weight: 700;
}

h2 {
  font-size: clamp(21px, 3vw, 25px);
  font-weight: 700;
  margin-top: 44px;
  scroll-margin-top: 24px;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 28px;
}

.display {
  font-family: 'Young Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.5px;
}

p,
ul,
ol,
dl {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 7px;
}

li::marker {
  color: var(--ink-faint);
}

a {
  color: var(--clay-deep);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--clay);
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
  border-radius: 3px;
}

strong {
  font-weight: 700;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--sunken);
  padding: 1px 5px;
  border-radius: 5px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* ─── Legal document furniture ─────────────────────────────────────────── */

.doc-head {
  padding: 52px 0 8px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 10px;
}

.doc-meta {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 4px;
}

.lede {
  font-size: 19px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

main {
  padding-bottom: 72px;
}

/* Table of contents */

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin: 32px 0 8px;
}

.toc h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 10px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}

.toc li {
  margin-bottom: 5px;
  break-inside: avoid;
}

.toc a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
}

.toc a:hover {
  color: var(--clay-deep);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .toc ol {
    columns: 1;
  }
}

/* Callout box — used for "in plain words" summaries and key notices */

.note {
  background: var(--sunken);
  border-radius: var(--radius-inset);
  padding: 16px 20px;
  margin: 0 0 20px;
  font-size: 16px;
}

.note p:last-child {
  margin-bottom: 0;
}

.note--clay {
  background: var(--clay-tint);
}
.note--sage {
  background: var(--sage-tint);
}
.note--pine {
  background: var(--pine-tint);
}
.note--ochre {
  background: var(--ochre-tint);
}

.note__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

/* Definition-style contact block (imprint) */

.facts {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 4px 24px;
  margin: 0 0 24px;
}

.facts dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(140px, 30%) 1fr;
  gap: 0;
}

.facts dt {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.facts dd {
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.facts dt:first-of-type,
.facts dt:first-of-type + dd {
  border-top: 0;
}

@media (max-width: 560px) {
  .facts dl {
    grid-template-columns: 1fr;
  }
  .facts dt {
    padding-bottom: 0;
  }
  .facts dd {
    border-top: 0;
    padding-top: 2px;
  }
}

/* Tables (sub-processors, retention) */

.table-scroll {
  overflow-x: auto;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 15px;
}

th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--sunken);
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* ─── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-control);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.btn:active {
  opacity: 0.8;
}

.btn--primary {
  background: var(--clay);
  color: var(--on);
}

.btn--primary:hover {
  background: var(--clay-deep);
  color: var(--on);
}

@media (prefers-color-scheme: dark) {
  .btn--primary:hover {
    background: var(--clay);
    opacity: 0.88;
  }
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: var(--sunken);
  color: var(--ink);
}

/* ─── Landing ──────────────────────────────────────────────────────────── */

.hero {
  padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px);
}

.hero h1 {
  max-width: 15ch;
  margin-bottom: 20px;
}

.hero__lede {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero__note {
  font-size: 14px;
  color: var(--ink-faint);
  margin-top: 18px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--clay-deep);
  background: var(--clay-tint);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 18px;
  margin: 32px 0 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.tag--clay {
  background: var(--clay-tint);
  color: var(--clay-deep);
}
.tag--sage {
  background: var(--sage-tint);
  color: var(--sage-deep);
}
.tag--pine {
  background: var(--pine-tint);
  color: var(--pine-deep);
}
.tag--ochre {
  background: var(--ochre-tint);
  color: var(--ochre-deep);
}

.section {
  padding: clamp(40px, 6vw, 64px) 0;
  border-top: 1px solid var(--line);
}

.section__lede {
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 0;
}

/* ─── Footer ───────────────────────────────────────────────────────────── */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 56px;
  font-size: 14px;
  color: var(--ink-faint);
}

.site-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 18px;
}

.site-foot a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-foot__legal {
  margin: 0;
  max-width: 62ch;
}

.lang-switch {
  font-size: 14px;
}

.lang-switch a {
  color: var(--ink-soft);
}
