.legal-page::before {
  background:
    radial-gradient(780px 470px at 9% -6%, rgba(255, 209, 172, 0.6), transparent 68%),
    radial-gradient(760px 520px at 102% 8%, rgba(201, 238, 223, 0.72), transparent 66%),
    linear-gradient(180deg, #fff9ef 0, var(--canvas) 62%);
}

.legal-page .site-nav {
  border-bottom: 1px solid var(--line);
}

.legal-page .nav-links {
  justify-self: end;
}

.legal-shell {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
  padding: 72px 0 100px;
}

.legal-hero {
  max-width: 820px;
  margin-bottom: 56px;
}

.legal-hero .eyebrow {
  margin-bottom: 17px;
}

.legal-hero h1 {
  max-width: 780px;
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.legal-hero .lede {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
  text-wrap: pretty;
}

.updated {
  margin: 16px 0 0;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 700;
}

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

.legal-toc {
  position: sticky;
  top: 30px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px 25px 21px 27px;
  background: rgba(255, 253, 249, 0.74);
  box-shadow: var(--shadow-sm);
}

.legal-toc strong {
  display: block;
  margin-bottom: 12px;
  font: 600 14px/1 var(--display);
}

.legal-toc a {
  display: block;
  padding: 6px 0;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--mint-deep);
}

.legal-content {
  min-width: 0;
}

.legal-content > :first-child {
  margin-top: 0;
}

.legal-content h2 {
  margin: 54px 0 14px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.legal-content h3 {
  margin: 28px 0 8px;
  font-size: 20px;
  font-weight: 600;
}

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

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

.legal-content ul,
.legal-content ol {
  margin: 14px 0;
  padding-left: 24px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content a,
.support-card a {
  color: var(--mint-deep);
  font-weight: 800;
  text-underline-offset: 3px;
}

.callout,
.content-card {
  margin: 26px 0;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 25px 28px 23px 31px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: var(--shadow-md);
}

.callout {
  border-color: rgba(14, 93, 74, 0.16);
  background: linear-gradient(135deg, rgba(221, 245, 236, 0.86), rgba(255, 253, 249, 0.9));
}

.callout.warning {
  border-color: rgba(201, 67, 45, 0.18);
  background: linear-gradient(135deg, rgba(255, 240, 234, 0.92), rgba(255, 253, 249, 0.92));
}

.callout > :first-child,
.content-card > :first-child {
  margin-top: 0;
}

.callout > :last-child,
.content-card > :last-child {
  margin-bottom: 0;
}

.legacy-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 700;
}

.legacy-note::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.support-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.support-heading {
  font-size: 34px;
}

.flush-heading {
  margin-top: 0 !important;
}

.support-card,
.link-card {
  min-height: 154px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 24px 25px 21px 28px;
  background: rgba(255, 253, 249, 0.84);
  box-shadow: var(--shadow-sm);
}

.support-card strong,
.support-card span,
.link-card strong,
.link-card span {
  display: block;
}

.support-card strong,
.link-card strong {
  font: 600 19px/1.15 var(--display);
}

.support-card span,
.link-card span {
  margin-top: 7px;
  color: var(--ink-faint);
  font-size: 14px;
}

.link-card {
  min-height: 120px;
  color: var(--ink);
  text-decoration: none;
}

.link-card:hover {
  border-color: rgba(14, 93, 74, 0.26);
  background: #fff;
}

.steps {
  counter-reset: step;
  padding-left: 0 !important;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 48px;
  padding: 4px 0 0 56px;
  counter-increment: step;
}

.steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background: var(--mint-soft);
  color: var(--mint-deep);
  content: counter(step);
  font: 700 13px/1 var(--display);
}

.status-card {
  max-width: 720px;
  margin-top: 30px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px 34px 27px 38px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: var(--shadow-md);
}

.status-card h2 {
  margin-top: 0;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--butter);
  box-shadow: 0 0 0 5px rgba(255, 177, 60, 0.15);
}

.join-shell {
  min-height: calc(100vh - 86px);
  padding: 72px 0 100px;
}

.join-panel {
  display: grid;
  overflow: hidden;
  grid-template-columns: 0.9fr 1.1fr;
  border: 1px solid var(--line);
  border-radius: 42px 42px 54px 34px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: var(--shadow-lg);
}

.join-art {
  display: grid;
  min-height: 550px;
  place-items: center;
  padding: 50px;
  background: linear-gradient(145deg, #c9eedf, #ffe0bc 58%, #f6c8c1);
}

.join-art img {
  width: min(290px, 75%);
  border-radius: 32%;
  box-shadow: 0 35px 58px -35px rgba(51, 43, 39, 0.65);
  transform: rotate(-3deg);
}

.join-copy {
  align-self: center;
  padding: 58px;
}

.join-copy h1 {
  margin-top: 17px;
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.join-copy p {
  color: var(--ink-soft);
}

.simple-footer {
  margin-top: 68px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.simple-footer strong {
  font: 600 14px/1 var(--display);
}

.simple-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 11px;
}

.simple-footer a {
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .legal-toc {
    position: static;
    display: flex;
    overflow: auto;
    align-items: center;
    gap: 14px;
    padding: 14px 17px;
    scrollbar-width: none;
  }

  .legal-toc::-webkit-scrollbar {
    display: none;
  }

  .legal-toc strong,
  .legal-toc a {
    flex: 0 0 auto;
    margin: 0;
  }

  .join-panel {
    grid-template-columns: 1fr;
  }

  .join-art {
    min-height: 320px;
  }

  .join-art img {
    width: 220px;
  }
}

@media (max-width: 620px) {
  .legal-shell,
  .join-shell {
    width: min(100% - 28px, 1080px);
    padding: 52px 0 78px;
  }

  .legal-hero {
    margin-bottom: 38px;
  }

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

  .legal-content h2 {
    margin-top: 44px;
    font-size: 27px;
  }

  .callout,
  .content-card,
  .status-card {
    padding: 20px;
  }

  .support-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .join-panel {
    border-radius: 30px 30px 38px 24px;
  }

  .join-art {
    min-height: 260px;
    padding: 30px;
  }

  .join-art img {
    width: 170px;
  }

  .join-copy {
    padding: 34px 24px;
  }
}
