/* The hn2u pages' shared sheet: the landing page, privacy and support. It is hup's sheet
   (hup/hup.css), copied rather than linked so that a change to hup's pages cannot change
   these: a light gray ground, large radii, short bold phrases, and the app's own colors.
   hn2u wears hup's Expanse theme (CeefaxHN's Chrome.swift): the navy ground and the mint
   accent, deepened for text. The landing page adds home.css. */

:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --card-2: #fafafc;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --hair: rgba(0, 0, 0, 0.08);
  /* Expanse's accent (5CD3C0) */
  --mint: #5cd3c0;
  --mint-rgb: 92, 211, 192;
  /* the same hue, deep enough for text on the light ground (5.2:1) */
  --accent: #0b7466;
  --accent-soft: #e1f5f0;
  /* the icon's mark (0B0D10): the name in the lede is written in it */
  --mark: #0b0d10;
  --green: #1f9d68;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --r: 28px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; text-wrap: balance; }
.lede, .privacy-hero p { text-wrap: balance; }
p { margin: 0; }
code, kbd { font-family: var(--mono); font-size: 0.86em; }
code { background: #ececf0; border-radius: 6px; padding: 0.1em 0.38em; color: var(--ink-2); }
kbd {
  display: inline-block;
  min-width: 1.75em;
  padding: 0.06em 0.42em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  text-align: center;
  line-height: 1.45;
}

/* Symbols for <use>. Hidden without display: none, which would stop their gradients. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.wrap--wide { width: min(1200px, 100% - 32px); }

/* The one bar at the top: the company's lockup, which links to the landing page, and
   hn2u's pages, kept in view */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 52px; }
.top__brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: 0.02em; }
/* the company's lockup (assets/logo.svg) in its own colors: the mark in Greater Expanse's red,
   which its owner asked for on 2026-11-27, and the name in near black. hup's bar has it in one ink. */
.top__brand .lockup { display: block; height: 22px; aspect-ratio: 228.42 / 26.7;
  background: url(/assets/logo.svg) left center / auto 100% no-repeat; }
.top__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.top__nav a { color: var(--ink-2); text-decoration: none; font-size: 13px; padding: 5px 11px; border-radius: 999px; }
.top__nav a:hover { color: var(--ink); }
.top__nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.top__nav .top__get { padding: 4px 13px; background: var(--ink); color: #fff; font-weight: 500; }
.top__nav .top__get:hover { background: #000; color: #fff; }

/* A narrow phone: the lockup's mark alone (it is at the left of assets/logo.svg) */
@media (max-width: 400px) {
  .top__brand .lockup { width: 17px; aspect-ratio: auto; }
}

/* Footer */

.foot { border-top: 1px solid var(--hair); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 22px 0 30px; font-size: 12.5px; color: var(--muted); }
.foot__brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 13px; }
.foot__brand .mark { width: 18px; height: 18px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.foot__links a { color: var(--ink-2); text-decoration: none; }
.foot__links a:hover, .foot__links a[aria-current="page"] { color: var(--ink); }
.foot__note { flex-basis: 100%; }

/* Privacy and support: a title, and one white card of plain sections */

.privacy-hero { padding: 64px 0 36px; text-align: center; }
.privacy-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.06; letter-spacing: -0.033em; font-weight: 700; }
.privacy-hero p { max-width: 720px; margin: 16px auto 0; font-size: 18px; color: var(--ink-2); }
/* the way back to the hn2u page, above the title */
.privacy-hero .back { margin: 0 auto 14px; font-size: 15px; font-weight: 600; }
.back a { text-decoration: none; }
.back a:hover { text-decoration: underline; }

.policy { padding-bottom: 48px; }
.policy__card { max-width: 760px; margin: 0 auto; border-radius: 22px; background: var(--card); padding: 34px 40px 30px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.policy h2 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; margin: 30px 0 8px; scroll-margin-top: 68px; }
.policy h2:first-child { margin-top: 0; }
.policy p { margin: 0 0 12px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.policy b { color: var(--ink); font-weight: 600; }
.policy .policy__date { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .top__inner { height: 48px; gap: 12px; }
  .top__brand .lockup { height: 17px; }
  .top__nav { gap: 4px; }
  .top__nav a { padding: 5px 7px; font-size: 12.5px; }
  /* no room for a third link beside the lockup: the pages under /hn2u/ have a way back above their titles */
  .top__nav .top__home { display: none; }
}

@media (max-width: 640px) {
  .policy__card { padding: 24px 20px 20px; border-radius: 18px; }
}
