@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-SemiBold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "Young Serif";
  src: url("/assets/fonts/YoungSerif-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  color-scheme: light;
  --background: #f3f1e8;
  --surface: #fcfbf6;
  --surface-muted: #eeebe0;
  --ink: #2c2922;
  --muted: #63604f;
  --olive: #5e6b3f;
  --olive-deep: #454f2c;
  --olive-tint: #e7ead6;
  --apricot: #e69356;
  --apricot-tint: #f0e4d0;
  --line: #d9d6c6;
  --focus: #ce6f33;
  --max-width: 1180px;
  --article-width: 720px;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--olive-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--focus);
}

a:focus-visible,
summary:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: var(--olive-deep);
  color: #fff;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--background) 92%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner,
.site-footer-inner {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.policy-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.policy-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration-color: var(--apricot);
  text-decoration-thickness: 3px;
}

.document-hero {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--olive-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Young Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  letter-spacing: -0.035em;
}

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

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.document-layout {
  display: grid;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0 6rem;
  grid-template-columns: minmax(190px, 240px) minmax(0, var(--article-width));
  gap: clamp(3rem, 7vw, 7rem);
  justify-content: start;
}

.toc {
  position: sticky;
  top: 104px;
  align-self: start;
}

.toc-title,
.mobile-toc summary {
  margin: 0 0 0.8rem;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.toc ol,
.mobile-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.toc a,
.mobile-toc a {
  color: var(--muted);
  font-size: 0.83rem;
  text-decoration: none;
}

.toc a:hover,
.mobile-toc a:hover {
  color: var(--olive-deep);
  text-decoration: underline;
}

.mobile-toc {
  display: none;
}

.policy section {
  scroll-margin-top: 7rem;
}

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

.policy h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.015em;
}

.policy h3 {
  margin: 2rem 0 0.65rem;
  font-size: 1.2rem;
}

.policy p,
.policy ul {
  max-width: 70ch;
}

.policy p {
  margin: 1rem 0;
}

.policy ul {
  padding-left: 1.35rem;
}

.policy li + li {
  margin-top: 0.65rem;
}

.note,
.contact-card {
  margin: 1.75rem 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.note {
  border-left: 4px solid var(--apricot);
}

.contact-card {
  background: var(--olive-tint);
}

.contact-card p:first-child {
  margin-top: 0;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
}

.site-footer-inner {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .brand span {
    display: none;
  }

  .policy-nav {
    gap: 0.9rem;
    font-size: 0.82rem;
  }

  .document-layout {
    display: block;
    padding-top: 2rem;
  }

  .toc {
    display: none;
  }

  .mobile-toc {
    display: block;
    margin-bottom: 2.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .mobile-toc summary {
    margin: 0;
    cursor: pointer;
  }

  .mobile-toc[open] summary {
    margin-bottom: 1rem;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 2rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    margin: 18mm;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
  }

  .skip-link,
  .site-header,
  .toc,
  .mobile-toc,
  .site-footer {
    display: none !important;
  }

  .document-hero,
  .document-layout {
    width: 100%;
    padding: 0;
    border: 0;
  }

  .document-layout {
    display: block;
  }

  .policy section + section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }

  a {
    color: #000;
  }

  h2,
  h3 {
    break-after: avoid;
  }

  p,
  li {
    orphans: 3;
    widows: 3;
  }
}
