/*
 * Styles for the static pages under /privacy and /support.
 *
 * A separate file rather than the app's bundle, and deliberately not imported by it.
 * Vite fingerprints `dist/assets/*.css`, so a hand-written page linking that would break
 * on the next build; anything in `public/` keeps its name and can be linked forever.
 *
 * Those pages are plain HTML on purpose. They are legal and support text that Apple's
 * reviewer, crawlers and people with JavaScript off all need to be able to read, and none
 * of that should depend on a React bundle booting.
 *
 * Tokens are copied from the app's theme rather than shared. Two files agreeing by copy is
 * the right trade when the alternative is coupling static pages to a build step.
 */

:root {
  --ink: #08080b;
  --surface: #14141b;
  --line: #26262f;
  --text: #f4f4f6;
  --muted: #a3a3ae;
  --dim: #71717f;
  --brand: #2563eb;
  --accent: #f5a623;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 1.5rem 6rem;
  background: var(--ink);
  color: var(--text);
  font:
    16px/1.7 'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 44rem;
  margin: 0 auto;
}

header {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

/* The wordmark, with the brand rule under "Shelf" only — same mark as the site nav. */
.wordmark {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}
.wordmark .u {
  position: relative;
}
.wordmark .u::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.14em;
  height: 0.11em;
  border-radius: 999px;
  background: var(--brand);
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.75rem 0 0.5rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 2.75rem 0 0.75rem;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
}

p,
li {
  color: var(--muted);
}

strong {
  color: var(--text);
  font-weight: 600;
}

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

ul {
  padding-left: 1.25rem;
}
li {
  margin: 0.4rem 0;
}

.updated {
  color: var(--dim);
  font-size: 0.875rem;
  margin: 0;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
}

/* Pulled-out passage for the one claim on each page that matters most. */
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.callout p:first-child {
  margin-top: 0;
}
.callout p:last-child {
  margin-bottom: 0;
}

footer {
  max-width: 44rem;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
