/* Shared layout for About, Privacy, Terms and Sitemap. Matches the guide on index.html. */
:root {
  --blue: #0B3F78;
  --blue-2: #0E5EA8;
  --blue-3: #EAF3FB;
  --blue-4: #F6FAFE;
  --red: #E30622;
  --red-hover: #C9051D;
  --text: #3A3A3A;
  --muted: #69737D;
  --border: #DCE4EC;
  --line: #EAEFF4;
  --white: #FFFFFF;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Source Sans 3", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: #111;
  color: #fff;
  padding: 12px 16px;
}
.skip-link:focus { left: 14px; top: 14px; }
:focus-visible { outline: 3px solid rgba(14, 94, 168, .30); outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.brand-name { font-size: 1.05rem; line-height: 1.1; }
.brand-tag {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  text-decoration: none;
  color: var(--blue);
  font-weight: 700;
  font-size: .95rem;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--blue-2); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.header-start {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(227, 6, 34, .16);
}
.header-start:hover { background: var(--red-hover); }
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  color: var(--blue);
  font-size: 1.2rem;
}
.mobile-menu {
  display: none;
  padding: 0 20px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: var(--blue);
  font-weight: 750;
}

h1, h2, h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-family: "Source Serif 4", Georgia, serif;
  letter-spacing: -.025em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-top: 1.6rem; }
h3 { font-size: 1.15rem; font-family: "Source Sans 3", Arial, sans-serif; }
p { margin: 0 0 16px; }
.eyebrow {
  color: var(--blue-2);
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .13em;
  margin-bottom: 9px;
}
.lead { max-width: 740px; font-size: 1.16rem; line-height: 1.55; }
.page-hero { padding: 56px 0 8px; }
.page-body { max-width: 780px; padding: 12px 0 72px; }
.page-body a { color: var(--blue-2); font-weight: 700; }
.page-body ul, .page-body ol { margin: 0 0 16px; padding-left: 1.25rem; }
.page-body li { margin: 8px 0; }
.note {
  background: var(--blue-4);
  border-left: 4px solid var(--blue-2);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  margin: 18px 0 8px;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: none;
  padding-bottom: 72px;
}
.sitemap-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  background: #fff;
}
.sitemap-card a {
  display: block;
  margin: 8px 0;
  color: var(--blue-2);
  font-weight: 700;
  text-decoration: none;
}
.sitemap-card a:hover { text-decoration: underline; }
.sitemap-card p { color: var(--muted); font-size: .92rem; }

footer {
  padding: 56px 0 28px;
  background: #0C2F55;
  color: #EAF1F7;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.footer-brand img {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 14px;
}
.footer-brand p { color: #C1D0DC; max-width: 310px; }
.footer-note { font-size: .85rem; color: #C1D0DC; }
.footer-col h3 {
  color: #D8E6F1;
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
  font-family: "Source Sans 3", Arial, sans-serif;
}
.footer-col a {
  display: block;
  text-decoration: none;
  color: #F5F8FA;
  margin: 8px 0;
  font-size: .92rem;
  font-weight: 500;
}
.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: #B8C8D5;
  font-size: .82rem;
}
.footer-bottom a { color: #EAF1F7; }

@media (max-width: 960px) {
  .nav-links, .nav-actions .header-start { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .footer-grid, .sitemap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 64px; }
  .page-hero { padding-top: 36px; }
  .footer-grid, .sitemap-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
