/* Family Xchange — legal pages.
   Shared by terms.html, privacy.html, subscriptions.html and cookies.html.
   The tokens, nav and footer are lifted verbatim from index.html so the legal
   pages are the same site, not a bolt-on. Everything under "LEGAL PAGE" is new. */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --blue:#048cb9;--blue-dark:#036a8e;--blue-deep:#024f6b;--blue-light:#e6f4fa;
  --gold:#fab117;--gold-dark:#d9970e;--gold-light:#fff8e6;
  --dark:#12263a;--text:#1e3a4f;--muted:#4d6b80;--border:#cde5f2;
  --bg:#ffffff;--surface:#f4f9fc;--surface-2:#e8f3fa;
  --radius:10px;--radius-lg:14px;--radius-xl:20px;
}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --dark:#dff0f8;--text:#b8d4e2;--muted:#6a94a8;--border:#1a3348;
  --bg:#0c1c2b;--surface:#112333;--surface-2:#162d40;--gold-light:#1a1400;--blue-light:#10293c;
}}
:root[data-theme="dark"]{--dark:#dff0f8;--text:#b8d4e2;--muted:#6a94a8;--border:#1a3348;
  --bg:#0c1c2b;--surface:#112333;--surface-2:#162d40;--gold-light:#1a1400;--blue-light:#10293c}
:root[data-theme="light"]{--dark:#12263a;--text:#1e3a4f;--muted:#4d6b80;--border:#cde5f2;
  --bg:#ffffff;--surface:#f4f9fc;--surface-2:#e8f3fa;--gold-light:#fff8e6;--blue-light:#e6f4fa}

body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  font-size:16px;line-height:1.65;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}
h1,h2,h3,h4{color:var(--dark);font-weight:700;line-height:1.2;text-wrap:balance}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

.wrap{max-width:1040px;margin:0 auto;padding:0 24px}
.narrow{max-width:760px;margin:0 auto;padding:0 24px}

/* ── NAV ── */
.site-nav{background:var(--bg);border-bottom:1px solid var(--border);display:flex;align-items:center;
  justify-content:space-between;gap:14px;flex-wrap:nowrap;padding:11px 18px;position:sticky;top:0;z-index:60}
.nav-brand{display:block;flex:0 1 auto;min-width:0;line-height:0}
.site-logo{height:30px;width:auto;max-width:100%;display:block}
.nav-menu{display:flex;align-items:center;gap:20px}
.nav-link{color:var(--blue);font-size:.85rem;font-weight:600;text-decoration:none;white-space:nowrap}
.nav-link:hover{text-decoration:underline}
.nav-link.active{color:var(--dark)}
.nav-cta{display:inline-block;background:var(--gold);color:#1a0f00;font-size:.85rem;font-weight:700;
  padding:9px 20px;border-radius:var(--radius);text-decoration:none;white-space:nowrap;
  transition:background .15s;flex-shrink:0}
.nav-cta:hover{background:var(--gold-dark);text-decoration:none}
.nav-toggle{display:none}
@media(max-width:860px){
  .site-nav{padding:10px 14px}
  .site-logo{height:24px;max-width:none}
  .nav-toggle{display:flex;flex-direction:column;justify-content:center;gap:4px;width:46px;height:40px;
    padding:10px 11px;border:1px solid var(--border);border-radius:10px;background:transparent;
    cursor:pointer;flex:0 0 auto}
  .nav-toggle span{display:block;height:2px;width:100%;background:var(--blue);border-radius:2px;
    transition:transform .18s ease,opacity .18s ease}
  .nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
  .nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
  .nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
  .nav-menu{position:absolute;top:100%;left:0;right:0;display:none;flex-direction:column;align-items:stretch;
    gap:0;padding:2px 0 14px;background:var(--bg);border-bottom:1px solid var(--border);
    box-shadow:0 12px 26px rgba(0,0,0,.15);z-index:70}
  .nav-menu.open{display:flex}
  .nav-menu .nav-link{padding:14px 18px;font-size:1rem;white-space:normal;border-top:1px solid var(--border)}
  .nav-menu .nav-cta{margin:12px 18px 0;text-align:center;padding:13px 20px;font-size:.95rem}
}


/* ── FOOTER ── */
.site-foot{background:var(--surface);border-top:1px solid var(--border);padding:44px 0 36px;font-size:.88rem}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:28px}
@media(max-width:720px){.foot-grid{grid-template-columns:1fr 1fr}.foot-brand{grid-column:1/-1}}
.foot-brand p{color:var(--muted);font-size:.86rem;line-height:1.65;max-width:38ch;margin-top:12px}
.site-foot h4{font-size:.74rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.site-foot ul{list-style:none;display:flex;flex-direction:column;gap:9px}
.site-foot a{color:var(--text);font-weight:600}
.foot-bottom{margin-top:34px;padding-top:20px;border-top:1px solid var(--border);
  color:var(--muted);font-size:.8rem;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}


/* ── LEGAL PAGE ───────────────────────────────────────────────────────────
   A legal page is read, not scanned, so it is set narrow, left-aligned and
   with generous leading. Nothing here is decorative. */

.legal-head{background:var(--surface);border-bottom:1px solid var(--border);padding:52px 0 40px}
.legal-head .narrow{padding-left:24px;padding-right:24px}
.legal-eyebrow{font-size:.74rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted);margin-bottom:10px}
.legal-head h1{font-size:clamp(1.9rem,4.2vw,2.6rem);letter-spacing:-.02em;margin-bottom:12px}
.legal-stand{color:var(--muted);font-size:1rem;line-height:1.7;max-width:60ch}
.legal-meta{margin-top:22px;padding-top:16px;border-top:1px solid var(--border);
  display:flex;flex-wrap:wrap;gap:8px 26px;font-size:.82rem;color:var(--muted)}
.legal-meta b{color:var(--text);font-weight:600}

/* The other three policies, linked from every one of them. */
.legal-switch{background:var(--bg);border-bottom:1px solid var(--border);padding:14px 0}
.legal-switch .narrow{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:baseline;
  font-size:.84rem;padding-left:24px;padding-right:24px}
.legal-switch span{color:var(--muted);font-weight:600}
.legal-switch a{font-weight:600}
.legal-switch a[aria-current="page"]{color:var(--dark);text-decoration:underline}

.legal-body{padding:44px 0 72px}
.legal-body .narrow{max-width:760px}
.legal-body h2{font-size:1.32rem;margin:44px 0 14px;scroll-margin-top:86px}
.legal-body h2:first-child{margin-top:0}
.legal-body h3{font-size:1.04rem;margin:28px 0 10px}
.legal-body p{margin-bottom:16px;line-height:1.78}
.legal-body ul,.legal-body ol{margin:0 0 18px 1.3rem;line-height:1.78}
.legal-body li{margin-bottom:8px}
.legal-body strong{color:var(--dark)}
.legal-body a{text-decoration:underline}

/* Tables carry the real detail in these documents, so they get proper care
   and they scroll rather than forcing the page sideways on a phone. */
.legal-table-wrap{overflow-x:auto;margin:0 0 22px;border:1px solid var(--border);
  border-radius:var(--radius)}
.legal-body table{border-collapse:collapse;width:100%;min-width:460px;font-size:.88rem}
.legal-body th,.legal-body td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--border);
  vertical-align:top;line-height:1.6}
.legal-body thead th{background:var(--surface-2);color:var(--dark);font-weight:700;
  font-size:.78rem;letter-spacing:.04em;text-transform:uppercase}
.legal-body tbody tr:last-child td{border-bottom:none}

/* A callout for the handful of things a parent must not miss. */
.legal-note{background:var(--blue-light);border:1px solid var(--border);
  border-left:3px solid var(--blue);border-radius:var(--radius);
  padding:16px 18px;margin:0 0 22px}
.legal-note p:last-child{margin-bottom:0}
.legal-note.warn{background:var(--gold-light);border-left-color:var(--gold)}

/* Contact block at the foot of each policy. */
.legal-contact{background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius-lg);padding:22px 24px;margin-top:40px}
.legal-contact h2{margin-top:0}
.legal-contact address{font-style:normal;line-height:1.8;font-size:.92rem}

/* Contents list at the top of the longer documents. */
.legal-toc{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  padding:18px 22px;margin:0 0 34px}
.legal-toc h2{font-size:.76rem !important;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted);margin:0 0 12px !important}
.legal-toc ol{list-style:none;margin:0;columns:2;column-gap:28px;font-size:.89rem;line-height:1.7}
/* The headings already carry their own numbers, so the list adds none. */
.legal-toc li{margin-bottom:4px;break-inside:avoid}
@media(max-width:620px){.legal-toc ol{columns:1}}

@media(max-width:620px){
  .legal-head{padding:38px 0 30px}
  .legal-body{padding:34px 0 54px}
  .legal-body h2{margin-top:36px}
}

/* The legal row sits above the copyright line, on every page of the site. */
.foot-legal{margin-top:30px;padding-top:18px;border-top:1px solid var(--border);
  display:flex;flex-wrap:wrap;gap:10px 22px;font-size:.82rem}
.foot-legal a{color:var(--muted);font-weight:600}
.foot-legal a:hover{color:var(--text)}
.foot-legal+.foot-bottom{margin-top:16px;padding-top:14px}
