:root {
  --ink: #182430;
  --ink-soft: #4b5a68;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #e2e1da;
  --deep: #1f3a3d;
  --deep-2: #16292c;
  --amber: #c8801f;
  --amber-soft: #f4e3c9;
  --moss: #5c7a63;
  --radius-lg: 18px;
  --radius-sm: 8px;
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Nunito', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 800;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

a {
  color: var(--deep);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  max-width: 100%;
  display: block;
}

section {
  padding: 5rem 1.5rem;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .02em;
  color: var(--deep);
  background: var(--amber-soft);
  padding: .25rem .7rem;
  border-radius: 99px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--deep);
  color: #fff;
}

.btn-primary:hover {
  background: var(--deep-2);
}

.btn-secondary {
  background: transparent;
  color: var(--deep);
  border-color: var(--deep);
}

.btn-secondary:hover {
  background: var(--panel);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .94rem;
}

.nav-links a:hover {
  color: var(--deep);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: .25s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.mobile-menu a {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.mobile-menu.open {
  display: flex;
}

@media (max-width:860px) {
  .nav-links {
    display: none;
  }

  .nav-cta .btn-primary {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

.section-head {
  max-width: 92ch;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

/* Table (reused for effective-date summaries) */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--panel);
}

th,
td {
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}

th {
  background: var(--paper);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

/* Final CTA (reused on legal pages) */
.final-cta {
  background: var(--deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3.2rem 2.5rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.final-cta::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 128, 31, .3), transparent 70%);
  pointer-events: none;
}

.final-cta h2 {
  color: #fff;
  max-width: 28ch;
}

.final-cta p {
  color: #dbe5e3;
  max-width: 96ch;
}

.final-cta .btn-primary {
  background: #fff;
  color: var(--deep);
}

.final-cta .btn-primary:hover {
  background: var(--amber-soft);
}

/* Footer */
footer {
  background: var(--deep-2);
  color: #c9d3d1;
  padding: 3.5rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width:760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

footer h4 {
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: .85rem;
  letter-spacing: .03em;
  margin-bottom: 1rem;
}

footer a {
  color: #c9d3d1;
  text-decoration: none;
  font-size: .88rem;
}

footer a:hover {
  color: #fff;
}

footer li {
  margin-bottom: .6rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 1.5rem;
  font-size: .82rem;
  color: #9fb0ad;
}

.footer-disclosure {
  font-size: .8rem;
  color: #9fb0ad;
  max-width: 80ch;
  margin-bottom: 1rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: #fff;
  padding: .6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ============================= */
/* Legal page additions          */
/* ============================= */

.legal-hero {
  padding: 3.4rem 1.5rem 2.6rem;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-size: clamp(2rem, 4.2vw, 2.6rem);
  max-width: 26ch;
}

.legal-updated {
  font-size: .9rem;
  color: var(--ink-soft);
}

.legal-updated b {
  color: var(--deep);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width:900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
}

.legal-toc {
  position: sticky;
  top: 5.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.3rem;
}

@media (max-width:900px) {
  .legal-toc {
    position: static;
  }
}

.legal-toc h4 {
  font-size: .82rem;
  letter-spacing: .01em;
  color: var(--ink-soft);
  margin-bottom: .8rem;
  font-weight: 700;
}

.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: legal-toc;
}

.legal-toc li {
  counter-increment: legal-toc;
  margin-bottom: .55rem;
}

.legal-toc a {
  display: flex;
  gap: .55rem;
  font-size: .88rem;
  text-decoration: none;
  color: var(--ink-soft);
  line-height: 1.4;
}

.legal-toc a::before {
  content: counter(legal-toc);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--deep);
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .05rem;
}

.legal-toc a:hover {
  color: var(--deep);
}

.legal-content {
  max-width: 74ch;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.legal-content section:first-of-type h2,
.legal-content > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 1.4rem;
}

.legal-content p,
.legal-content li {
  font-size: .98rem;
  color: var(--ink-soft);
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1.2rem;
  padding-left: 1.3rem;
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  margin-bottom: .5rem;
}

.legal-content strong {
  color: var(--ink);
}

.legal-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.5rem;
  margin: 1.4rem 0;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-callout {
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0;
  font-size: .92rem;
}

.legal-callout p {
  color: var(--ink);
  margin: 0;
}

.legal-contact {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.6rem;
  background: var(--panel);
}

.legal-contact p {
  margin: 0 0 .4rem;
  font-size: .94rem;
}

.legal-crosslinks {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1rem;
}

.legal-crosslinks a {
  padding: .4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 600;
  background: var(--panel);
  text-decoration: none;
  color: var(--deep);
}

.legal-crosslinks a:hover {
  background: var(--amber-soft);
}