/* ─── Their First family document style ─────────────────────────────────────
     The landing pages these documents are linked FROM use this same voice — warm
     ground, self-hosted Baloo 2, one lifted paper card — so following a "Privacy"
     link no longer reads as leaving the product for another company's website.

     Self-hosted Baloo 2 (OFL) is real on every OS; a bare "SF Pro Rounded" stack
     silently falls back to plain sans off-Apple. It carries HEADINGS and page
     chrome ONLY: 30KB of legal prose set in a rounded display face is genuinely
     harder to read, so body copy stays in a text stack at 16.5px/1.65. */
@font-face {
  font-family: 'Baloo 2';
  src: url('/fonts/baloo2-latin-var.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
:root {
  /* ── PER-APP PALETTE (start) — the only part of this stylesheet that differs ──
  */
  --ink: #365f55;
  --title: #284b43;
  --accent: #b66f3c;
  --accent-ink: #8a4f28;
  --soft: #60736c;
  --slate: #3f4f4a;
  --bg: #e5eadf;
  --bg-mid: #eef0e6;
  --bg-top: #d8e5dc;
  --paper: #fffdf8;
  --cream: #f6f1e4;
  --line: #d9d5c5;
  --line-soft: #ebe7dc;
  /* ── PER-APP PALETTE (end) — everything below is shared verbatim ──────────── */
  --warn: #b45309;
  --warnbg: #fef3c7;
  --warnline: #fcd34d;
  --display:
    'Baloo 2', 'SF Pro Rounded', ui-rounded, 'Hiragino Maru Gothic ProN',
    'Segoe UI', system-ui, -apple-system, sans-serif;
  --body:
    system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
/* Gradient stops are in px, not %, so the cool→warm wash resolves inside the first
     screen; on a %-based gradient a 9,000px-tall policy smears the transition down
     the whole document and the warm ground never arrives. */
body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  background-color: var(--bg);
  background-image: linear-gradient(
    180deg,
    var(--bg-top) 0,
    var(--bg-mid) 300px,
    var(--bg) 620px
  );
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 84px;
}

/* Page header — app icon + name, linking to that app's landing page. This is the
     piece that makes a legal page read as part of the product. */
.mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 20px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20.5px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.mark img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}
.mark:hover {
  color: var(--accent-ink);
}

.doc {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 30px 28px 34px;
  box-shadow:
    0 10px 30px -20px rgba(70, 55, 30, 0.34),
    0 1px 3px rgba(70, 55, 30, 0.05);
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--title);
  font-size: clamp(27px, 6.2vw, 34px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 0.1em 0 0.55em;
  text-wrap: balance;
}
/* Generous rhythm + a hairline above each section head, so a long policy scans as
     chapters instead of one undifferentiated column. */
h2 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(19.5px, 4.5vw, 23px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 2.15em 0 0.55em;
  padding-top: 1.05em;
  border-top: 1px solid var(--line-soft);
  text-wrap: balance;
}
h2:first-of-type {
  margin-top: 1.15em;
  padding-top: 0;
  border-top: none;
}
h3 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  font-size: 17.5px;
  line-height: 1.35;
  margin: 1.75em 0 0.4em;
}
h4,
h5,
h6 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--soft);
  font-size: 15.5px;
  line-height: 1.4;
  margin: 1.5em 0 0.35em;
}
p {
  margin: 0 0 1.05em;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0 0 1.05em;
  padding-left: 1.4em;
}
li {
  margin: 0.32em 0;
}
li > ul,
li > ol {
  margin: 0.34em 0 0.1em;
}
strong,
b {
  color: var(--title);
  font-weight: 700;
}
a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  overflow-wrap: break-word;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--accent-ink);
}
hr {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 1.9em 0;
}

/* No min-width on the table: one that fits stays put, one whose min-content width
     exceeds the card scrolls inside .tscroll. th is nowrap so column heads stay on
     one line and the scroll is what gives way, not legibility. */
.tscroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25em 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
}
th,
td {
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}
th:last-child,
td:last-child {
  border-right: none;
}
tr:last-child td {
  border-bottom: none;
}
th {
  background: var(--cream);
  color: var(--title);
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  color: var(--accent-ink);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}
blockquote {
  margin: 1.25em 0;
  padding: 0.85em 1.15em;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 13px 13px 0;
}
blockquote > :last-child {
  margin-bottom: 0;
}

.ph {
  background: var(--warnbg);
  color: var(--warn);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.86em;
  padding: 1px 8px;
  border-radius: 7px;
  white-space: nowrap;
}
.draft {
  background: var(--warnbg);
  color: var(--warn);
  border: 1px solid var(--warnline);
  border-radius: 14px;
  padding: 13px 15px;
  margin: 0 0 20px;
  font-size: 14.5px;
  font-weight: 600;
}
footer {
  text-align: center;
  color: var(--soft);
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  margin-top: 28px;
}

/* Two-tone focus ring — the same treatment the family landing pages carry, so following a
     "Privacy" link no longer changes focus behaviour mid-site. Brand amber #FFB347 is the
     dominant outer ring, but on a near-white card it is only ~1.75:1 and ALONE fails WCAG
     2.2 SC 1.4.11's 3:1 floor for a focus indicator; the box-shadow lays a thin companion
     ring into the outline-offset gap (2px spread == 2px offset, so the two abut with no
     light leak). The companion is --accent-ink — the hue these documents already use for
     links and code — which clears 3:1 on every surface of all five app palettes (worst
     3.87:1) and 3.10:1 against the amber itself, so the ring delineates ITSELF on any
     backdrop: dark grounds are carried by the amber, light ones by the ink. */
a:focus-visible,
.mark:focus-visible,
.tscroll:focus-visible {
  outline: 3px solid #ffb347;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--accent-ink);
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media (max-width: 479px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 14px 64px;
  }
  .mark {
    font-size: 19px;
    gap: 10px;
    margin: 20px 0 16px;
  }
  .mark img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .doc {
    padding: 22px 17px 26px;
    border-radius: 17px;
  }
}
@media (min-width: 1040px) {
  body {
    font-size: 17px;
  }
  .wrap {
    max-width: 816px;
    padding-bottom: 100px;
  }
  .mark {
    margin: 32px 0 22px;
  }
  .doc {
    padding: 44px 46px 48px;
  }
}
