/* Scoped styles for the provisional legal/trust page shell. */
:root {
  --policy-ink: #17332f;
  --policy-muted: #61706c;
  --policy-forest: #173f38;
  --policy-moss: #52673d;
  --policy-sand: #f1eadf;
  --policy-paper: #fffdf9;
  --policy-line: #dcd7cd;
  --policy-coral: #a95439;
  --policy-white: #ffffff;
  --policy-shadow: 0 18px 55px rgba(20, 52, 46, 0.09);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body.policy-page {
  margin: 0;
  background: var(--policy-paper);
  color: var(--policy-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

.policy-page *,
.policy-page *::before,
.policy-page *::after {
  box-sizing: border-box;
}

.policy-page a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.policy-page a:hover {
  color: var(--policy-coral);
}

.policy-page a:focus-visible,
.policy-page button:focus-visible {
  outline: 3px solid rgba(169, 84, 57, 0.45);
  outline-offset: 4px;
}

.policy-page .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.policy-page .skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--policy-white);
  color: var(--policy-ink);
  box-shadow: var(--policy-shadow);
  transform: translateY(-180%);
}

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

.policy-page .site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--policy-forest);
  color: var(--policy-white);
}

.policy-page .header-inner,
.policy-page .footer-inner,
.policy-page .hero-inner,
.policy-page .page-grid {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.policy-page .header-inner {
  display: flex;
  min-height: 5.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.policy-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.policy-page .brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.policy-page .brand-copy {
  display: grid;
  line-height: 1.15;
}

.policy-page .brand-copy strong {
  color: var(--policy-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.policy-page .brand-copy span {
  margin-top: 0.22rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.policy-page .primary-nav ul,
.policy-page .footer-links,
.policy-page .policy-links {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy-page .primary-nav ul {
  align-items: center;
  gap: 1.35rem;
}

.policy-page .primary-nav a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}

.policy-page .primary-nav a:hover,
.policy-page .primary-nav a[aria-current="page"] {
  color: var(--policy-white);
}

.policy-page .primary-nav .nav-cta {
  padding: 0.68rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
}

.policy-page .concept-strip {
  border-bottom: 1px solid #e6d4c8;
  background: #fbefe9;
  color: #693928;
  font-size: 0.86rem;
  text-align: center;
}

.policy-page .concept-strip p {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.72rem 0;
  color: #693928;
}

.policy-page .concept-strip strong {
  color: #53291b;
}

.policy-page .policy-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.7) 0, transparent 30%),
    linear-gradient(135deg, #e7efe8 0%, var(--policy-sand) 100%);
}

.policy-page .policy-hero::after {
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(23, 63, 56, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 3.5rem rgba(255, 255, 255, 0.18), 0 0 0 7rem rgba(255, 255, 255, 0.12);
  content: "";
}

.policy-page .hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(4rem, 8vw, 6.5rem);
}

.policy-page .eyebrow {
  margin: 0 0 0.7rem;
  color: var(--policy-moss);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.policy-page h1,
.policy-page h2,
.policy-page h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
}

.policy-page h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 5.6rem);
  letter-spacing: -0.045em;
}

.policy-page .hero-summary {
  max-width: 710px;
  margin: 1.35rem 0 0;
  color: #425853;
  font-size: clamp(1.03rem, 2vw, 1.23rem);
}

.policy-page .updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0 0;
  color: var(--policy-muted);
  font-size: 0.85rem;
  font-weight: 650;
}

.policy-page .updated::before {
  width: 1.4rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.policy-page .page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.policy-page .policy-content {
  min-width: 0;
}

.policy-page .policy-content > section {
  padding-block: 1rem 3rem;
  border-bottom: 1px solid var(--policy-line);
}

.policy-page .policy-content > section:first-child {
  padding-top: 0;
}

.policy-page .policy-content > section:last-child {
  border-bottom: 0;
}

.policy-page h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  letter-spacing: -0.025em;
}

.policy-page h3 {
  margin: 1.8rem 0 0.5rem;
  font-size: 1.28rem;
}

.policy-page p,
.policy-page li {
  color: #3f514d;
}

.policy-page strong {
  color: var(--policy-ink);
}

.policy-page .lead {
  color: #29443e;
  font-size: 1.12rem;
}

.policy-page .callout {
  margin: 1.6rem 0;
  padding: 1.25rem 1.35rem;
  border-left: 4px solid var(--policy-coral);
  border-radius: 0 0.6rem 0.6rem 0;
  background: #fbf1eb;
}

.policy-page .callout p {
  margin: 0;
  color: #583d32;
}

.policy-page .note-card {
  margin-top: 1.5rem;
  padding: 1.4rem;
  border: 1px solid #cad8d1;
  border-radius: 0.8rem;
  background: #f1f6f2;
}

.policy-page .note-card h3 {
  margin-top: 0;
}

.policy-page .note-card p:last-child,
.policy-page .callout p:last-child {
  margin-bottom: 0;
}

.policy-page .plain-list,
.policy-page .steps-list {
  padding-left: 1.25rem;
}

.policy-page .plain-list li,
.policy-page .steps-list li {
  margin-bottom: 0.65rem;
  padding-left: 0.25rem;
}

.policy-page .steps-list li::marker {
  color: var(--policy-coral);
  font-weight: 800;
}

.policy-page .table-wrap {
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid var(--policy-line);
  border-radius: 0.85rem;
  box-shadow: 0 8px 24px rgba(20, 52, 46, 0.05);
}

.policy-page table {
  width: 100%;
  border-collapse: collapse;
  background: var(--policy-white);
  font-size: 0.92rem;
}

.policy-page th,
.policy-page td {
  padding: 1rem;
  border-bottom: 1px solid var(--policy-line);
  text-align: left;
  vertical-align: top;
}

.policy-page th {
  background: #f0eee8;
  color: var(--policy-ink);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.policy-page tr:last-child td {
  border-bottom: 0;
}

.policy-page .toc {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  padding: 1.35rem;
  border: 1px solid var(--policy-line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--policy-shadow);
  backdrop-filter: blur(12px);
}

.policy-page .toc-title {
  margin: 0 0 0.8rem;
  color: var(--policy-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.policy-page .toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.policy-page .toc li {
  counter-increment: toc;
  border-top: 1px solid #ebe7df;
}

.policy-page .toc li:first-child {
  border-top: 0;
}

.policy-page .toc a {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.35rem;
  padding: 0.7rem 0;
  color: #40544f;
  font-size: 0.83rem;
  line-height: 1.35;
  text-decoration: none;
}

.policy-page .toc a::before {
  color: #9a877b;
  content: "0" counter(toc);
  font-family: Georgia, "Times New Roman", serif;
}

.policy-page .next-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.policy-page .action-link {
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--policy-line);
  border-radius: 0.75rem;
  background: var(--policy-white);
  color: var(--policy-ink);
  font-weight: 700;
  text-decoration: none;
}

.policy-page .action-link::after {
  color: var(--policy-coral);
  content: "→";
  font-size: 1.3rem;
}

.policy-page .action-link:hover {
  border-color: #c9b6aa;
  color: var(--policy-coral);
}

.policy-page .site-footer {
  padding: 3rem 0;
  background: #102d28;
  color: rgba(255, 255, 255, 0.78);
}

.policy-page .footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}

.policy-page .footer-kicker {
  margin: 0 0 0.35rem;
  color: var(--policy-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.policy-page .footer-note {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
}

.policy-page .footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 1.1rem;
}

.policy-page .footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  text-decoration: none;
}

@media (max-width: 800px) {
  .policy-page .header-inner {
    min-height: auto;
    padding-block: 1rem;
  }

  .policy-page .primary-nav ul {
    gap: 0.85rem;
  }

  .policy-page .primary-nav li:nth-child(2),
  .policy-page .primary-nav li:nth-child(3) {
    display: none;
  }

  .policy-page .page-grid {
    grid-template-columns: 1fr;
  }

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

  .policy-page .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

@media (max-width: 560px) {
  .policy-page .brand-copy strong {
    font-size: 0.93rem;
  }

  .policy-page .brand-copy span {
    font-size: 0.58rem;
  }

  .policy-page .primary-nav li:not(:last-child) {
    display: none;
  }

  .policy-page .next-steps {
    grid-template-columns: 1fr;
  }

  .policy-page th,
  .policy-page td {
    min-width: 10rem;
    padding: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
