/* Glenn Works, LLC — shared styles for legal pages (privacy, terms). Keep tokens in sync with index.html. */
:root {
  --navy: #0E1E3A;
  --navy-deep: #08142A;
  --white: #FFFFFF;
  --paper: #F7F8FB;
  --fog: #AEBBD3;
  --ink-soft: #4A5875;
  --rule: rgba(14, 30, 58, 0.14);
  --rule-light: rgba(255, 255, 255, 0.16);
  --note: #EEF2F9;
  --ice: #D6E4FF;
  --serif-display: "Playfair Display", Georgia, serif;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }

/* ---------- Header ---------- */
.masthead {
  background: var(--navy);
  color: var(--white);
}
.masthead-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px var(--gutter) clamp(48px, 7vw, 84px);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 15px;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: #E3E9F4;
}
.brand:hover { color: var(--white); }
.topbar nav { display: flex; gap: 22px; }
.topbar nav a { color: var(--fog); text-decoration: none; transition: color .2s; }
.topbar nav a:hover, .topbar nav a[aria-current] { color: var(--white); }

.masthead h1 {
  margin: clamp(40px, 7vw, 76px) 0 0;
  font-family: var(--serif-display);
  font-weight: 800;
  font-size: clamp(38px, 6.5vw, 78px);
  line-height: 1.0;
  letter-spacing: -0.015em;
}
.masthead .meta {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 19px);
  color: #E3E9F4;
}
.masthead .meta span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--fog);
  font-style: normal;
}

/* ---------- Layout ---------- */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(80px, 10vw, 128px);
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.toc {
  position: sticky;
  top: 24px;
  font-size: 14.5px;
  line-height: 1.5;
}
.toc h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; padding: 6px 0; border-top: 1px solid var(--rule); }
.toc li:last-child { border-bottom: 1px solid var(--rule); }
.toc a { text-decoration: none; color: var(--ink-soft); display: block; }
.toc a:hover { color: var(--navy); }
.toc a::before { content: counter(toc) ". "; counter-increment: toc; color: var(--fog); }
.toc ol { counter-reset: toc; }

article { max-width: 72ch; min-width: 0; }

/* Plain-language summary box */
.summary {
  background: var(--paper);
  border-left: 3px solid var(--navy);
  padding: 22px 26px;
  margin: 0 0 clamp(40px, 5vw, 56px);
}
.summary h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
}
.summary ul { margin: 0; padding-left: 20px; }
.summary li { margin: 6px 0; }
.summary p { margin: 10px 0 0; font-size: 15px; color: var(--ink-soft); }

/* Sections */
article section { padding-top: 10px; margin-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--rule); }
article section:first-of-type { border-top: 0; margin-top: 0; }
article h2 {
  margin: 18px 0 14px;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(26px, 2.8vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  scroll-margin-top: 24px;
}
article h2 .num {
  display: inline-block;
  min-width: 1.6em;
  color: var(--fog);
  font-family: var(--serif);
  font-size: 0.75em;
  vertical-align: 0.1em;
}
article h3 {
  margin: 26px 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
}
article p { margin: 0 0 1em; color: #22304F; }
article ul, article ol { margin: 0 0 1em; padding-left: 22px; color: #22304F; }
article li { margin: 5px 0; }
article li::marker { color: var(--fog); }
article strong { font-weight: 600; color: var(--navy); }
article em { font-family: var(--serif); }

.callout {
  background: var(--note);
  padding: 16px 20px;
  margin: 18px 0;
  border-radius: 2px;
  font-size: 15.5px;
}
.callout p:last-child { margin-bottom: 0; }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 15px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.tbl th { font-family: var(--serif); font-weight: 400; color: var(--ink-soft); font-size: 14px; letter-spacing: 0.04em; }
.tbl td { color: #22304F; }
.tbl-wrap { overflow-x: auto; }

address { font-style: normal; }
.caps { text-transform: none; }
.upper { text-transform: uppercase; letter-spacing: 0.01em; font-size: 0.95em; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: clamp(56px, 8vw, 96px) var(--gutter) 36px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.hello {
  margin: 0 0 18px;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.05;
}
.email {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 24px);
  color: #E3E9F4;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 3px;
  transition: border-color .2s, color .2s;
}
.email:hover { color: var(--white); border-color: var(--white); }
.legal {
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--rule-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 14px;
  color: var(--fog);
}
.legal span:first-child { font-family: var(--serif); letter-spacing: 0.02em; }
.legal nav a { color: var(--fog); text-decoration: none; margin-left: 22px; transition: color .2s; }
.legal nav a:first-child { margin-left: 0; }
.legal nav a:hover { color: var(--white); }

@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; }
  .toc ol { columns: 2; column-gap: 28px; }
  .toc li { break-inside: avoid; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .toc ol { columns: 1; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  }
@media print {
  .masthead { background: none; color: var(--navy); }
  .masthead .meta, .brand { color: var(--navy); }
  .toc, footer, .topbar nav { display: none; }
  .page { display: block; padding: 0; }
  article { max-width: none; }
}
