/* Shared, self-contained styling for the static legal pages (privacy/terms).
   These live outside the Vite-built app (see public/privacy.html,
   public/terms.html) since the site has no client-side router — plain
   static HTML is the correct fit here, not a reason to pull in a routing
   library. Flat .html files rather than public/privacy/index.html: Vite's
   own dev and preview servers rewrite any extension-less path with no
   literal file match to the SPA's index.html (confirmed against both), so
   /privacy would never reach a directory's index.html locally even though
   plain static hosts generally resolve it; an explicit .html extension
   sidesteps that ambiguity everywhere, including on whatever the eventual
   production host turns out to be.

   Deliberately doesn't reference the app's hashed, build-time font/CSS
   assets (their filenames aren't known until build); uses the same
   fallback stacks src/styles/global.css defines for
   --font-display/--font-body instead, so the look stays close without a
   fragile cross-reference into dist output. */

:root {
  --charcoal: #1c1d1f;
  --off-white: #f6f4ef;
  --paper: #fbfaf7;
  --ink: #1c1d1f;
  --ink-soft: #55585c;
  --ink-on-dark-soft: #b7bac0;
  --line: rgba(10, 11, 12, 0.14);
  --line-on-dark: rgba(246, 244, 239, 0.18);
  --accent: #ff5a1f;
  --font-display: "Arial Narrow", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

.legal-header {
  background: var(--charcoal);
  color: var(--off-white);
}

.legal-header__row {
  max-width: 800px;
  margin-inline: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--off-white);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.legal-header__brand img {
  width: 32px;
  height: 32px;
}

.legal-header__back {
  color: var(--ink-on-dark-soft);
  text-decoration: none;
  font-size: 0.9rem;
}

.legal-header__back:hover,
.legal-header__back:focus-visible {
  color: var(--off-white);
}

main {
  max-width: 800px;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 3.5rem) 1.5rem 5rem;
}

.legal-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.05;
  margin: 0 0 0.5rem;
}

.legal-updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.legal-notice {
  background: rgba(255, 90, 31, 0.08);
  border: 1px solid rgba(255, 90, 31, 0.3);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 2.5rem;
}

.legal-notice strong {
  color: var(--accent);
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.4rem;
  margin: 2.25rem 0 0.75rem;
}

h2:first-of-type {
  margin-top: 0;
}

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

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.4rem;
}

.token {
  font-size: 0.9em;
  font-style: italic;
  color: var(--ink-soft);
  background: rgba(0, 0, 0, 0.05);
  padding: 0.05em 0.4em;
  border-radius: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.legal-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.legal-footer a {
  color: inherit;
  text-decoration: underline;
}
