/* Roastclub legal pages. Direction 1 palette (Roastclub/DesignSystem/RCPalette.swift),
   tuned for long-form reading. Fonts are self-hosted (OFL, see fonts/), so loading
   the privacy policy makes no third-party request. */

@font-face { font-family: "Archivo Black"; src: url("fonts/ArchivoBlack-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0a0a0f;
  --surface: #15121e;
  --surface2: #1b1628;
  --text: #f6f4ff;
  --text-dim: #b7b1da;
  --border: #332a4d;
  --lime: #d4ff3d;
  --pink: #ff2e9a;
  --cyan: #20e6ff;
  --link: #20e6ff;
  --on-lime: #0a0a0f;
  --glow-pink: rgba(255, 46, 154, 0.22);
  --glow-cyan: rgba(32, 230, 255, 0.16);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f4ff;
    --surface: #ffffff;
    --surface2: #f1ecff;
    --text: #13101c;
    --text-dim: #5c5578;
    --border: #ded3ff;
    --link: #0a7e8c;
    --pink: #b3007a;
    --glow-pink: rgba(255, 46, 154, 0.12);
    --glow-cyan: rgba(32, 230, 255, 0.10);
    color-scheme: light;
  }
}

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

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

body {
  margin: 0;
  background:
    radial-gradient(60rem 30rem at 110% -10%, var(--glow-pink), transparent 60%),
    radial-gradient(50rem 26rem at -20% 0%, var(--glow-cyan), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 1.0625rem/1.65 "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: anywhere;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 1.5rem 1rem 4rem; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.logo { font-family: "Archivo Black", "Space Grotesk", sans-serif; font-size: 1.375rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--lime); }
@media (prefers-color-scheme: light) { .logo span { color: var(--pink); } }

.nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.nav a { color: var(--text-dim); text-decoration: none; padding: 0.375rem 0.75rem; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 0.9375rem; }
.nav a:hover, .nav a:focus-visible { color: var(--text); border-color: var(--border); }
.nav a[aria-current="page"] { background: var(--lime); color: var(--on-lime); }

h1 { font-family: "Archivo Black", "Space Grotesk", sans-serif; font-weight: 400; font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1.1; margin: 0 0 0.75rem; letter-spacing: -0.02em; }
h2 { font-family: "Archivo Black", "Space Grotesk", sans-serif; font-weight: 400; font-size: 1.375rem; line-height: 1.25; margin: 2.75rem 0 0.75rem; }
h3 { font-size: 1.0625rem; font-weight: 700; margin: 1.75rem 0 0.5rem; }

.meta { color: var(--text-dim); margin: 0 0 1.75rem; font-size: 0.9375rem; }

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--pink); }

a { color: var(--link); text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 3px; }

strong { font-weight: 700; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.875em; background: var(--surface2); padding: 0.1em 0.35em; border-radius: 4px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.25rem 1.25rem 0.5rem; margin: 1.25rem 0; }
.card.lime { border-left: 6px solid var(--lime); }
.card.pink { border-left: 6px solid var(--pink); }
.card h3:first-child, .card h2:first-child { margin-top: 0; }

.toc { columns: 2 14rem; padding-left: 1.25rem; }

.table-scroll { overflow-x: auto; margin: 0 0 1rem; border: 1px solid var(--border); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; min-width: 32rem; }
th, td { text-align: left; vertical-align: top; padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--border); }
th { background: var(--surface2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 2.5rem; min-height: 1.75rem; margin-bottom: 0.75rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.05rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--lime); color: var(--on-lime); font-weight: 700; font-size: 0.875rem; display: grid; place-items: center; }

.cta { display: inline-block; background: var(--lime); color: var(--on-lime); font-weight: 700; text-decoration: none; padding: 0.75rem 1.25rem; border-radius: 999px; margin: 0.25rem 0.5rem 0.75rem 0; }
.cta.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }

footer { margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.875rem; }
footer p { margin-bottom: 0.5rem; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
