/* ─── Antena · shared legal/support styles ─────────────
   Reuses the homepage's tokens, type system, nav, footer.
   Pages: /terms/ · /privacy/ · /support/
────────────────────────────────────────────────────────── */

:root {
  --bg:        #FAFAFA;
  --bg-2:      #F0F0F0;
  --paper:     #FFFFFF;
  --ink:       #0F0D0A;
  --ink-soft:  #4A453E;
  --ink-mute:  #8A847A;
  --rule:      rgba(15, 13, 10, 0.14);
  --rule-soft: rgba(15, 13, 10, 0.07);
  --navy:      #002292;
  --navy-deep: #001a72;
  --gold:      #CDAA6D;
  --serif:     "Newsreader", "Iowan Old Style", "Charter", Georgia, serif;
  --mono:      "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(15,13,10,0.01) 1px, transparent 1px);
  background-size: 3px 3px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "onum";
}

::selection { background: var(--navy); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.measure {
  max-width: 680px;
  margin: 0 auto;
}

/* ─── eyebrow ──────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow.no-bar::before { display: none; }
.eyebrow.navy { color: var(--navy); }

/* ─── nav ──────────────────────────────────────────────── */
nav.top {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--rule-soft);
}
nav.top .row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 14px 0;
}
@media (min-width: 761px) {
  nav.top .brand {
    transform: translateX(clamp(2rem, 4vw, 3rem));
  }
}
.brand {
  display: inline-flex; align-items: center;
  height: 32px;
}
.brand img {
  height: 22px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex; gap: 28px;
  justify-content: center;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  justify-self: end;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 760px) {
  .nav-links { display: none; }
  nav.top .wrap {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }
  nav.top .row { padding-top: 12px; padding-bottom: 12px; }
  nav.top .brand { transform: none; }
  .brand img { height: 20px; }
  .nav-cta { padding: 8px 14px; font-size: 11px; }
}

/* ─── page header ──────────────────────────────────────── */
header.page-head {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
header.page-head .eyebrow { margin-bottom: 1.4rem; }
header.page-head h1 {
  font-weight: 400;
  margin: 0 0 1.2rem;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.024em;
  font-variation-settings: "opsz" 60;
  max-width: 18ch;
}
header.page-head .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 1.6rem;
  text-wrap: pretty;
}
header.page-head .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2rem;
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
header.page-head .meta strong {
  color: var(--ink);
  font-weight: 500;
  margin-left: 0.4em;
}
header.page-head .meta a { color: var(--navy); }

/* ─── article body ─────────────────────────────────────── */
article.legal {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6.5rem);
}
article.legal .body {
  max-width: 680px;
}

article.legal h2 {
  font-weight: 400;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  font-variation-settings: "opsz" 28;
  letter-spacing: -0.012em;
  line-height: 1.25;
  margin: clamp(2.6rem, 5vw, 3.6rem) 0 0.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  text-wrap: balance;
}
article.legal h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
article.legal h2 .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--navy);
  flex: 0 0 auto;
  font-variation-settings: normal;
  position: relative;
  top: -0.1em;
}

article.legal p {
  margin: 0 0 1.05em;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  text-wrap: pretty;
}
article.legal p strong { color: var(--ink); font-weight: 500; }
article.legal p em.brand {
  font-style: italic; color: var(--navy); font-weight: 300;
}

article.legal a {
  color: var(--navy);
  border-bottom: 1px solid color-mix(in oklab, var(--navy) 30%, transparent);
  transition: border-color .2s, color .2s;
}
article.legal a:hover { border-bottom-color: var(--navy); }

article.legal ul {
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}
article.legal ul li {
  position: relative;
  padding: 0.45em 0 0.45em 1.6em;
  color: var(--ink-soft);
  line-height: 1.6;
  border-bottom: 1px dashed var(--rule-soft);
}
article.legal ul li:last-child { border-bottom: 0; }
article.legal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 8px;
  height: 1px;
  background: var(--navy);
  opacity: 0.7;
}

/* call-out: the disclaimer / non-medical / contact panels */
article.legal .callout {
  margin: 1.6rem 0 1.6rem;
  padding: 1.2rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--navy);
  border-radius: 4px;
}
article.legal .callout p {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
}
article.legal .callout p + p { margin-top: 0.6em; }
article.legal .callout .callout-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.6em;
}

/* ─── support page specifics ───────────────────────────── */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  margin-top: 2rem;
}
@media (max-width: 720px) {
  .support-grid { grid-template-columns: 1fr; }
}
.support-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: 0 1px 0 rgba(15,13,10,0.04), 0 24px 60px -32px rgba(15,13,10,0.18);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.support-card .eyebrow { margin-bottom: 0.4rem; }
.support-card h3 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-variation-settings: "opsz" 28;
  letter-spacing: -0.012em;
}
.support-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}
.support-card .email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.4rem;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  align-self: flex-start;
  transition: background .25s, color .25s, border-color .25s;
  border-bottom: 1px solid var(--ink);
}
.support-card .email-link:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ─── footer (matches homepage) ────────────────────────── */
footer.foot {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-mute);
}
footer.foot .row {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.4rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
footer.foot .brand img { height: 18px; opacity: 0.85; }
footer.foot a:hover { color: var(--navy); }
footer.foot .links { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ─── motion (calm — match homepage) ───────────────────── */
@media (prefers-reduced-motion: no-preference) {
  header.page-head .eyebrow,
  header.page-head h1,
  header.page-head .lead,
  header.page-head .meta {
    animation: rise 0.95s cubic-bezier(.2,.6,.2,1) both;
  }
  header.page-head .eyebrow { animation-delay: 0.05s; }
  header.page-head h1      { animation-delay: 0.15s; }
  header.page-head .lead   { animation-delay: 0.30s; }
  header.page-head .meta   { animation-delay: 0.45s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }

  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1);
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ─── small-screen tightenings ─────────────────────────── */
@media (max-width: 600px) {
  body { font-size: 17px; }
  article.legal h2 { gap: 0.8rem; flex-wrap: wrap; }
  article.legal h2 .num { font-size: 10px; }
}
