/* The one stylesheet of the four hand-written legal pages (public/legal-notice.html, terms.html,
 * refund-policy.html, privacy.html). They sit outside the Vite pipeline, so they cannot use
 * Tailwind or the @theme block: the :root block below mirrors the @theme tokens it needs, with
 * the same names and values as src/styles/index.css (tests/legal-pages.test.mjs checks that).
 * Written phone first; the desktop rules are the one (min-width: 901px) block at the end. */
@font-face {
  font-family: 'Public Sans';
  src: url('/fonts/public-sans.woff2') format('woff2');
  font-display: swap;
}
:root {
  --color-bg: #ffffff;
  --color-fg: #0d1117;
  --color-muted: #6b7685;
  --color-muted-light: #9ba5b2;
  --color-primary: #2557D6;
  --color-border: rgba(0,0,0,0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: 'Public Sans', system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* Long words, addresses and emails wrap instead of pushing a 320px phone sideways. */
main, footer nav { overflow-wrap: anywhere; }
main { max-width: 44rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
h1 { font-size: 1.9rem; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.05rem; margin: 2.25rem 0 0.5rem; letter-spacing: -0.005em; }
h3 { font-size: 0.95rem; margin: 1.75rem 0 0.5rem; letter-spacing: -0.005em; }
p, li { color: var(--color-muted); font-size: 0.95rem; }
strong { color: var(--color-fg); }
ul { padding-left: 1.1rem; }
li { margin: 0.3rem 0; }
a { color: var(--color-primary); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  color: var(--color-fg);
}
.updated { font-size: 0.8rem; color: var(--color-muted-light); margin-bottom: 2.5rem; }
.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.callout {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
}
footer nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
footer nav a[aria-current="page"] { color: var(--color-fg); font-weight: 600; text-decoration: none; }

@media (min-width: 901px) {
  main { padding: 4rem 1.5rem 3rem; }
  footer { padding: 1.5rem 1.5rem 4rem; }
}
