:root {
  color-scheme: light;
  --paper: #f7f3e9;
  --surface: #fffdf7;
  --ink: #193e33;
  --body: #354b42;
  --muted: #5d6e62;
  --line: #d6ddcb;
  --accent: #e5edda;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; border-radius: 2px; }
.skip-link { position: absolute; left: 1rem; top: -6rem; padding: .65rem 1rem; background: var(--ink); color: white; z-index: 5; }
.skip-link:focus { top: 1rem; }
.site-header, .site-footer { width: min(1160px, calc(100% - 3rem)); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-size: 1.15rem; font-weight: 650; letter-spacing: -.035em; text-decoration: none; }
.brand-mark { width: 1.75rem; height: 1.75rem; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.5rem; font-size: .9rem; }
.site-nav a { text-decoration: none; padding: .3rem 0; }
.site-nav a[aria-current="page"] { border-bottom: 1px solid var(--ink); }
.legal-shell { width: min(1040px, calc(100% - 3rem)); margin: 4.5rem auto 5rem; }
.eyebrow { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 650; margin: 0 0 1rem; }
h1, h2, h3 { color: var(--ink); line-height: 1.18; font-weight: 400; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); margin: 0 0 1.2rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0 0 1rem; }
h3 { font-family: inherit; font-weight: 600; font-size: 1rem; margin: 1.6rem 0 .35rem; }
p { margin: 0 0 1.1rem; }
.intro { max-width: 44rem; font-size: 1.13rem; line-height: 1.65; }
.date { margin: 1.35rem 0 0; color: var(--muted); font-size: .85rem; }
.legal-layout { display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 4.25rem; margin-top: 3.5rem; }
.contents { position: sticky; top: 2rem; align-self: start; font-size: .85rem; }
.contents p { font-weight: 600; margin-bottom: .8rem; }
.contents ol { list-style: none; padding: 0; margin: 0; }
.contents li { margin: .65rem 0; }
.contents a { color: var(--muted); text-decoration: none; }
.contents a:hover { color: var(--ink); text-decoration: underline; }
.legal-copy { max-width: 47rem; min-width: 0; }
.legal-copy section { margin-bottom: 2.6rem; scroll-margin-top: 2rem; }
.legal-copy ul, .legal-copy ol { padding-left: 1.25rem; margin: .6rem 0 1.2rem; }
.legal-copy li { padding-left: .25rem; margin: .5rem 0; }
.note { padding: 1.25rem 1.4rem; background: var(--accent); border-radius: 12px; }
.note p:last-child { margin-bottom: 0; }
.contact-card { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.pending { display: inline-block; padding: .25rem .6rem; font-weight: 700; color: #713d15; background: #ffebc3; border: 1px dashed #8e591f; overflow-wrap: anywhere; }
.small { font-size: .9rem; color: var(--muted); }
code { padding: .05em .25em; border-radius: 3px; background: #eaeedf; font-size: .88em; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); padding: 1.6rem 0 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .82rem; color: var(--muted); }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
@media (max-width: 760px) {
  .legal-shell { margin-top: 3rem; }
  .legal-layout { grid-template-columns: 1fr; gap: 2rem; margin-top: 2.4rem; }
  .contents { position: static; padding: 1.1rem 0; border-block: 1px solid var(--line); }
  .contents ol { display: flex; flex-wrap: wrap; gap: .35rem 1.3rem; }
  .contents li { margin: 0; }
}
@media (max-width: 460px) {
  .site-header, .site-footer, .legal-shell { width: calc(100% - 2rem); }
  .site-header { align-items: flex-start; flex-direction: column; gap: .8rem; padding-block: 1.2rem; }
  .site-nav { gap: 1.2rem; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .note, .contact-card { padding: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; color: black; font-size: 10pt; }
  .site-nav, .contents, .skip-link { display: none; }
  .legal-shell { width: 100%; margin: 2rem 0; }
  .legal-layout { display: block; margin-top: 2rem; }
  .legal-copy { max-width: none; }
  .legal-copy section { break-inside: avoid; }
  h1 { font-size: 30pt; }
}
