:root {
  --ink: #171812;
  --muted: #65675f;
  --paper: #f5f1e8;
  --card: #fffdf8;
  --green: #2e4a1e;
  --gold: #b4923d;
  --line: rgba(23, 24, 18, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #1f3514; }

.site-header {
  background: var(--green);
  color: #fff;
}

.header-inner,
.page,
.site-footer-inner {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
}

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

.brand {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.back-link { color: rgba(255, 255, 255, 0.84); }
.back-link:hover { color: #fff; }

.page { padding: 54px 0 72px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 850px;
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 800px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 18px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.legal-nav a {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}

.legal-nav a[aria-current="page"] {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.document {
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 24px 70px rgba(46, 74, 30, 0.08);
}

.document h2 {
  margin: 34px 0 10px;
  color: var(--green);
  font-size: 22px;
  line-height: 1.3;
}

.document h2:first-child { margin-top: 0; }
.document p { margin: 0 0 16px; }
.document ul { margin: 0 0 18px; padding-left: 24px; }
.document li { margin-bottom: 8px; }

.details {
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1fr);
  gap: 0;
  margin: 0 0 22px;
  border-top: 1px solid var(--line);
}

.details dt,
.details dd {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.details dt {
  padding-right: 20px;
  color: var(--muted);
  font-size: 14px;
}

.details dd { font-weight: 600; }

.revision {
  margin-top: 36px !important;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  padding: 28px 0;
  background: #171812;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer a { color: #d8bf75; }

@media (max-width: 650px) {
  .header-inner,
  .page,
  .site-footer-inner { width: min(100% - 28px, 980px); }
  .header-inner { min-height: 66px; }
  .page { padding: 36px 0 52px; }
  .document { border-radius: 18px; }
  .details { grid-template-columns: 1fr; }
  .details dt { padding-bottom: 0; border-bottom: 0; }
  .details dd { padding-top: 2px; }
}

@media print {
  .site-header,
  .legal-nav,
  .site-footer { display: none; }
  body { background: #fff; font-size: 12pt; }
  .page { width: 100%; padding: 0; }
  .document { padding: 0; border: 0; box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}
