/* Shared styles for privacy, terms, about, and the restyled utility pages.
   Same palette and fonts as the home page (Sunrise Navy). */
@font-face {
  font-family: "Libre Baskerville";
  src: url("/fonts/LibreBaskerville.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Ovo";
  src: url("/fonts/Ovo.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  --navy: #19222D;
  --navy2: #232f3d;
  --amber: #D9822B;
  --amber-d: #b96a1c;
  --body: #404040;
  --blush: #CBBAB1;
  --cream: #FBF7F3;
  --white: #fff;
  --toc: 248px;
  --topH: 68px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topH) + 18px); }
body {
  margin: 0;
  font-family: "Ovo", Georgia, serif;
  color: var(--body);
  background: var(--white);
  font-size: 18px;
  line-height: 1.65;
}
h1, h2, h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
}
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 22px;
  transition: transform .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: var(--amber-d); }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); }
.pill {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 13px;
}
.sample-link {
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
  white-space: nowrap;
}
.sample-link:hover { color: var(--amber); }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topH);
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 48px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand .mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--amber);
  display: grid;
  place-items: center;
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.brand .name { font-family: "Libre Baskerville", serif; font-weight: 700; font-size: 17px; }
.top-links { display: flex; align-items: center; gap: 22px; }

.page-hero {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 46px clamp(22px, 5vw, 64px) 50px;
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--amber);
  right: -110px;
  top: -150px;
  opacity: .95;
}
.page-hero .inner { position: relative; max-width: 1180px; margin: 0 auto; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 4.4vw, 54px); margin-top: 16px; }
.page-hero .lead { font-size: 22px; color: #e9e4df; margin-top: 14px; max-width: 40rem; }
.page-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.page-hero .btn-outline { border-color: #fff; color: #fff; }
.dates { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 18px; }
.dates .updated {
  background: #fff;
  color: var(--navy);
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-size: 16px;
  border-radius: 999px;
  padding: 7px 18px 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.dates .updated::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.dates .eff { color: var(--blush); font-size: 16px; }

.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px clamp(22px, 5vw, 64px) 80px;
  display: grid;
  grid-template-columns: var(--toc) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--topH) + 22px);
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 20px 14px 16px;
  max-height: calc(100vh - var(--topH) - 44px);
  overflow: auto;
}
.toc .k, .toc-m summary {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  margin: 0 10px 10px;
}
.toc ol, .toc-m ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 10px;
  border-radius: 9px;
  text-decoration: none;
  color: #d9dee5;
  font-size: 15.5px;
  line-height: 1.3;
}
.toc a .dot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid #6d7a8a; flex: none; }
.toc a.toc-sample:hover { background: var(--cream); color: var(--navy); }
.toc a:not(.toc-sample):hover, .toc a.active { background: var(--navy2); color: #fff; }
.toc a.active .dot {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(217, 130, 43, .25);
}
.toc a.toc-sample {
  display: block;
  margin: 14px 4px 0;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid var(--amber);
}
.toc-m { display: none; }
.doc { max-width: 68ch; }
.doc section { padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid #eee4dc; }
.doc section:last-of-type { border-bottom: 0; }
.doc h2 { font-size: 24px; margin-bottom: 12px; position: relative; }
.doc h2 .anchor {
  position: absolute;
  left: -1.1em;
  color: var(--amber);
  text-decoration: none;
  opacity: 0;
  transition: opacity .15s;
  font-weight: 400;
}
.doc h2:hover .anchor, .doc h2 .anchor:focus { opacity: 1; }
.doc h3 { font-size: 17px; margin: 18px 0 6px; color: var(--navy); }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: 12px; }
.doc ul { margin: 8px 0 0; padding-left: 0; list-style: none; }
.doc li { position: relative; padding-left: 22px; margin: 7px 0; }
.doc li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}
.doc a { color: var(--amber-d); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.doc strong { color: var(--navy); }
.back { font-size: 15px; color: #888; }
.back a { color: var(--navy); }

.about-hero { padding-bottom: 56px; }
.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about-hero .lead { font-size: 22px; color: #e9e4df; margin-top: 14px; }
.hero-photo {
  justify-self: end;
  width: min(320px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 7px solid var(--amber);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-main { max-width: 1080px; margin: 0 auto; padding: 56px clamp(22px, 5vw, 64px) 80px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fact { background: var(--cream); border-radius: 18px; padding: 22px 24px; border-top: 5px solid var(--amber); }
.fact h3 { font-size: 19px; margin-bottom: 6px; }
.fact p { font-size: 16.5px; }
.behind { margin-top: 56px; }
.behind h2, .reach h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 18px; }
.card { background: var(--navy); color: #e3e6ea; border-radius: 20px; padding: 30px 34px; max-width: 760px; }
.card h3 { color: #fff; font-size: 21px; margin-bottom: 10px; }
.reach {
  margin-top: 56px;
  background: var(--amber);
  color: #fff;
  border-radius: 22px;
  padding: 34px 38px;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.reach h2 { color: #fff; margin-bottom: 8px; }
.reach a:not(.btn) { color: #fff; font-weight: 700; }
.reach .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.reach .btn-amber { background: var(--navy); }
.reach .btn-outline { border-color: #fff; color: #fff; }

footer {
  background: var(--navy);
  color: #9aa6b4;
  padding: 28px clamp(22px, 5vw, 64px);
  font-size: 15px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}
footer a { color: #d9dee5; text-decoration: none; }
footer a[aria-current] { color: var(--amber); }
footer .sp { margin-left: auto; }

@media (max-width: 860px) {
  :root { --topH: 56px; }
  body { font-size: 17px; }
  .brand .mark { width: 32px; height: 32px; font-size: 12px; }
  .brand .name { font-size: 15px; }
  .top-links { gap: 12px; }
  .top-links .sample-link { font-size: 13px; }
  .top-links .btn { padding: 8px 13px; font-size: 13px; }
  .page-hero { padding: 30px 22px 34px; }
  .layout { grid-template-columns: 1fr; gap: 0; padding: 0 22px 60px; }
  .toc { display: none; }
  .toc-m {
    display: block;
    position: sticky;
    top: var(--topH);
    z-index: 10;
    margin: 0 -22px 26px;
    background: var(--navy);
    color: #fff;
    border-top: 1px solid #2e3b4b;
  }
  .toc-m summary {
    cursor: pointer;
    margin: 0;
    padding: 12px 22px;
    list-style: none;
    display: flex;
    justify-content: space-between;
  }
  .toc-m summary::after { content: "▾"; color: #fff; }
  .toc-m[open] summary::after { content: "▴"; }
  .toc-m ol { padding: 0 12px 12px; max-height: 60vh; overflow: auto; }
  .toc-m a {
    display: block;
    padding: 8px 10px;
    color: #d9dee5;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15.5px;
  }
  .doc h2 { font-size: 21px; }
  .doc h2 .anchor { display: none; }
  .two { grid-template-columns: 1fr; gap: 26px; }
  .hero-photo { justify-self: start; width: 180px; }
  .facts { grid-template-columns: 1fr; }
  .reach { padding: 26px; }
  footer .sp { margin-left: 0; }
}
@media (max-width: 420px) {
  .brand .name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
