/* Storm Heads-Up privacy policy.

   Same design tokens and primitives as the main site
   (stormheadsup.github.io/assets/site.css), kept as a local copy rather than
   linked across repos so this page never breaks when that one changes.

   Outfit, self-hosted. SIL Open Font License 1.1, see fonts/OFL.txt.
   Variable font: one file covers every weight we use. Self-hosted rather
   than pulled from Google's CDN so reading a privacy policy does not hand a
   third party the reader's IP address. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/outfit-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: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/outfit-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 {
  --bg: #0a0f1f;
  --bg-2: #10182e;
  --surface: #151e36;
  --line: #26314f;
  --text: #eaf0fb;
  --muted: #98a6c4;
  --accent: #5b6ef5;
  --accent-soft: #8e9cff;
  --warn: #f0836f;
  --display: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  /* Narrower than the landing page's 1080px: this one is read, not scanned. */
  --wrap: 800px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}

a { color: var(--accent-soft); }
a:hover { color: #fff; }

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

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 7vw, 4.5rem) 0 clamp(1.75rem, 4vw, 2.5rem);
  background:
    radial-gradient(90ch 60ch at 50% -20%, #23306a 0%, rgba(35, 48, 106, 0) 62%),
    linear-gradient(180deg, #0d1428 0%, var(--bg) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.15rem;
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
}
.mark img {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: block;
}
.mark span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.mark:hover span { color: var(--text); }

h1 {
  font-size: clamp(2rem, 5.5vw, 3rem);
  text-wrap: balance;
}

.updated {
  margin: -0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- document ---------- */

/* Needs the .wrap in the selector: .wrap already sets a padding shorthand,
   which would otherwise win on specificity and zero these out. */
main.wrap {
  padding-top: clamp(2.25rem, 5vw, 3.25rem);
  padding-bottom: clamp(2.75rem, 6vw, 4rem);
}

main > h2 {
  font-size: clamp(1.22rem, 3vw, 1.55rem);
  margin: 2.4rem 0 0.75rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}

main p {
  margin: 0 0 1rem;
  color: var(--muted);
  text-wrap: pretty;
}
main p:last-child { margin-bottom: 0; }

main strong { color: var(--text); font-weight: 600; }
main em { color: var(--text); font-style: normal; font-weight: 500; }

.lede {
  color: var(--muted);
  font-size: clamp(1.02rem, 2.2vw, 1.14rem);
}

/* ---------- lists ---------- */

/* Same accent-dot bullets the landing page uses for its "Honest by design"
   list, so the long policy lists read as part of the same family. */
main ul {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}
main li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--muted);
}
main li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Items that open with a bolded term get it on its own line, the way the
   landing page's list does. Plain items stay inline. */
.terms li > strong:first-child {
  display: block;
  font-weight: 600;
}

/* ---------- disclaimer ---------- */

.notice {
  border: 1px solid #4a2b2b;
  background: #1d1420;
  border-left: 3px solid var(--warn);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  margin: 1.75rem 0 0.5rem;
}
.notice h2 {
  font-size: 1.15rem;
  color: var(--warn);
  margin-bottom: 0.5rem;
}
.notice p {
  margin: 0;
  color: #d7c8cc;
  font-size: 0.96rem;
}
.notice strong { color: #f3e7ea; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3.5rem;
  font-size: 0.94rem;
  color: var(--muted);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.foot-row .sep { color: var(--line); }
footer p { margin: 0; max-width: 70ch; }
footer .credit { margin-top: 0.8rem; font-size: 0.88rem; }

@media (max-width: 560px) {
  body { font-size: 16px; }
}
