/*
 * The store pages: support, privacy, terms, delete-account.
 *
 * ONE stylesheet for all four. They used to carry a copy of their own styling
 * each — four <style> blocks that had to be kept in step by hand and were not:
 * every one of them still had the pre-redesign ground (#0a0a0a), the muted grey
 * that fails contrast (#7a7a72), and a background glow the rest of the site had
 * already dropped. A visitor who followed a store link left the redesigned site
 * and arrived somewhere three months older.
 *
 * These are plain static files served straight from /public — no build step, no
 * Tailwind — so this is hand-written CSS whose values are copied from the token
 * block in app/globals.css. If a token moves there, move it here too. That
 * duplication is the price of these URLs not depending on the Next build: they
 * are referenced by the Apple and Google store listings and must keep resolving
 * even if the app fails to compile.
 *
 * The language is the one the rest of the site uses: hairline rules instead of
 * cards, mono uppercase for metadata, one accent, and nothing that glows.
 */

:root {
  --bg: #090a0c;
  --ink: #f8f7f2;
  --muted: #84847c;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  /* The hi tone, not the base accent. On a near-black ground the base #ff4d1c
     reads muddy at text size; #ff5f33 is the same hue with the lift that keeps
     it fire rather than rust. Matches --t-accent-hi in globals.css. */
  --accent: #ff5f33;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  /* The pages are narrow and long; a horizontal scrollbar here is always a bug. */
  overflow-x: clip;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ── The header ──────────────────────────────────────────────────────────
 *
 * The same hairline that closes the header off from the page on the main site,
 * with a tick dropped at each edge of the content column. Two 8px marks are the
 * difference between a divider and a dimension line.
 */
nav {
  position: relative;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.nav-content {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo,
.logo-text {
  font-family: 'Syne', var(--mono), sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* The full stop is the ball. Same signature as the header on the main site. */
.logo::after,
.logo-text::after {
  content: '.';
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-size: 14px;
  color: rgba(248, 247, 242, 0.6);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 140ms linear;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

/* ── The page ────────────────────────────────────────────────────────────── */

.main-container,
.container {
  flex: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

main > header {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

/* The kicker. Mono, tracked, uppercase — the site's filing label, and what
   makes these pages read as documents rather than as blog posts. */
.last-updated {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.04;
  /* Tracking tightens as size grows — the one thing all five of the site's
     style references agree on independently. */
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.intro-text,
.description {
  margin-top: 20px;
  font-size: 17px;
  color: rgba(248, 247, 242, 0.72);
  max-width: 62ch;
  text-wrap: pretty;
}

/* ── Sections ────────────────────────────────────────────────────────────
 *
 * A rule and a lot of air, never a card. The old pages boxed every section in
 * a #141414 panel with a radius, which on a long legal document produces a
 * column of identical grey slabs and no hierarchy at all.
 */
.policy-section,
.section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.policy-section:last-of-type,
.section:last-of-type {
  border-bottom: none;
}

h2,
.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 10px;
}

.section-content > h3:first-child {
  margin-top: 0;
}

p {
  color: rgba(248, 247, 242, 0.72);
  max-width: 68ch;
}

p + p {
  margin-top: 14px;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

/* Lists read as a filing system: a hairline down the left, no bullet glyphs.
   A dot before every line in a four-item answer is noise; the rule already
   says "these belong together". */
ul,
.data-list,
.steps-list {
  list-style: none;
  margin-top: 12px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

li,
.data-item {
  color: rgba(248, 247, 242, 0.72);
  max-width: 66ch;
  padding: 7px 0;
}

ol {
  padding-left: 22px;
  margin-top: 12px;
}

ol li {
  padding-left: 6px;
}

/* ── Links and the contact ───────────────────────────────────────────────── */

a.email-link,
.section-content a,
.description a,
p a,
li a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 95, 51, 0.35);
  padding-bottom: 1px;
  transition: border-color 140ms linear;
}

a.email-link:hover,
.section-content a:hover,
p a:hover,
li a:hover,
a.email-link:focus-visible,
p a:focus-visible,
li a:focus-visible {
  border-bottom-color: var(--accent);
}

/* The address itself, given the weight of the thing a stuck person came for. */
.contact-info {
  margin: 20px 0 8px;
}

.contact-info .email-link {
  font-family: var(--mono);
  font-size: clamp(17px, 2.4vw, 21px);
  letter-spacing: -0.01em;
  border-bottom-width: 1px;
}

/* delete-account's callout. The one tinted surface on these pages, because it
   is the one paragraph a reader must not skim past. Tint and a rule, not a
   card with a shadow. */
.notice,
.card {
  margin-top: 24px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
}

.notice p:first-child,
.card p:first-child {
  margin-top: 0;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--line);
}

.footer-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Focus ───────────────────────────────────────────────────────────────
 * Visible on every interactive element. These pages are reached by people who
 * are already having a bad time; losing the cursor should not be part of it.
 */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .main-container,
  .container {
    padding: 48px 20px 72px;
  }
  .nav-content,
  .footer-content {
    padding-left: 20px;
    padding-right: 20px;
  }
  .policy-section,
  .section {
    padding: 36px 0;
  }
}
