/* legal.css — shared editorial reading layout for Cervo's
   Conditions & Politique de confidentialité pages.
   Hard-wired to the "Paper" theme tokens from tokens.jsx. */

:root {
  --c-bg:      #f1ece2;
  --c-surface: #f7f3ea;
  --c-surface2:#ebe5d7;
  --c-fg:      #2a241c;
  --c-fg2:     #6b6256;
  --c-fg3:     #9d9485;
  --c-line:    rgba(42, 36, 28, 0.10);
  --c-accent:  #b5532a;

  --font-display: "Instrument Serif", "EB Garamond", Georgia, serif;
  --font-body:    "Geist", -apple-system, system-ui, sans-serif;
  --font-mono:    "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--c-accent); color: #fff; }

a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Top bar ─────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px);
  background: color-mix(in oklch, var(--c-bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--c-line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.6px;
  color: var(--c-fg);
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 10px var(--c-accent);
  transform: translateY(-3px);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-fg2);
}
.back svg { width: 15px; height: 15px; }

/* ── Document ────────────────────────────────────────────── */
.doc {
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(48px, 9vw, 96px) clamp(20px, 5vw, 48px) 40px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 18px;
}

h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(42px, 8vw, 64px);
  line-height: 1.02;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
  text-wrap: balance;
}

.meta {
  font-size: 14px;
  color: var(--c-fg3);
  margin: 0 0 4px;
  padding-bottom: 30px;
  border-bottom: 0.5px solid var(--c-line);
}

.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 3.5vw, 24px);
  line-height: 1.4;
  color: var(--c-fg2);
  margin: 34px 0 12px;
  text-wrap: pretty;
}

section { margin-top: 40px; }

h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.2px;
  margin: 0 0 14px;
}
h2 .num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--c-accent);
  flex-shrink: 0;
}

p, li {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--c-fg);
  text-wrap: pretty;
}
p { margin: 0 0 14px; }

strong { font-weight: 600; }

ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
ul li {
  position: relative;
  padding-left: 20px;
}
ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-accent);
}
ul li strong { color: var(--c-fg); }

.callout {
  background: var(--c-surface);
  border: 0.5px solid var(--c-line);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 22px 0;
  box-shadow: 0 8px 24px rgba(60, 40, 20, 0.05);
}
.callout p:last-child { margin-bottom: 0; }
.callout .ct {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--c-fg3);
  margin-bottom: 8px;
}

/* ── Footer ──────────────────────────────────────────────── */
.docfoot {
  max-width: 660px;
  margin: 56px auto 0;
  padding: 30px clamp(20px, 5vw, 48px) 64px;
  border-top: 0.5px solid var(--c-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.docfoot .links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}
.docfoot .links a { color: var(--c-fg2); }
.docfoot .links a:hover { color: var(--c-accent); }
.docfoot .links a[aria-current="page"] { color: var(--c-fg); }
.docfoot .copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--c-fg3);
}
