/* Shared layout for privacy.html and terms.html */
:root {
  --brand: #1a5c93;
  --brand-dark: #12456f;
  --brand-deep: #0d3557;
  --brand-light: #4c97ce;
  --brand-tint: #eaf3fa;
  --brand-tint-2: #d7e8f5;
  --accent: #8cbf3f;
  --accent-dark: #6d9b2a;
  --accent-tint: #f3f8e8;
  --navy: #06172a;
  --ink: #0a1723;
  --ink-2: #2c4256;
  --muted: #61798c;
  --muted-2: #8399a9;
  --line: #e3eaf0;
  --line-2: #eef3f7;
  --surface: #ffffff;
  --surface-2: #f4f8fb;
  --on-dark: #eaf1f8;
  --on-dark-muted: #9db3c6;
  --r-xs: 8px;
  --r-sm: 10px;
  --r: 14px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;
  --sh-sm: 0 2px 6px -2px rgba(10, 23, 35, .08), 0 6px 18px -8px rgba(10, 23, 35, .1);
  --sh-md: 0 10px 30px -16px rgba(10, 23, 35, .28);
  --sh-glow: 0 12px 30px -12px rgba(26, 92, 147, .6);
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --nav-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
body {
  margin: 0;
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.15;
  margin: 0;
}
p { margin: 0; }
::selection { background: var(--brand-tint-2); color: var(--brand-deep); }
:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: -120px;
  left: 1rem;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: .75rem 1.1rem;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: min(100%, calc(var(--container) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.ico { width: 18px; height: 18px; display: block; flex: none; }

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}
.progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-light), var(--accent));
}

.topbar {
  background: var(--navy);
  color: var(--on-dark-muted);
  font-size: .8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__item .ico { width: 14px; height: 14px; color: var(--brand-light); }
.topbar a:hover { color: #fff; }
@media (max-width: 720px) {
  .topbar__item--place { display: none; }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-2);
}
.nav.is-stuck { box-shadow: 0 8px 24px -18px rgba(10, 23, 35, .45); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; }
.brand img { height: 46px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
}
.brand__sub {
  margin-top: 3px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.nav__links { display: flex; align-items: center; gap: .15rem; }
.nav__link {
  position: relative;
  padding: .5rem .75rem;
  color: var(--ink-2);
  font-weight: 500;
  font-size: .95rem;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: .2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--brand); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--brand); font-weight: 650; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.2rem;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, var(--brand-light) -30%, var(--brand) 55%, var(--brand-dark));
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: var(--sh-glow), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); color: #fff; }
.btn .ico { width: 16px; height: 16px; }
.nav__toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav__toggle .bars { width: 18px; height: 12px; position: relative; }
.nav__toggle .bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s ease;
}
.nav__toggle .bars span:nth-child(1) { top: 0; }
.nav__toggle .bars span:nth-child(2) { top: 5px; width: 70%; }
.nav__toggle .bars span:nth-child(3) { top: 10px; }
body.nav-open .nav__toggle .bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav__toggle .bars span:nth-child(2) { opacity: 0; }
body.nav-open .nav__toggle .bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
}
@media (max-width: 420px) { .brand__text { display: none; } }

.nav__end { display: flex; align-items: center; gap: .6rem; }
@media (max-width: 640px) { .nav__end .btn { display: none; } }
.summary__card a { color: var(--brand-dark); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.sheet a, .facts dd, .contact-panel a, .footer a { overflow-wrap: anywhere; }

.drawer { position: fixed; inset: 0; z-index: 140; visibility: hidden; pointer-events: none; }
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 23, 42, .5);
  opacity: 0;
  transition: opacity .3s ease;
}
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 88vw);
  background: #fff;
  padding: 1.4rem 1.4rem 2rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
}
body.nav-open .drawer { visibility: visible; pointer-events: auto; }
body.nav-open .drawer__scrim { opacity: 1; }
body.nav-open .drawer__panel { transform: translateX(0); }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.drawer__close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.drawer__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .95rem .1rem;
  border-bottom: 1px solid var(--line-2);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 650;
  color: var(--ink);
}
.drawer__link:hover { color: var(--brand); }
.drawer__actions { margin-top: 1.3rem; }
.drawer__contact { margin-top: auto; padding-top: 1.5rem; display: grid; gap: .7rem; font-size: .92rem; }
.drawer__contact a { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-2); }
.drawer__contact .ico { color: var(--brand); }

.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  color: var(--on-dark-muted);
  overflow: hidden;
  padding: clamp(3.2rem, 7vw, 5.4rem) 0 clamp(5.2rem, 8vw, 7rem);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 68% 80% at 100% -10%, rgba(76, 151, 206, .38), transparent 58%),
    radial-gradient(ellipse 42% 50% at -8% 110%, rgba(140, 191, 63, .16), transparent 62%),
    radial-gradient(circle, rgba(196, 220, 236, .16) 1px, transparent 1.4px);
  background-size: auto, auto, 26px 26px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8fc4ea;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -.035em;
  margin-top: .85rem;
}
.page-hero h1::after {
  content: "";
  display: block;
  width: 74px;
  height: 4px;
  margin-top: 1.05rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--brand-light));
}
.page-hero .lead {
  max-width: 40rem;
  margin-top: 1.15rem;
  color: #c5d6e4;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
}
.meta-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.meta-row li {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d7e6f2;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  border-radius: var(--r-pill);
  padding: .42rem .75rem;
}

.summary { position: relative; z-index: 2; margin-top: -3.1rem; }
.summary__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.summary__card {
  background: #fff;
  border: 1px solid rgba(227, 234, 240, .9);
  border-radius: var(--r-md);
  padding: 1.3rem 1.25rem 1.35rem;
  box-shadow: var(--sh-md);
}
.summary__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
  margin-bottom: .85rem;
}
.summary__card h2 { font-size: 1.05rem; margin-bottom: .35rem; }
.summary__card p { color: var(--muted); font-size: .92rem; line-height: 1.6; }
@media (max-width: 860px) { .summary__grid { grid-template-columns: 1fr; } }

.doc {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.75rem);
  align-items: start;
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
}
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 1.1rem);
  max-height: calc(100vh - var(--nav-h) - 2rem);
  overflow: auto;
  padding: .2rem .35rem .2rem 0;
}
.toc__label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 .55rem .55rem;
}
.toc a {
  display: block;
  padding: .42rem .7rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.35;
  border-left: 2px solid transparent;
}
.toc a:hover { color: var(--brand); background: rgba(255, 255, 255, .7); }
.toc a.is-active {
  color: var(--brand-deep);
  background: #fff;
  border-left-color: var(--accent);
  font-weight: 600;
  box-shadow: var(--sh-sm);
}
.sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: clamp(1.35rem, 3vw, 2.8rem);
}
.sheet section + section {
  margin-top: 2.35rem;
  padding-top: 2.35rem;
  border-top: 1px solid var(--line-2);
}
.sheet h2 {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  margin-bottom: .8rem;
}
.num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--brand);
  flex: none;
}
.sheet p + p, .sheet ul, .sheet ol, .facts, .callout { margin-top: .9rem; }
.sheet a { color: var(--brand-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sheet a:hover { color: var(--brand); }
.sheet ul, .sheet ol { display: grid; gap: .5rem; }
.sheet li { position: relative; padding-left: 1.35rem; }
.sheet ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.sheet ol { counter-reset: step; }
.sheet ol li { counter-increment: step; padding-left: 1.7rem; }
.sheet ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .12em;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .75rem;
  font-weight: 600;
  color: var(--brand);
}
.sheet strong { color: var(--ink); font-weight: 650; }

.callout {
  display: grid;
  gap: .35rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--r);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .2)),
    var(--accent-tint);
  border: 1px solid rgba(140, 191, 63, .35);
}
.callout h2 { font-size: 1.12rem; margin: 0; }
.callout p { color: var(--ink-2); }

.facts {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: .45rem 1rem;
  padding: 1rem 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.facts dt {
  margin: 0;
  padding-top: .15rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd { margin: 0; color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; gap: .1rem .5rem; }
  .facts dd { margin-bottom: .55rem; }
}

.contact-panel {
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border-radius: var(--r-lg);
  color: #c5d5e4;
  background:
    radial-gradient(520px 240px at 100% 0%, rgba(140, 191, 63, .18), transparent 60%),
    linear-gradient(145deg, var(--navy), var(--brand-deep) 68%, var(--brand-dark));
  box-shadow: var(--sh-md);
}
.contact-panel .eyebrow { color: #8fc4ea; }
.contact-panel h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.15rem); margin-top: .7rem; }
.contact-panel .lead { margin-top: .8rem; max-width: 36rem; color: #c5d5e4; }
.contact-panel address { font-style: normal; display: grid; gap: .35rem; align-content: end; }
.contact-panel a { color: #fff; font-weight: 700; }
.contact-panel .mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .78rem;
  letter-spacing: .04em;
  color: #9db3c6;
}
.page-end { padding-bottom: clamp(3rem, 6vw, 4.5rem); }

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; overflow: visible; }
  .toc nav { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; }
  .toc a { white-space: nowrap; border-left: 0; background: #fff; border: 1px solid var(--line); }
  .contact-panel { grid-template-columns: 1fr; }
}

.footer {
  background: var(--navy);
  color: var(--on-dark-muted);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  font-size: .92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 2.2rem;
}
.footer__brand { display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer__brand img { height: 48px; width: auto; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: #7f9bb2; }
.footer__about { max-width: 28rem; font-size: .9rem; line-height: 1.65; }
.footer__socials { display: flex; gap: .55rem; margin-top: 1.1rem; }
.footer__socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--on-dark);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}
.footer__socials a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.footer h2 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer__links, .footer__contact { display: grid; gap: .65rem; font-size: .9rem; }
.footer__links a:hover, .footer__contact a:hover { color: #fff; }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer__contact .ico { width: 16px; height: 16px; color: var(--brand-light); margin-top: .2rem; }
.footer__disclaimer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 1rem 0 1.2rem;
  color: #6d879c;
  font-size: .78rem;
  line-height: 1.65;
  max-width: 68rem;
}
.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.15rem 0 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem 1.2rem;
  color: #7f9bb2;
  font-size: .78rem;
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: .9rem 1.2rem; }
.footer__legal-links a:hover, .footer__legal a[aria-current="page"] { color: #fff; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .drawer__panel, .progress__bar { transition: none; }
}
@media print {
  .progress, .topbar, .nav, .drawer, .toc, .footer__socials, .btn { display: none !important; }
  body { background: #fff; }
  .page-hero { background: #fff; color: #000; padding: 0 0 1rem; }
  .page-hero h1, .page-hero .lead, .eyebrow { color: #000; }
  .summary { margin-top: 0; }
  .doc { display: block; }
  .sheet, .summary__card, .contact-panel { box-shadow: none; }
}
