/* ══════════════════════════════════════════════════════════════════════
   Shared styles for the legal pages (legal-warning.html, privacy-policy.html).
   The landing page keeps its own inline CSS: it is a single screen where an
   extra blocking request is not worth it. Tokens and @font-face are repeated
   here so these pages stand alone.
   ══════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin.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: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --color-bg: #161826;
  --color-text: #e9e9ed;
  --color-neutral-100: #f3f5fe;
  --color-neutral-200: #e4e7f5;
  --color-neutral-300: #cfd3e5;
  --color-neutral-400: #b2b6ca;
  --color-accent: #9184d9;
  --color-accent-200: #e7e5fe;
  --color-divider: color-mix(in srgb, #e9e9ed 16%, transparent);

  --brand-ring: #f2f2f5;
  --brand-pupil: #ff2a22;

  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Figtree", var(--font-body);

  --measure: 68ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-neutral-200);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-text-size-adjust: 100%;
}

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

a:hover {
  text-decoration: underline;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background: color-mix(in srgb, var(--color-accent) 30%, transparent);
}

/* ── Shell ──────────────────────────────────────────────────────────── */
.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(32px, 6vh, 64px) clamp(22px, 6vw, 32px) clamp(48px, 9vh, 96px);
}

/* Skip link — the document is long and the masthead repeats on both pages. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 14px;
  background: var(--color-accent);
  color: #12121c;
  border-radius: 0 0 6px 0;
  font-size: 13px;
}

.skip:focus {
  left: 0;
  z-index: 10;
  text-decoration: none;
}

/* ── Masthead ───────────────────────────────────────────────────────── */
.masthead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: clamp(24px, 4vh, 36px);
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: clamp(28px, 5vh, 44px);
}

.masthead:hover {
  text-decoration: none;
}

.masthead-mark {
  display: block;
  width: 34px;
  height: 34px;
  flex: none;
}

.masthead-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--color-text);
}

.masthead-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--color-neutral-400);
  display: block;
  margin-top: 3px;
}

/* ── Type ───────────────────────────────────────────────────────────── */
h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--color-text);
  margin: 0 0 10px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 2.4vw, 20px);
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--color-text);
  margin: clamp(32px, 5vh, 44px) 0 10px;
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  color: var(--color-text);
  margin: clamp(22px, 3vh, 28px) 0 8px;
}

.updated {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-neutral-400);
  margin: 0 0 clamp(8px, 2vh, 16px);
}

.lede {
  color: var(--color-neutral-300);
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

li {
  margin-bottom: 7px;
}

li::marker {
  color: var(--color-neutral-400);
}

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

/* ── Identity block ─────────────────────────────────────────────────
   A two-column grid so long values (registry line, postal address) wrap
   inside their own column instead of dropping below the label and
   breaking the alignment of the short rows. */
.identity {
  display: grid;
  grid-template-columns: minmax(auto, 13em) 1fr;
  gap: 10px 20px;
  margin: 0 0 14px;
  padding: 18px 20px;
  border: 1px solid var(--color-divider);
  border-radius: 10px;
  background: color-mix(in srgb, #ffffff 3%, transparent);
}

.identity dt {
  color: var(--color-neutral-400);
  font-size: 13px;
  letter-spacing: 0.03em;
  line-height: 1.5;
  padding-top: 1px;
}

.identity dd {
  margin: 0;
  color: var(--color-text);
  line-height: 1.5;
}

@media (max-width: 540px) {
  .identity {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .identity dd {
    margin-bottom: 12px;
  }

  .identity dd:last-child {
    margin-bottom: 0;
  }
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.page-footer {
  margin-top: clamp(40px, 7vh, 72px);
  padding-top: clamp(20px, 3vh, 28px);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-neutral-400);
}

.page-footer a {
  color: var(--color-neutral-300);
}

.page-footer a:hover {
  color: var(--color-text);
}

.page-footer .spacer {
  margin-left: auto;
}
