/* Shared styling for the standalone support / privacy / terms pages.
 *
 * These are deliberately separate documents rather than pages inside
 * cfinz.html: App Store Connect needs a Support URL and a Privacy Policy URL
 * that resolve publicly on the open web, so they can't live behind the app's
 * sign-in or inside a single-page bundle.
 *
 * Palette and type are copied from cfinz.html so the pages feel like FINZ, but
 * body text is deliberately larger and lighter than the app's 6-8px pixel font:
 * these are documents people actually have to read, and a privacy policy set in
 * Press Start 2P at 7px would be unreadable. */

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

:root {
  --bg:        #0a0a1a;
  --panel:     #111128;
  --border:    #2a2a5a;
  --border-lt: #4a4aaa;
  --accent:    #00e5ff;
  --accent2:   #ffe600;
  --text:      #c8c8ff;
  --text-dim:  #8a8ab8;
  --pixel:     2px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  /* System stack, not the pixel font — readability wins for long text. */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  padding: 24px 16px 64px;
}

.wrap { max-width: 720px; margin: 0 auto; }

/* ── Header ─────────────────────────────────────────────────────────── */
header {
  border-bottom: var(--pixel) solid var(--border-lt);
  padding-bottom: 16px;
  margin-bottom: 28px;
}

.logo {
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 18px;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
  letter-spacing: 2px;
  text-decoration: none;
  display: inline-block;
}

.tagline { color: var(--text-dim); font-size: 13px; margin-top: 8px; }

/* ── Type ───────────────────────────────────────────────────────────── */
h1 { font-size: 26px; color: var(--accent2); margin-bottom: 6px; letter-spacing: 0.5px; }
h2 {
  font-size: 18px;
  color: var(--accent);
  margin: 32px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
h3 { font-size: 15px; color: var(--text); margin: 20px 0 6px; }

p, li { margin-bottom: 12px; color: var(--text); }
ul, ol { padding-left: 22px; margin-bottom: 16px; }
li { margin-bottom: 6px; }

a { color: var(--accent); }
a:hover { color: var(--accent2); }

strong { color: #fff; }

.updated { color: var(--text-dim); font-size: 13px; margin-bottom: 24px; }

/* ── Boxes ──────────────────────────────────────────────────────────── */
.box {
  background: var(--panel);
  border: var(--pixel) solid var(--border-lt);
  padding: 18px;
  margin: 20px 0;
}
.box h3 { margin-top: 0; }

.note { border-color: var(--accent2); }
.note h3 { color: var(--accent2); }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 11px;
  background: transparent;
  color: var(--accent);
  border: var(--pixel) solid var(--accent);
  padding: 12px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
}
.btn:hover { background: var(--accent); color: #000; }

/* ── Nav / footer ───────────────────────────────────────────────────── */
nav.pages {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 8px;
}
nav.pages a {
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid var(--border-lt);
  text-decoration: none;
}
nav.pages a.here { border-color: var(--accent2); color: var(--accent2); }

footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
}

/* ── Guides (pages/guides/) ──────────────────────────────────────────── */
/* Screenshots of the app are pixel art taken at 2x, shown at their 1x size, so
   pixelated keeps every edge hard if a browser scales them at all. */
figure { margin: 24px 0; text-align: center; }
figure img {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
  border: var(--pixel) solid var(--border-lt);
  background: var(--panel);
}
figcaption { color: var(--text-dim); font-size: 13px; line-height: 1.5; margin: 8px auto 0; max-width: 480px; }

.glossary dt { color: #fff; font-weight: 600; margin-top: 12px; }
.glossary dd { margin: 2px 0 0; color: var(--text); }

.try .btn { margin-top: 4px; }

/* Long tables (data disclosures) must scroll rather than push the page wide. */
.table-scroll { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 480px; }
th, td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
th { color: var(--accent); background: var(--panel); font-weight: 600; }

@media (max-width: 520px) {
  body { font-size: 15px; padding: 16px 12px 48px; }
  h1 { font-size: 22px; }
  .logo { font-size: 15px; }
}
