:root {
  --brand: #0f3d2e;
  --brand-dark: #09251c;
  --accent: #c98b45;
  --background: #fbf7ef;
  --surface: #fffdf8;
  --text: #1f2622;
  --muted: #66736b;
  --border: #e2d9ca;
  --shadow: 0 18px 45px rgba(15, 61, 46, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(15, 61, 46, 0.04), transparent 22rem),
    var(--background);
}

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

a:hover {
  color: var(--brand-dark);
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.brand {
  color: var(--brand);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: 0;
  text-decoration: none;
}

.nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.nav a,
.footer-nav a {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover,
.footer-nav a:hover {
  color: var(--brand);
}

main {
  flex: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 88px 0 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--brand-dark);
  line-height: 1.2;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5rem);
  letter-spacing: 0;
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

h3 {
  margin: 40px 0 10px;
  font-size: 1.25rem;
}

.lede {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.section {
  padding: 12px 0 96px;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.document-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--muted);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.document-card:hover {
  border-color: rgba(15, 61, 46, 0.35);
  box-shadow: 0 20px 48px rgba(15, 61, 46, 0.12);
  transform: translateY(-2px);
}

.document-label {
  color: var(--brand);
  font-size: 1.35rem;
  font-weight: 750;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 64px;
  padding: 56px 0 96px;
}

.legal-content {
  max-width: 780px;
}

.legal-content h1 {
  font-size: clamp(2.25rem, 4vw, 3.6rem);
}

.legal-content p,
.legal-content li {
  color: #334039;
}

.legal-content ul {
  padding-left: 1.35rem;
}

.legal-content li + li {
  margin-top: 0.55rem;
}

.updated {
  margin: 18px 0 34px;
  color: var(--muted);
  font-size: 0.98rem;
}

.notice {
  margin: 32px 0;
  padding: 18px 20px;
  border: 1px solid rgba(201, 139, 69, 0.42);
  border-radius: 8px;
  background: #fff8ea;
  color: #614215;
}

.page-nav {
  position: sticky;
  top: 28px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
}

.page-nav h2 {
  margin-bottom: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-nav a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.93rem;
  text-decoration: none;
}

.page-nav a:hover {
  color: var(--brand);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 28px, 1120px);
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .section {
    padding-bottom: 72px;
  }

  .document-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .document-card {
    min-height: 165px;
    padding: 24px;
  }

  .legal-layout {
    gap: 34px;
    padding-top: 38px;
  }

  .page-nav {
    position: static;
    order: -1;
  }
}
