/* Legal pages. These deliberately do NOT load oasis.css — they are plain
   documents on a neutral palette, not app chrome — so anything shared has to
   be restated here against this file's own tokens. That includes the two
   @font-face blocks: the browser dedupes the actual download by URL, so
   declaring them twice costs a few lines of CSS and zero extra bytes over the
   wire. Keep them in step with oasis.css. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0a0a0a; --card: #141414; --border: #262626;
  --text: #ededed; --muted: #8a8a8a; --accent: #ffffff;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Same seven-step type scale as oasis.css, restated here for the same
     reason the @font-face blocks are: these pages do not load that file.
     Keep the two in step. The palette above is deliberately NOT shared -
     legal pages are neutral documents, not app chrome - but the scale is,
     because inconsistent type reads as sloppiness even across a palette
     boundary. Below --text-lg, hierarchy comes from weight and colour,
     never from a size a couple of hundredths of a rem away from its
     neighbour. */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.9rem, 1.4rem + 1.6vw, 2.4rem);
}
:root[data-theme="light"] {
  --bg: #f5f5f4; --card: #ffffff; --border: #d6d6d4;
  --text: #141414; --muted: #6f6f6f; --accent: #0a0a0a;
}
* { margin: 0; box-sizing: border-box; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* 66ch, not 720px: legal text is long-form prose and the measure is what
   makes it readable, so it is set in characters of the actual body font. */
.wrap { max-width: 66ch; margin: 0 auto; padding: 40px 20px 80px; }
a { color: var(--text); }
.back { color: var(--muted); text-decoration: none; font-size: var(--text-sm); }
.back:hover { color: var(--text); }
h1 {
  margin: 28px 0 6px; font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.15;
}
.updated { color: var(--muted); font-size: var(--text-sm); margin-bottom: 28px; }
h2 {
  margin: 36px 0 8px; font-family: var(--font-display);
  font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.01em;
}
p, li { color: var(--muted); font-size: var(--text-base); text-wrap: pretty; }
p + p { margin-top: .8rem; }
ul { padding-left: 22px; margin: 8px 0; }
strong { color: var(--text); }

/* Site footer. The legal pages deliberately do NOT load oasis.css — they are
   plain documents on a neutral palette, not app chrome — so the footer rules
   are restated here against this file's own tokens rather than importing the
   app stylesheet and inheriting two competing palettes. Keep the two copies in
   step: the markup is identical on every page. */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 20px 2rem;
  color: var(--muted); font-size: var(--text-sm);
}
.foot-inner {
  max-width: 720px; margin: 0 auto;
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.foot-brand p { margin-top: .5rem; max-width: 28ch; }
.foot-brand .wordmark {
  color: var(--text); font-family: var(--font-display);
  font-weight: 700; letter-spacing: -.03em; text-decoration: none;
}
.foot-col h3 {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text); margin: 0 0 .6rem;
}
.foot-col a { display: block; padding: .2rem 0; color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--text); }
.foot-base {
  max-width: 720px; margin: 2rem auto 0; padding-top: 1.25rem;
  border-top: 1px solid var(--border); font-size: var(--text-xs);
}
/* These pages have no buttons of their own, so the toggle brings its own. */
.theme-toggle {
  display: block; width: fit-content; margin: 1.5rem auto 0;
  font: inherit; font-size: var(--text-sm); font-weight: 600; cursor: pointer;
  padding: .3rem .6rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
}
.theme-toggle:hover { border-color: var(--text); }
