/* Audit POV — shared styles for legal / notice pages.
   Tokens mirror index.html so the legal pages read as part of the same site. */

:root {
  --navy: #0B2545;
  --navy-2: #12325a;
  --ink: #1b2430;
  --slate: #55636f;
  --gold: #C89B3C;
  --gold-soft: #d9b45a;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --line: #e5e9ef;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(20, 40, 63, 0.08);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 0; font-weight: 700; z-index: 100;
}
.skip:focus { left: 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 12px;
}

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--navy);
  letter-spacing: -0.02em; text-decoration: none;
}
.brand .logo { height: 40px; width: auto; display: block; }
.navlinks { display: flex; gap: 26px; align-items: center; }
.navlinks a { color: var(--slate); font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: color .15s; }
.navlinks a:hover { color: var(--navy); }
.navlinks a[aria-current="page"] { color: var(--navy); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 0.95rem;
  padding: 9px 18px; border-radius: 999px; border: none; cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(20,40,63,0.22); }

/* ---------- Page masthead ---------- */
.doc-head {
  background: linear-gradient(180deg, #fbfcfe 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--line);
  padding: 54px 0 44px;
}
.doc-head h1 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.doc-head .dates {
  margin: 16px 0 0;
  font-size: 0.88rem;
  color: var(--slate);
  font-weight: 600;
}
.doc-head .intro { margin: 18px 0 0; max-width: 62ch; color: var(--slate); font-size: 1.02rem; }

/* ---------- Document layout ---------- */
.doc-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 48px 0 72px;
}

.toc { position: sticky; top: 92px; }
.toc b {
  display: block; color: var(--navy); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: block; padding: 6px 0 6px 26px; position: relative;
  color: var(--slate); font-size: 0.9rem; text-decoration: none;
  border-left: 2px solid var(--line); padding-left: 14px; margin-left: 4px;
  transition: color .15s, border-color .15s;
}
.toc a:hover { color: var(--navy); border-left-color: var(--gold); }

.doc { max-width: 74ch; }
.doc h2 {
  margin: 44px 0 12px;
  font-size: 1.32rem;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  scroll-margin-top: 92px;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 {
  margin: 28px 0 8px;
  font-size: 1.02rem;
  color: var(--navy);
  font-weight: 700;
}
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 18px; padding-left: 22px; }
.doc li { margin-bottom: 10px; }
.doc li:last-child { margin-bottom: 0; }
.doc a { color: var(--navy-2); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { color: var(--gold); }
.doc strong { color: var(--navy); }
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--navy);
  white-space: nowrap;
}
.doc hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

.callout {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 0 0 24px;
}
.callout p:last-child { margin-bottom: 0; }

.contact-block {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 8px;
}
.contact-block p { margin: 0 0 6px; }
.contact-block p:last-child { margin-bottom: 0; }
.contact-block .org { color: var(--navy); font-weight: 800; }

.related {
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line);
}
.related b { display: block; color: var(--navy); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--navy); font-weight: 600;
  font-size: 0.9rem; text-decoration: none; background: #fff;
  transition: border-color .15s, box-shadow .2s;
}
.related-links a:hover { border-color: var(--navy); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: #cdd6e0; padding: 54px 0 30px; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
footer .brand { color: #fff; margin-bottom: 12px; }
footer .brand .logo { height: 40px; }
footer p { font-size: 0.9rem; max-width: 40ch; color: #aab7c6; }
.foot-addr { margin-top: 14px; font-size: 0.85rem; line-height: 1.55; color: #8b9aab; font-style: normal; }
.foot-links { display: flex; gap: 40px; flex-wrap: wrap; }
.foot-col b { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 12px; }
.foot-col a { display: block; color: #aab7c6; font-size: 0.92rem; padding: 4px 0; text-decoration: none; }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 22px;
  font-size: 0.82rem; color: #8b9aab; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
footer :focus-visible { outline-color: var(--gold-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 32px; padding: 32px 0 56px; }
  .toc {
    position: static; background: var(--bg-alt); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px 20px;
  }
  .toc a { border-left: none; padding-left: 0; margin-left: 0; }
  .navlinks { display: none; }
  .doc { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .btn:hover { transform: none; }
}

@media print {
  header, footer, .toc, .related, .skip { display: none; }
  .doc-layout { display: block; padding: 0; }
  .doc-head { background: none; border: none; padding: 0 0 20px; }
  body { color: #000; }
  .doc a { color: #000; }
}
