/*
 *                                      _╔ΦK╓
 *                                   _╔Φ╬╬╣╣╬╣K,
 *                                 ╓Æ╬╬╣╙ ╓,`╚╬╬╣φ,
 *                                ╬╬╣╙`▄▓████▄,'╚╬╬▒
 *                                ╙`╓▓██████████▄,'%
 *     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▓████████████████▓▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
 *     ███▀▀▀▓███▌▀▀▓█▀▀▀▀▀▀▀▀▀██▀▀▀▀▀▀▀▀▀█▓▀▀▀████▀▀▀██▀▀▀▀▀▀▀▀█▀▀▀▀▀▀▀▀▀▀▓██▓
 *     ███   ╫███▌  ╟█   ▄▄▄▄  ╙█   ▄▄▄▄  └█▌   ▓▌  _▓█  ╓▄▄▄▄▄▄█▌▄▄▄  ┌▄▄▄▓██▓
 *     ███   ╫███▌  ╫█   ███▓  '█   ████   ███▄    ▄███_  └╙╙╙▀▓████▓  ▐██████▓
 *     ███   ╟███▌  ╫█   ____,▄▓█        ▄▓████   ╫██████▓▓▄▄▄  ║███▓  ▐██████▓
 *     ███▌         ▓█   ████████   ██▓   ▀████▌  ╫████        _▓███▓  ▐██████▓
 *     ██████▓▓▓▓▓████▓▓▓████████▓▓▓████▓▓▓█████▓▓█████▓▓▓▓▓▓▓███████▓▓██████▀╙
 *     └└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└└`
 */
/* ============================================================================
   UPRYST — Paper scouting design system · legal & help pages
   Contact, FAQ, Safeguarding, Privacy, Terms, Cookies.
   ============================================================================ */

:root {
  --bg: #f4efe4;
  --surface: rgba(255, 248, 232, 0.86);
  --surface-raised: #fff8e8;
  --accent: #df2334;
  --accent-ink: #fff8e8;
  --accent-tint: rgba(223, 35, 52, 0.08);
  --accent-line: rgba(223, 35, 52, 0.30);
  --text: #10110f;
  --muted: #6c6c62;
  --subtle: #8f8a7f;
  --border: rgba(16, 17, 15, 0.14);
  --border-strong: rgba(16, 17, 15, 0.28);
  --display: 'Cabinet Grotesk', system-ui, sans-serif;
  --body: 'Satoshi', system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background:
    linear-gradient(90deg, rgba(16, 17, 15, 0.045) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, rgba(16, 17, 15, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 1000;
  transform: translateY(-160%);
  background: var(--accent); color: var(--accent-ink);
  border-radius: 6px; padding: 10px 14px; font-weight: 700;
  transition: transform 0.15s ease;
}
.skip-link:focus { transform: translateY(0); text-decoration: none; }
img { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; pointer-events: none; }
a img, button img { pointer-events: auto; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ------------------------------------------------------------------ nav -- */
.legal-nav {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky; top: 0;
  background: rgba(244, 239, 228, 0.92);
  z-index: 10;
}
@supports (backdrop-filter: blur(1px)) {
  .legal-nav { background: rgba(244, 239, 228, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.legal-nav-inner {
  max-width: 880px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.legal-nav-inner img { width: 104px; }
.legal-nav-inner a.back {
  color: var(--muted); font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
}
.legal-nav-inner a.back:hover { color: var(--text); text-decoration: none; }
.legal-nav-inner a.back svg { width: 14px; height: 14px; }

/* ----------------------------------------------------------------- body -- */
main.legal {
  max-width: 740px;
  margin: 0 auto;
  padding: 72px 24px 120px;
}
.legal-hero {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.legal-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.legal-hero .eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--accent); }
.legal-hero h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(38px, 5vw, 60px);
  letter-spacing: 0; line-height: 1.02;
  margin-bottom: 14px;
  text-wrap: balance;
}
.legal-hero p { color: var(--muted); font-size: 16.5px; max-width: 560px; }

.draft-banner {
  border: 1px solid var(--accent-line);
  background: var(--accent-tint);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 44px;
  display: flex; gap: 12px; align-items: flex-start;
}
.draft-banner svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.draft-banner strong { color: var(--text); font-weight: 700; }

.legal h2 {
  font-family: var(--display);
  font-size: 25px; font-weight: 800;
  letter-spacing: 0;
  margin: 44px 0 14px;
  color: var(--text);
  scroll-margin-top: 90px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 {
  font-family: var(--body);
  font-size: 16px; font-weight: 700;
  margin: 24px 0 8px;
  color: var(--text);
}
.legal p { color: var(--muted); margin-bottom: 14px; }
.legal ul, .legal ol { color: var(--muted); padding-left: 22px; margin-bottom: 14px; }
.legal ul li, .legal ol li { margin-bottom: 8px; }
.legal strong { color: var(--text); font-weight: 700; }

/* ------------------------------------------------------------------ toc -- */
.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 48px;
}
.legal-toc-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.legal-toc-title::before { content: ''; width: 3px; height: 13px; background: var(--accent); border-radius: 1px; }
.legal-toc ol {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px;
  counter-reset: toc;
}
.legal-toc ol li { counter-increment: toc; font-size: 14px; }
.legal-toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--accent); font-weight: 700;
  margin-right: 12px; font-variant-numeric: tabular-nums;
}
.legal-toc a { color: var(--muted); }
.legal-toc a:hover { color: var(--text); text-decoration: none; }

/* --------------------------------------------------------------- footer -- */
.legal-footer {
  margin-top: 72px; padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  color: var(--subtle); font-size: 13px;
}
.legal-footer a { color: var(--muted); }
.legal-footer a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .legal-toc ol { grid-template-columns: 1fr; }
  main.legal { padding: 44px 20px 80px; }
  .legal-hero { margin-bottom: 40px; padding-bottom: 32px; }
}

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