/* ITSL Blueprint — shared stylesheet for the legal pages and the 404.
   "Executive" look: navy header/footer, cream/paper page, white cards, gold rules.
   Contrast rule: gold (#d2ac6d) is used on navy, or as rules/borders/decoration on light.
   Small gold-coloured text on light backgrounds uses --gold-ink instead (AA on white/cream/paper).
   Never put overflow-x:hidden/clip on html or body: it kills vertical scroll in Chromium. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #04182b; --navy-deep: #031523; --navy-soft: #0a2138;
  --gold: #d2ac6d; --gold-hi: #e0bd82; --gold-ink: #7a5a1f;
  --cream: #fdfdfb; --paper: #f2f0ec; --card: #ffffff;
  --ink: #16202b; --slate: #5d6b7a;
  --line: rgba(4, 24, 43, .13); --line-strong: rgba(4, 24, 43, .24); --line-light: rgba(255, 255, 255, .16);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r: 2px; --wrap: 1120px; --pad: 24px;
  --lift: 0 1px 2px rgba(4, 24, 43, .05), 0 18px 40px -26px rgba(4, 24, 43, .3);
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--cream); color: var(--ink); font-family: var(--sans);
  font-size: 16px; line-height: 1.65; overflow-wrap: break-word;
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
main :focus-visible { outline-color: var(--navy); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip {
  position: absolute; left: 12px; top: -64px; z-index: 99; background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: .85rem; padding: 11px 18px; text-decoration: none; transition: top .2s ease;
}
.skip:focus { top: 0; outline-color: var(--navy); }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.005em; color: var(--navy); }
.eyebrow {
  font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px;
}
.eyebrow::after { content: ''; display: block; width: 56px; height: 2px; background: var(--gold); margin-top: 14px; }

/* ---------- header ---------- */
header.site { position: sticky; top: 0; z-index: 60; background: var(--navy); border-bottom: 1px solid var(--line-light); }
.nav { display: flex; align-items: center; gap: 14px; padding-block: 13px; min-width: 0; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; min-width: 0; flex: 0 1 auto; color: #f6f7f9; }
.brand-mark {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold); font: 500 1.05rem/1 var(--serif); letter-spacing: .08em;
}
.brand-text { display: flex; flex-direction: column; gap: .28rem; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 1.12rem; letter-spacing: .16em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.brand-name b { font-weight: 400; color: var(--gold); }
.brand-tag { font-size: .52rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .7); line-height: 1; white-space: nowrap; }
.nav-end { margin-left: auto; flex: none; display: flex; align-items: center; gap: 10px; }
@media (max-width: 720px) {
  .brand-tag { display: none; }
  .brand-mark { width: 38px; height: 38px; font-size: .9rem; }
  .brand-name { font-size: .92rem; letter-spacing: .12em; }
}

@media (max-width: 440px) {
  .nav { gap: 8px; }
  .brand { gap: .6rem; }
  .brand-mark { width: 34px; height: 34px; font-size: .8rem; }
  .brand-name { font-size: .78rem; letter-spacing: .07em; }
  header.site .btn-sm { padding: .6rem .8rem; font-size: .62rem; letter-spacing: .1em; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--sans); font-size: .72rem; font-weight: 600; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .14em; text-decoration: none; text-align: center;
  padding: .95rem 1.7rem; border: 1px solid transparent; border-radius: var(--r); cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .7rem 1.2rem; }
.btn-lamp { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-lamp:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn-out { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-out:hover { border-color: var(--navy); background: rgba(4, 24, 43, .05); }
header.site .btn-out { color: #f6f7f9; border-color: rgba(255, 255, 255, .5); }
header.site .btn-out:hover { color: var(--gold); border-color: var(--gold); background: transparent; }

/* ---------- page head ---------- */
main { flex: 1 0 auto; padding: clamp(40px, 5.5vw, 72px) 0 clamp(56px, 7vw, 96px); }
.dochead { max-width: 44em; }
.dochead h1 { font-size: clamp(2.05rem, 5.2vw, 3.2rem); line-height: 1.08; }
.dochead .lede { margin-top: 18px; font-size: clamp(1rem, 1.4vw, 1.1rem); line-height: 1.7; color: var(--slate); }
.stamp {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 22px;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--slate);
}
.stamp b { color: var(--navy); font-weight: 700; }

.doclinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.doclinks a {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--navy);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 9px 15px;
  transition: color .22s, border-color .22s, background-color .22s;
}
.doclinks a:hover { border-color: var(--gold); }
.doclinks a[aria-current="page"] { color: var(--gold); background: var(--navy); border-color: var(--navy); }

/* ---------- layout + TOC ---------- */
.layout { display: grid; gap: 36px; margin-top: clamp(38px, 4.5vw, 56px); }
@media (min-width: 1040px) { .layout { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; } }
.toc { background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--lift); min-width: 0; }
@media (min-width: 1040px) { .toc { position: sticky; top: 96px; max-height: calc(100vh - 124px); overflow-y: auto; } }
.toc h2 {
  font-family: var(--sans); font-size: .64rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 13px;
}
.toc ol { list-style: none; display: grid; gap: 2px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a {
  display: grid; grid-template-columns: 26px 1fr; gap: 6px; text-decoration: none;
  font-size: .82rem; line-height: 1.45; color: var(--ink); padding: 6px 0; transition: color .2s;
}
.toc a::before { content: counter(t, decimal-leading-zero); font-variant-numeric: tabular-nums; font-size: .66rem; font-weight: 700; color: var(--slate); padding-top: .25em; }
.toc a:hover { color: var(--gold-ink); }

/* ---------- prose ---------- */
.prose { max-width: 46em; min-width: 0; }
.prose section { scroll-margin-top: 96px; }
.prose section + section { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--line); }
.prose h2 { font-size: clamp(1.34rem, 2.4vw, 1.72rem); line-height: 1.2; }
.prose h2 .n {
  display: block; font-family: var(--sans); font-size: .64rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 9px;
}
.prose h3 { font-size: 1.06rem; line-height: 1.32; margin-top: 26px; font-weight: 500; }
.prose p { margin-top: 14px; font-size: .95rem; color: var(--ink); }
.prose strong { color: var(--navy); font-weight: 600; }
.prose em { font-style: italic; }
.prose a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.prose a:hover { text-decoration-color: var(--navy); }
.prose a.btn, .prose a.btn:hover { text-decoration: none; }
.prose a.btn-lamp, .prose a.btn-lamp:hover { color: var(--navy); }
.prose a.btn-out, .prose a.btn-out:hover { color: var(--navy); }
.prose ul, .prose ol { list-style: none; margin-top: 15px; display: grid; gap: 10px; }
.prose li { font-size: .93rem; color: var(--ink); padding-left: 22px; position: relative; }
.prose ul > li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 2px; background: var(--gold); }
.prose ol { counter-reset: li; }
.prose ol > li { counter-increment: li; padding-left: 28px; }
.prose ol > li::before {
  content: counter(li) "."; position: absolute; left: 0; top: 0;
  font-size: .8rem; font-weight: 700; color: var(--gold-ink); font-variant-numeric: tabular-nums;
}
.prose li strong { color: var(--navy); }

/* ---------- callouts ---------- */
.callout {
  margin-top: 22px; padding: 19px 22px; background: var(--card);
  border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--r); box-shadow: var(--lift);
}
.callout.warn { border-left-color: var(--navy); background: var(--paper); }
.callout h3 { margin-top: 0; font-size: 1rem; font-weight: 500; }
.callout p { font-size: .92rem; color: var(--ink); }
.callout p:first-child { margin-top: 0; }
.callout h3 + p { margin-top: 10px; }

/* refund-policy: the loudest panel on the page, on purpose */
.dispute {
  margin-top: 22px; padding: clamp(22px, 3.2vw, 32px); border-radius: var(--r);
  background: var(--navy); border: 1px solid var(--navy); border-top: 3px solid var(--gold); box-shadow: var(--lift);
  color: rgba(255, 255, 255, .86);
}
.dispute h3 { margin-top: 0; font-size: clamp(1.18rem, 2vw, 1.4rem); line-height: 1.25; color: #fff; }
.dispute p { font-size: .94rem; color: rgba(255, 255, 255, .86); }
.dispute strong { color: #fff; }
.dispute a:not(.btn) { color: var(--gold); text-decoration-color: var(--gold); }
.dispute .act { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 20px; }
.dispute .act span { font-size: .82rem; color: rgba(255, 255, 255, .72); }
.dispute .btn-out, .prose .dispute a.btn-out, .prose .dispute a.btn-out:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }
.dispute .btn-out:hover { border-color: var(--gold); background: transparent; }
.prose .dispute a.btn-lamp, .prose .dispute a.btn-lamp:hover { color: var(--navy); }

/* earnings-disclaimer */
.headline {
  margin-top: clamp(34px, 4vw, 50px); padding: clamp(28px, 3.6vw, 44px); border-radius: var(--r);
  background: var(--navy); border-top: 3px solid var(--gold); box-shadow: var(--lift); max-width: 44em;
}
.headline p { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.3; color: #fff; }
.headline p + p { margin-top: 16px; font-family: var(--sans); font-size: .95rem; line-height: 1.7; color: rgba(255, 255, 255, .8); }
.headline + .prose { margin-top: clamp(34px, 4vw, 52px); }
.qa { margin-top: 22px; display: grid; gap: 14px; }
.qa div { padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--r); }
.qa dt { font-family: var(--serif); font-style: italic; font-size: 1.06rem; color: var(--navy); }
.qa dd { margin-top: 8px; font-size: .92rem; color: var(--ink); }
.qa dd b { color: var(--navy); font-weight: 700; }
.endcta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.endcta .btn { flex: 1 1 auto; min-width: min(100%, 220px); }
@media (min-width: 560px) { .endcta .btn { flex: 0 0 auto; min-width: 0; } }

/* ---------- tables (the scroller is width-constrained so a wide table never pushes the page sideways) ---------- */
.tbl { margin-top: 20px; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
table { width: 100%; min-width: 540px; border-collapse: collapse; }
caption { text-align: left; padding: 14px 18px 0; font-size: .78rem; color: var(--slate); }
th {
  text-align: left; font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); background: var(--navy);
  padding: 12px 18px; white-space: nowrap;
}
td { padding: 14px 18px; font-size: .88rem; color: var(--ink); border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: rgba(242, 240, 236, .5); }
td b { color: var(--navy); font-weight: 600; }
.scrollhint { margin-top: 8px; font-size: .74rem; color: var(--slate); }
@media (min-width: 720px) { .scrollhint { display: none; } }
.tbl.kv table { min-width: 0; }
.tbl.kv td:first-child { width: 40%; }

/* ---------- footer ---------- */
footer.site { flex: none; background: var(--navy-deep); color: rgba(255, 255, 255, .72); border-top: 1px solid var(--line-light); padding: 54px 0 36px; }
.fgrid { display: grid; gap: 30px; }
@media (min-width: 820px) { .fgrid { grid-template-columns: 1.7fr 1fr 1fr; gap: 44px; } }
footer.site h2 { font-family: var(--sans); font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
footer.site ul { list-style: none; display: grid; gap: 10px; }
footer.site a { text-decoration: none; color: rgba(255, 255, 255, .8); font-size: .85rem; transition: color .22s; }
footer.site a:hover, footer.site a[aria-current="page"] { color: var(--gold); }
footer.site .blurb { font-size: .85rem; color: rgba(255, 255, 255, .72); max-width: 34em; margin-top: 12px; }
.flegal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-light); display: grid; gap: 12px; }
.flegal p { font-size: .76rem; line-height: 1.8; color: rgba(255, 255, 255, .68); }
.flegal .tdsw { color: #fff; font-size: .82rem; font-weight: 600; }

/* ---------- 404 ---------- */
main > .wrap > .code { margin-top: 0; }
.code { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(4.6rem, 17vw, 9rem); line-height: .9; letter-spacing: -.03em; color: var(--navy); }
.code::after { content: ''; display: block; width: 68px; height: 3px; background: var(--gold); margin-top: 22px; }
.p404 h1 { margin-top: 24px; font-size: clamp(1.85rem, 4.6vw, 2.9rem); line-height: 1.12; max-width: 16em; }
.p404 .lede { margin-top: 18px; font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.7; color: var(--slate); max-width: 40em; }
.cards { display: grid; gap: 16px; margin-top: clamp(36px, 4.5vw, 52px); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  padding: 26px 24px; background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--gold);
  border-radius: var(--r); box-shadow: var(--lift); transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--navy); }
.card .k { font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.card h2 { margin-top: 11px; font-size: 1.2rem; line-height: 1.25; }
.card p { margin-top: 9px; font-size: .88rem; color: var(--slate); flex: 1; }
.card p strong { color: var(--navy); }
.card .go { margin-top: 18px; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); overflow-wrap: anywhere; }
.card:hover .go { color: var(--gold-ink); }
.card .free {
  display: inline-block; margin-left: 8px; background: var(--gold); color: var(--navy);
  font-family: var(--sans); font-size: .56rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--r); vertical-align: .16em;
}
.helper { margin-top: clamp(32px, 4vw, 46px); padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--r); max-width: 52em; }
.helper p { font-size: .92rem; color: var(--ink); }
.helper p + p { margin-top: 10px; }
.helper strong { color: var(--navy); }
.helper a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.helper a:hover { text-decoration-color: var(--navy); }
.legalrow { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; }
.legalrow a { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); text-decoration: none; }
.legalrow a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .001s !important; animation: none !important; }
}
