/* Static legal pages. Design tokens mirror src/styles.css so /policy and
   /terms read as part of the same site without loading the React bundle. */

@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-latin-wght-normal.woff2) format("woff2-variations");
}

@font-face {
  font-family: "Space Grotesk Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(/fonts/space-grotesk-latin-wght-normal.woff2) format("woff2-variations");
}

:root {
  color-scheme: light dark;
  font-family: "Manrope Variable", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #eef0ec;
  --surface: #f8f9f5;
  --ink: #101516;
  --muted: #596363;
  --line: rgb(16 21 22 / 14%);
  --line-strong: rgb(16 21 22 / 28%);
  --accent: #0f756e;
  --radius: 18px;
  --page: min(1400px, calc(100% - 64px));
  --measure: min(100%, 72ch);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e0f;
    --surface: #121718;
    --ink: #edf1ec;
    --muted: #a2aeaa;
    --line: rgb(237 241 236 / 12%);
    --line-strong: rgb(237 241 236 / 25%);
    --accent: #38c8bb;
  }

  .brand img {
    filter: invert(1);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

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

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 76%, transparent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(16px);
}

.site-nav__inner {
  width: var(--page);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand__mark {
  width: auto;
  height: 34px;
}

.brand__wordmark {
  width: auto;
  height: 15px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.back-link:hover {
  color: var(--ink);
}

.legal {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 9vw, 128px);
}

.legal__header {
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line-strong);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal h1 {
  max-width: 16ch;
  margin: 0;
  font-family: "Space Grotesk Variable", sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 660;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.legal__meta {
  max-width: var(--measure);
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.legal__body {
  max-width: var(--measure);
  margin-top: clamp(40px, 5vw, 64px);
}

.legal__body > section + section {
  margin-top: clamp(36px, 4vw, 52px);
}

.legal__body h2 {
  margin: 0 0 14px;
  font-family: "Space Grotesk Variable", sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 660;
  letter-spacing: -0.04em;
  line-height: 1.14;
}

.legal__body p,
.legal__body li {
  color: var(--muted);
  line-height: 1.78;
}

.legal__body p {
  margin: 0 0 16px;
}

.legal__body p:last-child,
.legal__body ul:last-child {
  margin-bottom: 0;
}

.legal__body ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal__body li {
  margin-bottom: 8px;
}

.legal__body li::marker {
  color: var(--accent);
}

.legal__note {
  margin-top: clamp(44px, 5vw, 64px);
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.legal__note p {
  margin: 0;
}

.site-footer {
  width: var(--page);
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 24px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 1080px) {
  :root {
    --page: min(100% - 40px, 960px);
  }
}

@media (max-width: 767px) {
  :root {
    --page: calc(100% - 32px);
    --radius: 16px;
  }

  .site-nav {
    height: 64px;
  }

  .brand {
    gap: 8px;
  }

  .brand__mark {
    height: 28px;
  }

  .brand__wordmark {
    height: 12px;
  }

  .legal h1 {
    font-size: clamp(2.35rem, 11vw, 3.6rem);
  }

  .site-footer {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .back-link span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-nav {
    background: var(--bg);
    backdrop-filter: none;
  }
}
