:root {
  --ink: #111817;
  --muted: #65716d;
  --line: #d9e2dd;
  --paper: #f7f9f7;
  --surface: #ffffff;
  --green: #dff2e5;
  --green-strong: #13744d;
  --blue: #e0edf4;
  --yellow: #f7efc5;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--green-strong);
}

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

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

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #bfd0c5;
  border-radius: 9px;
  background: var(--surface);
  color: var(--green-strong);
}

.legal-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #45524d;
  font-size: 0.86rem;
}

.legal-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

.legal-button:hover {
  background: #26322f;
  color: #fff;
}

.legal-shell {
  padding: 76px 0 110px;
}

.legal-intro {
  max-width: 760px;
  padding-bottom: 48px;
}

.legal-eyebrow {
  margin: 0 0 14px;
  color: var(--green-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.legal-intro h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.legal-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.legal-updated {
  margin: 22px 0 0;
  color: #7b8781;
  font-size: 0.78rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.legal-nav a {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.legal-nav a:hover {
  color: var(--green-strong);
}

.legal-document {
  min-width: 0;
  padding: 0 0 12px;
}

.legal-document section {
  scroll-margin-top: 24px;
  padding: 0 0 38px;
  border-bottom: 1px solid var(--line);
}

.legal-document section + section {
  padding-top: 38px;
}

.legal-document h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal-document h3 {
  margin: 22px 0 6px;
  font-size: 0.98rem;
  font-weight: 600;
}

.legal-document p,
.legal-document li {
  color: #4d5a54;
  font-size: 0.92rem;
  line-height: 1.75;
}

.legal-document p {
  margin: 0 0 12px;
}

.legal-document p:last-child {
  margin-bottom: 0;
}

.legal-document ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-highlight {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid #cbded1;
  border-radius: 14px;
  background: var(--green);
  color: #345448;
}

.legal-highlight p {
  color: inherit;
  font-size: 0.88rem;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 38px;
  border-top: 1px solid var(--line);
  color: #74807a;
  font-size: 0.78rem;
}

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

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

  .legal-header {
    padding: 18px 0;
  }

  .legal-header-actions {
    gap: 10px;
    font-size: 0.76rem;
  }

  .legal-header-actions > a:first-child {
    display: none;
  }

  .legal-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.76rem;
  }

  .legal-shell {
    padding: 52px 0 76px;
  }

  .legal-intro {
    padding-bottom: 34px;
  }

  .legal-intro h1 {
    font-size: 3.5rem;
  }

  .legal-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
