:root {
  --paper: #f7f5ef;
  --warm: #ebe7dc;
  --white: #fffefb;
  --ink: #173129;
  --soft: #52635d;
  --forest: #153d30;
  --forest-2: #225441;
  --sage: #86a292;
  --clay: #b8754b;
  --line: #d3d9d2;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--forest-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay); }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding-left: 1.15rem; }
li + li { margin-top: 0.45rem; }

.container { width: min(820px, calc(100% - 48px)); margin-inline: auto; }
.wide { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(23, 49, 41, 0.1);
  background: rgba(247, 245, 239, 0.95);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.brand > i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-style: normal;
  line-height: 1;
}
.brand > b {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
  color: #40544c;
  font-size: 0.78rem;
  font-weight: 650;
}
.header-nav a {
  color: inherit;
  text-decoration: none;
}
.header-nav a[aria-current="page"] { color: var(--clay); }

.legal-hero {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #eef2ee 0%, var(--paper) 100%);
}
.kicker {
  color: var(--forest-2);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.legal-hero h1 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-wrap: balance;
}
.legal-meta {
  margin-top: 14px;
  color: var(--soft);
  font-size: 0.86rem;
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}
.chip[aria-current="page"] {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.legal-body { padding: 42px 0 72px; }
.legal-body .lead {
  margin-bottom: 28px;
  color: #3f524a;
  font-size: 1.02rem;
}
.legal-body section + section { margin-top: 34px; }
.legal-body h2 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.legal-body h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
  font-weight: 750;
}
.legal-body p + p { margin-top: 12px; }
.legal-body .note {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 3px solid var(--sage);
  background: var(--warm);
  color: #3f524a;
  font-size: 0.9rem;
}
.legal-body table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.legal-body th,
.legal-body td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal-body th { background: #e8eee9; font-weight: 750; }
.toc {
  margin: 0 0 28px;
  padding: 18px 18px 18px 18px;
  border: 1px solid var(--line);
  background: var(--white);
}
.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc a { text-decoration: none; font-weight: 650; }

.legal-cta {
  margin-top: 40px;
  padding: 22px;
  border: 1px solid #c7cec8;
  background: #e8eee9;
}
.legal-cta h2 { margin-bottom: 8px; font-size: 1.35rem; }
.legal-cta p { color: #40544c; }
.legal-cta .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}
.button-primary { background: var(--forest); color: #fff; }
.button-primary:hover { background: var(--forest-2); color: #fff; }
.button-secondary { border-color: #a5b1a9; background: transparent; color: var(--ink); }

footer {
  padding: 28px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #112b23;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
}
footer a { color: rgba(255, 255, 255, 0.78); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

@media (max-width: 700px) {
  .container, .wide { width: calc(100% - 32px); }
  .header-nav { display: none; }
  .legal-hero { padding-top: 34px; }
  .legal-body { padding-top: 30px; }
  .legal-body table { display: block; overflow-x: auto; }
}
