:root {
  --forest: #183e34;
  --forest-2: #245347;
  --sage-soft: #dce4d6;
  --cream: #f7f3eb;
  --paper: #fffdf8;
  --ink: #26312d;
  --muted: #66706c;
  --gold: #b39457;
  --line: rgba(24, 62, 52, 0.16);
  --shadow: 0 24px 70px rgba(22, 50, 42, 0.11);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background-image: radial-gradient(rgba(24, 62, 52, 0.08) 0.75px, transparent 0.75px);
  background-size: 8px 8px;
}

a {
  color: var(--forest);
  text-underline-offset: 0.22rem;
}

a:focus-visible {
  outline: 3px solid rgba(179, 148, 87, 0.5);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  transform: translateY(-150%);
  border-radius: 0.7rem;
  color: white;
  background: var(--forest);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1040px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(24, 62, 52, 0.1);
  background: rgba(247, 243, 235, 0.93);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  display: block;
  width: 9.2rem;
  height: 3.8rem;
  object-fit: cover;
  object-position: center;
  border-radius: 0.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
}

.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.1rem;
  border: 1px solid var(--forest);
  border-radius: 999px;
  color: white;
  background: var(--forest);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--forest-2);
}

.legal-hero {
  padding: clamp(4rem, 8vw, 7rem) 0 2.5rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--forest-2);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--forest);
  font-family: var(--serif);
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  font-weight: 500;
}

.lead {
  max-width: 52rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.updated {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.84rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  align-items: start;
  gap: 2.5rem;
  padding-bottom: 5rem;
}

.legal-card {
  padding: clamp(1.4rem, 4vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.legal-card section + section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 500;
}

.legal-card h3 {
  margin: 1.7rem 0 0.55rem;
  font-size: 1.18rem;
}

.legal-card p,
.legal-card ul,
.legal-card ol {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.legal-card ul,
.legal-card ol {
  padding-left: 1.25rem;
}

.legal-card li + li {
  margin-top: 0.45rem;
}

.legal-card address {
  font-style: normal;
}

.notice {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 0.8rem 0.8rem 0;
  background: rgba(220, 228, 214, 0.58);
}

.notice strong {
  color: var(--forest);
}

.toc {
  position: sticky;
  top: 7rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(255, 253, 248, 0.82);
}

.toc p {
  margin: 0 0 0.65rem;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc ol,
.toc ul {
  margin: 0;
  padding-left: 1.2rem;
}

.toc li + li {
  margin-top: 0.45rem;
}

.toc a {
  font-size: 0.88rem;
  font-weight: 650;
}

.form-box {
  margin-top: 1rem;
  padding: 1.2rem;
  border: 1px dashed rgba(24, 62, 52, 0.35);
  border-radius: 1rem;
  background: #fff;
}

.form-box p {
  margin: 0.35rem 0;
}

footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
}

.footer-grid p {
  max-width: 39rem;
  margin: 0;
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem 1rem;
}

.footer-links a {
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
}

.privacy-notice {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  width: min(46rem, calc(100% - 2rem));
  padding: 1rem 1.15rem;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.2rem;
  color: #f9f6ef;
  background: rgba(24, 62, 52, 0.98);
  box-shadow: 0 22px 65px rgba(20, 42, 35, 0.3);
}

.privacy-notice[hidden] {
  display: none;
}

.privacy-notice__copy {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.privacy-notice__copy strong {
  display: block;
  margin-bottom: 0.12rem;
  color: white;
  font-family: var(--serif);
  font-size: 1.08rem;
}

.privacy-notice__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  white-space: nowrap;
}

.privacy-notice__link {
  color: #f9f6ef;
  font-size: 0.86rem;
  font-weight: 700;
}

.privacy-notice__dismiss {
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 999px;
  color: var(--forest);
  background: #f7f3eb;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.privacy-notice__dismiss:hover {
  background: white;
}

.privacy-notice__dismiss:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

@media (max-width: 780px) {
  .nav {
    padding-block: 0.65rem;
  }

  .brand img {
    width: 7.6rem;
    height: 3.2rem;
  }

  .nav-links a:not(.button) {
    display: none;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    grid-row: 1;
  }

  .footer-grid {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .privacy-notice {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    bottom: 0.65rem;
    width: calc(100% - 1.3rem);
    padding: 1rem;
    border-radius: 1rem;
  }

  .privacy-notice__actions {
    justify-content: space-between;
  }
}

@media print {
  .site-header,
  .toc,
  .privacy-notice,
  footer {
    display: none;
  }

  body {
    background: white;
  }

  .legal-hero {
    padding-top: 1rem;
  }

  .legal-layout {
    display: block;
  }

  .legal-card {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
