/* Affiliate Insiders — legal document pages, LIGHT colorway (Blueprint)
   Palette from: Affiliate Insiders Brand Kit / 05 Blueprint / 03_color/colors.css
   Shares tokens, grid backdrop, brand header and legal footer with the opt-in
   and thank-you pages; the centered hero is replaced by a reading column. */
:root {
  --bg: #edf1f6;          /* Draft — cool paper */
  --surface: #ffffff;     /* cards */
  --text: #0b1f3a;        /* Navy */
  --muted: #5c7191;       /* Graphite */
  --line: #cbd6e4;        /* Grid */
  --accent: #06b6d4;      /* Teal */
  --accent-deep: #0e7490; /* Deep Teal */
  --gradient: linear-gradient(135deg, #06b6d4, #0e7490);
}
* { box-sizing: border-box; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
html, body { min-height: 100%; -webkit-text-size-adjust: 100%; overflow-x: hidden; background: var(--bg); color-scheme: light; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.shell {
  min-height: 100svh;
  background-color: var(--bg);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 34px 42px 26px;
  position: relative;
  overflow: hidden;
}
/* Same grid + glow structure as the opt-in build, pinned to the top of the
   page so it sits behind the masthead rather than the middle of a long doc. */
.shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 780px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 12%, rgba(6,182,212,.10), transparent 42%),
    radial-gradient(circle at 58% 18%, rgba(14,116,144,.07), transparent 46%),
    linear-gradient(rgba(11,31,58,.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,31,58,.038) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  mask-image: linear-gradient(black, transparent 88%);
}
.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: max-content;
  opacity: .92;
}
.brand img { width: 174px; height: auto; display: block; }
.brand a { display: block; line-height: 0; }
main {
  position: relative;
  z-index: 1;
  padding: 56px 0 0;
}

/* ---- Document masthead ---- */
.doc {
  width: min(100%, 760px);
  margin: 0 auto;
}
.doc-head { text-align: center; margin-bottom: 46px; }
.mark {
  width: 60px;
  height: 60px;
  margin: 0 auto 26px;
  padding: 13px;
  border: 1px solid transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(6,182,212,.85), rgba(14,116,144,.75)) border-box;
  box-shadow: 0 14px 40px rgba(11,31,58,.10), 0 0 26px rgba(6,182,212,.12);
}
.mark img { width: 100%; height: 100%; object-fit: contain; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 780;
}
.updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .01em;
}

/* ---- Table of contents ---- */
.toc {
  margin: 0 0 52px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(11,31,58,.06);
}
.toc h2 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  columns: 2;
  column-gap: 34px;
}
.toc li {
  counter-increment: toc;
  break-inside: avoid;
  margin: 0 0 9px;
  font-size: 14px;
  line-height: 1.45;
}
.toc li::before {
  content: counter(toc) ".";
  color: var(--accent-deep);
  font-weight: 700;
  margin-right: 7px;
  font-variant-numeric: tabular-nums;
}
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent-deep); text-decoration: underline; }

/* ---- Body copy ---- */
.doc-body { counter-reset: sec; }
.doc-body section { margin: 0 0 44px; scroll-margin-top: 24px; }
.doc-body h2 {
  counter-increment: sec;
  margin: 0 0 16px;
  font-size: clamp(20px, 2.3vw, 25px);
  line-height: 1.24;
  letter-spacing: -.02em;
  font-weight: 750;
}
.doc-body h2::before {
  content: counter(sec) ".";
  color: var(--accent-deep);
  margin-right: 10px;
  font-variant-numeric: tabular-nums;
}
.doc-body h3 {
  margin: 26px 0 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.doc-body p {
  margin: 0 0 15px;
  color: #33496b;
  font-size: 15.5px;
  line-height: 1.72;
}
.doc-body ul { margin: 0 0 15px; padding-left: 22px; }
.doc-body li {
  margin: 0 0 9px;
  color: #33496b;
  font-size: 15.5px;
  line-height: 1.7;
}
.doc-body li::marker { color: var(--accent); }
.doc-body strong { color: var(--text); font-weight: 700; }
.doc-body a { color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.doc-body a:hover { text-decoration: underline; }
.doc-body hr { display: none; }

/* Uppercase blocks that have to stay visually loud (warranty / liability). */
.legal-caps {
  text-transform: uppercase;
  font-size: 13px !important;
  letter-spacing: .015em;
  line-height: 1.65 !important;
}

/* Callout card — used for the SMS program terms and the affiliate disclosure,
   the two blocks carriers and the FTC actually read. */
.callout {
  margin: 0 0 15px;
  padding: 22px 26px;
  border: 1px solid rgba(6,182,212,.42);
  border-radius: 13px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(6,182,212,.10),
    0 12px 30px rgba(11,31,58,.07);
}
.callout > :last-child { margin-bottom: 0; }
.callout p, .callout li { font-size: 15px; }

/* Contact block */
.contact-card {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(11,31,58,.06);
}
.contact-card p { margin: 0 0 7px; }
.contact-card p:last-child { margin-bottom: 0; }

/* ---- Legal footer (matches opt-in / thank-you) ---- */
.site-footer {
  display: block;
  position: relative;
  z-index: 1;
  margin-top: 120px;
  padding-top: 36px;
  border-top: 1px solid #cbd6e4;
  text-align: center;
  color: #7c8ca6;
  font-size: 11px;
  line-height: 1.65;
}
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}
.footer-links a { color: #0e7490; text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-links span { opacity: .45; }
.footer-meta { margin: 20px 0 0; font-size: 10.5px; }
.footer-disclaimer {
  margin: 24px auto 0;
  max-width: 700px;
  font-size: 10px;
  letter-spacing: .01em;
}
.footer-legal { margin: 18px auto 0; max-width: 700px; font-size: 10px; }

@media (max-width: 680px) {
  .shell { padding: 24px 20px 20px; }
  .brand img { width: 146px; }
  main { padding: 40px 0 0; }
  .doc-head { margin-bottom: 36px; }
  .mark { width: 54px; height: 54px; margin-bottom: 22px; padding: 12px; }
  h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .toc { margin-bottom: 40px; padding: 22px 20px; }
  .toc ol { columns: 1; }
  /* Single column on phones — pad each row out to a ~44px tap target.
     ::before carries the same top padding so the number stays aligned. */
  .toc li { display: flex; margin-bottom: 2px; }
  .toc li::before { padding-top: 11px; }
  .toc a { flex: 1; padding: 11px 0; }
  .doc-body section { margin-bottom: 38px; }
  .doc-body p, .doc-body li { font-size: 15px; }
  .callout { padding: 20px 18px; }
  .contact-card { padding: 20px 18px; }
  .site-footer { margin-top: 80px; padding-top: 28px; font-size: 10.5px; }
  .footer-links { gap: 12px; font-size: 12px; }
  .footer-links a { padding: 8px 2px; }
  .footer-disclaimer, .footer-legal { font-size: 9.5px; }
}

@media print {
  .shell::before, .toc { display: none; }
  .shell { padding: 0; min-height: 0; }
  body { background: #fff; }
  .doc-body p, .doc-body li { color: #000; font-size: 11pt; }
}
