:root {
  color-scheme: light;
  --ink: #082b27;
  --forest: #063d36;
  --green: #0a776b;
  --mint: #baf2e7;
  --paper: #f5fbf8;
  --line: rgba(8, 43, 39, 0.14);
  --muted: #5f746f;
  --coral: #ee6255;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.legal-header {
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

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

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

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--forest);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.legal-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.back-link {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.legal-hero {
  padding: 72px 0 54px;
  border-bottom: 1px solid var(--line);
}

.legal-eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 700;
  line-height: 0.98;
}

.legal-hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  justify-content: space-between;
  gap: 72px;
  padding: 56px 0 88px;
}

.legal-nav {
  align-self: start;
  position: sticky;
  top: 28px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.legal-nav strong {
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 12px;
  text-transform: uppercase;
}

.legal-nav a {
  padding: 4px 0;
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.legal-content section:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  margin: 0 0 18px;
  color: var(--forest);
  font-size: 24px;
  line-height: 1.25;
}

.legal-content p,
.legal-content li {
  color: #38534e;
  font-size: 15px;
  line-height: 1.8;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content ul {
  margin: 14px 0 0;
  padding-left: 21px;
}

.legal-note {
  padding: 18px 20px;
  border-left: 3px solid var(--green);
  background: rgba(186, 242, 231, 0.35);
}

.legal-footer {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

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

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

  .legal-hero {
    padding: 48px 0 38px;
  }

  .legal-hero h1 {
    font-size: 46px;
  }

  .legal-layout {
    display: block;
    padding: 38px 0 64px;
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 42px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }

  .legal-nav strong {
    grid-column: 1 / -1;
  }

  .legal-footer {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}
