:root {
  --ground: #F3EEE5;
  --surface: #FFFDF9;
  --surface-raised: #FFFEFC;
  --surface-inset: #F7F0E4;
  --ink: #17150F;
  --body: #5E5A50;
  --muted: #7A7568;
  --moss: #23604A;
  --moss-deep: #123A2C;
  --moss-mid: #3E7C63;
  --moss-tint: #E4EEE7;
  --sand: #EFE7D8;
  --terracotta: #B4553A;
  --hairline: #ECE4D8;
  --border: #D9CEBE;
}

body.legal-page {
  background:
    radial-gradient(circle at 88% 10%, rgba(228,184,97,.10), transparent 24rem),
    radial-gradient(circle at 10% 28%, rgba(62,124,99,.07), transparent 28rem),
    var(--ground);
  color: var(--ink);
}

.legal-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243,238,229,.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217,206,190,.7);
}

.legal-site-header .inner {
  width: min(1180px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.legal-logo img {
  width: 112px;
  height: auto;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.legal-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: color .18s ease;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: var(--moss-deep);
}

body.legal-page .legal-wrap {
  width: min(880px, calc(100% - 40px));
  padding: 72px 0 96px;
}

body.legal-page .legal-back {
  margin-bottom: 44px;
  color: var(--moss);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body.legal-page .eyebrow {
  margin-bottom: 16px;
  color: var(--moss);
  letter-spacing: .18em;
}

body.legal-page .legal-title {
  max-width: 760px;
  font-size: clamp(56px, 7.4vw, 88px);
  line-height: .94;
  letter-spacing: -.04em;
}

body.legal-page .legal-meta {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: .02em;
}

body.legal-page .legal-card {
  position: relative;
  margin-top: 38px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  background: rgba(255,253,249,.96);
  box-shadow: 0 22px 60px rgba(23,21,15,.055);
  overflow: hidden;
}

body.legal-page .legal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--moss-deep), var(--moss-mid) 58%, #E4B861);
  opacity: .9;
}

body.legal-page .legal-card > p:first-child {
  margin-top: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 23px;
  line-height: 1.35;
  color: var(--ink);
}

body.legal-page .legal-card h2 {
  position: relative;
  margin: 34px 0 10px;
  padding-top: 2px;
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
}

body.legal-page .legal-card h2::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--moss-mid);
  border-radius: 99px;
}

body.legal-page .legal-card p {
  margin: 0 0 16px;
  color: var(--body);
  font-size: 13.5px;
  line-height: 1.82;
}

body.legal-page .legal-card a {
  color: var(--moss-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.legal-page .legal-note {
  margin-top: 18px;
  padding: 24px 26px;
  border: 1px solid rgba(217,206,190,.75);
  border-radius: 24px;
  background: var(--sand);
}

body.legal-page .legal-note h3 {
  color: var(--moss-deep);
  letter-spacing: .12em;
}

body.legal-page .legal-note p {
  font-size: 12.5px;
  line-height: 1.7;
}

.legal-landscape {
  position: relative;
  width: 100%;
  height: 92px;
  margin-top: 52px;
  overflow: hidden;
  opacity: .9;
}

.legal-landscape .sun {
  position: absolute;
  right: 13%;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E4B861;
}

.legal-landscape .hill {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -44px;
  height: 94px;
  border-radius: 50% 50% 0 0 / 70% 70% 0 0;
  transform-origin: center bottom;
}

.legal-landscape .hill.back {
  bottom: -52px;
  background: #CBD8D0;
  transform: rotate(-2deg) scaleX(1.08);
}

.legal-landscape .hill.mid {
  bottom: -61px;
  background: #8FAE9C;
  transform: rotate(2deg) scaleX(1.04);
}

.legal-landscape .hill.front {
  bottom: -70px;
  background: var(--moss-deep);
  transform: rotate(-1deg) scaleX(1.02);
}

.legal-site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255,253,249,.42);
}

.legal-site-footer .inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 120px;
  margin: 0 auto;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 30px;
}

.legal-footer-brand img {
  width: 96px;
  height: auto;
}

.legal-footer-links {
  display: flex;
  gap: 18px;
}

.legal-footer-links a,
.legal-copyright {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .03em;
}

@media (max-width: 700px) {
  .legal-site-header .inner {
    height: 68px;
  }

  .legal-logo img {
    width: 96px;
  }

  .legal-nav {
    gap: 14px;
  }

  body.legal-page .legal-wrap {
    padding-top: 48px;
    padding-bottom: 70px;
  }

  body.legal-page .legal-back {
    margin-bottom: 34px;
  }

  body.legal-page .legal-title {
    font-size: clamp(50px, 15vw, 70px);
  }

  body.legal-page .legal-card {
    padding: 26px 22px;
    border-radius: 22px;
  }

  body.legal-page .legal-card > p:first-child {
    font-size: 20px;
  }

  .legal-site-footer .inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }
}
