/* First Ice public pages: /about, /terms, /privacy, /support.
   Standalone (no app JS). Tokens copied from site/css/v3/tokens.css: dark navy by default, Bright when the
   device asks for light. Fraunces for the wordmark and headings, Inter for text. */

:root {
  color-scheme: dark light;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --tap: 48px;
  --margin: 20px;
  --r-control: 14px;
  --r-card: 20px;

  --bg: #081419;
  --surface: #102027;
  --surface-2: #182B33;
  --label: #F1F6F5;
  --label-2: #AFC0C2;
  --label-3: #879A9D;
  --separator: rgba(255, 255, 255, .09);
  --accent: #45D3E0;
  --accent-press: #2FBFCC;
  --on-accent: #03191C;
  --accent-wash: rgba(69, 211, 224, .14);
  --caution: #F0C55A;
  --caution-wash: rgba(240, 197, 90, .13);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #EEF2F2;
    --surface: #FFFFFF;
    --surface-2: #E2E9EA;
    --label: #06161B;
    --label-2: #3C4F54;
    --label-3: #56696D;
    --separator: rgba(6, 22, 27, .12);
    --accent: #00707A;
    --accent-press: #005B64;
    --on-accent: #FFFFFF;
    --accent-wash: rgba(0, 112, 122, .11);
    --caution: #7E5900;
    --caution-wash: rgba(196, 140, 0, .15);
  }
}

@media (prefers-contrast: more) {
  :root { --label-2: #C9D6D7; --label-3: #A3B4B6; --separator: rgba(255, 255, 255, .2); }
}
@media (prefers-contrast: more) and (prefers-color-scheme: light) {
  :root { --label-2: #2C3E43; --label-3: #3C4F54; --accent: #005B64; --separator: rgba(6, 22, 27, .24); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font: 400 17px/1.6 var(--font);
  letter-spacing: -0.008em;
  font-feature-settings: "cv05", "cv08", "ss03";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

/* Header: wordmark and four links, all 48px targets. */
.top { border-bottom: 1px solid var(--separator); padding-top: env(safe-area-inset-top); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-top: 8px; padding-bottom: 8px; }
.mark {
  display: inline-flex; align-items: center; min-height: var(--tap);
  font: 600 24px/1 var(--display); letter-spacing: -0.015em;
  color: var(--label); text-decoration: none;
}
.nav { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.nav a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px;
  font: 500 15px/20px var(--font); color: var(--label-2); text-decoration: none;
}
.nav a:hover { color: var(--label); }
.nav a[aria-current="page"] { color: var(--label); }

main { padding: 32px 0 48px; }

h1, h2 { font-family: var(--display); font-weight: 600; color: var(--label); }
h1 { font-size: 36px; line-height: 40px; letter-spacing: -0.015em; margin: 0 0 8px; }
h2 { font-size: 24px; line-height: 30px; letter-spacing: -0.01em; margin: 40px 0 8px; }
h3 { font: 600 17px/22px var(--font); margin: 24px 0 4px; }
p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin: 0 0 6px; }
strong { font-weight: 600; }

.lede { font-size: 19px; line-height: 1.5; color: var(--label-2); margin-bottom: 24px; }
.meta { font-size: 15px; color: var(--label-3); margin: 0 0 24px; }
.small { font-size: 15px; line-height: 1.5; color: var(--label-2); }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-press); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* One callout style: the safety line. */
.note {
  background: var(--caution-wash); color: var(--label);
  border-radius: var(--r-control); padding: 14px 16px; margin: 0 0 24px;
}
.note strong { color: var(--caution); }

/* Simple list of things the app does. */
.list { list-style: none; padding: 0; margin: 0 0 24px; background: var(--surface); border-radius: var(--r-card); }
.list li { margin: 0; padding: 14px 16px; border-top: 1px solid var(--separator); }
.list li:first-child { border-top: 0; }
.list b { display: block; font: 600 17px/22px var(--font); }
.list span { display: block; font-size: 15px; line-height: 20px; color: var(--label-2); margin-top: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 24px; border-radius: var(--r-control);
  background: var(--accent); color: var(--on-accent);
  font: 600 17px/22px var(--font); text-decoration: none;
}
.btn:hover { background: var(--accent-press); color: var(--on-accent); }
.quiet-link { display: inline-flex; align-items: center; min-height: var(--tap); font-size: 15px; }

/* Plain table for the privacy summary. Scrolls inside itself on narrow screens. */
.tbl { overflow-x: auto; margin: 0 0 24px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--separator); }
th { font-weight: 600; color: var(--label-2); }

/* FAQ: native details, 48px rows. */
details { border-bottom: 1px solid var(--separator); }
details:first-of-type { border-top: 1px solid var(--separator); }
summary {
  min-height: var(--tap); display: flex; align-items: center; padding: 12px 0;
  font: 600 17px/22px var(--font); cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; padding-left: 16px; color: var(--label-3); font-weight: 400; }
details[open] summary::after { content: "–"; }
details > :not(summary) { margin-top: 0; }
details > p:last-child, details > ol:last-child, details > ul:last-child { margin-bottom: 16px; }

.foot { border-top: 1px solid var(--separator); padding: 24px 0 calc(32px + env(safe-area-inset-bottom)); }
.foot p { font-size: 15px; line-height: 1.5; color: var(--label-3); margin: 0 0 8px; }
.foot a { color: var(--label-2); display: inline-flex; align-items: center; min-height: var(--tap); }

@media (min-width: 720px) {
  main { padding-top: 56px; }
  h1 { font-size: 44px; line-height: 48px; }
}

@media print {
  :root { --bg: #fff; --surface: #fff; --label: #000; --label-2: #222; --label-3: #444; --accent: #00515A; }
  .nav, .btn { display: none; }
}
