/*
 * The document pages - privacy, support, data deletion - and the /get/
 * fallback. Same brand as the homepage (home.css): the app's typeface, served
 * from this site rather than a font CDN so no visitor's address goes to a
 * third party, and the navy, blue and gold of the store artwork.
 *
 * The App Store and Play link to these pages, so restyling them must never
 * change what they say: the wording lives in the HTML, and only the top band
 * was added there.
 */
@font-face {
  font-family: "Jakarta";
  src: url("fonts/PlusJakartaSans_500Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Jakarta";
  src: url("fonts/PlusJakartaSans_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Jakarta";
  src: url("fonts/PlusJakartaSans_800ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --navy: #0f172a;
  --navy-2: #13233f;
  --navy-3: #1e3a8a;
  --gold: #fbbf24;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --surface: #ffffff;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e2e8f0;
    --muted: #a3b1c6;
    --line: #1e293b;
    --bg: #0b1220;
    --surface: #111a2e;
    --accent: #60a5fa;
    --accent-soft: rgba(96, 165, 250, 0.12);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0 0 56px;
  background: var(--bg);
  color: var(--ink);
  font: 500 16.5px/1.7 "Jakarta", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* The navy band the page card sits on. */
.band {
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(37, 99, 235, 0.35), transparent 60%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  padding: 18px 0 110px;
}
.band-inner {
  width: min(52rem, 100% - 32px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.band-cta {
  color: var(--navy);
  background: #fff;
  padding: 7px 15px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

main {
  position: relative;
  width: min(52rem, 100% - 32px);
  margin: 24px auto 0;
  padding: clamp(24px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
/* The card overlaps the band only when there is a band. Unconditional, it
   pulled the title off the top of any page without one - which is exactly
   what a browser showed with a cached old page and the new stylesheet. */
.band + main { margin-top: -78px; }
h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 8px;
}
h2 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 40px 0 10px;
}
.effective {
  display: inline-block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
}
p, li { color: var(--ink); }
p { margin: 0 0 14px; }
strong { font-weight: 700; }
a { color: var(--accent); text-underline-offset: 2px; }
ul, ol { padding-left: 1.3rem; margin: 0 0 14px; }
li { margin-bottom: 8px; }
.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px 18px;
  border-radius: 0 12px 12px 0;
  margin: 22px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* Wide tables must scroll inside themselves, never the page. */
.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.9rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 800; background: var(--bg); }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* The official badges, unaltered, as Apple's and Google's guidelines require
   - served from this site, so showing them contacts neither company. Both at
   a 54px visible height. Google's PNG carries its own clear space, 41px of
   250 on every side: the image is drawn larger and the link clips that
   transparent margin, so the visible badges line up and the clickable area
   is the badge itself. The clip stops a pixel short of the badge and has no
   rounding of its own: cut exactly at 13px it shaved off the badge's thin
   grey outline on the left, and rounded corners nipped its corners. */
.badge-link {
  display: inline-block;
  line-height: 0;
  border-radius: 9px;
  transition: transform 0.15s ease;
}
.badge-link:hover { transform: translateY(-2px); }
/* The SVG's frame carries 1 unit of transparent margin (viewBox -1 -1):
   with the outline running to the very edge, browsers rounded the drawing
   area down and clipped the right-hand outline. 56.7px tall keeps the badge
   itself at 54px. */
.badge-apple img { height: 56.7px; width: auto; margin: -1.35px; }
.badge-play { width: 183px; height: 56px; overflow: hidden; }
.badge-play img { height: 80px; width: auto; max-width: none; margin: -12px; }

/* /get/ when JavaScript is off: the badges, and a note while Play is not live. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.store {
  display: inline-flex;
  flex-direction: column;
  min-width: 180px;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}
.store small { font-size: 0.72rem; font-weight: 700; opacity: 0.8; }
.store span { font-size: 1.1rem; font-weight: 800; }
.store.play { background: var(--gold); color: var(--navy); }
.soon { display: none; color: var(--muted); }
.play-soon .soon { display: block; }
.play-soon .play { display: none; }
.stores { align-items: center; }
