.footer-links {
  margin: 0.52rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.46rem;
}

.footer-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--pine);
  border-color: rgb(var(--text-rgb) / 0.35);
  outline: none;
}

.legal-shell {
  width: min(820px, calc(100% - 2.4rem));
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.legal-page .topbar {
  width: min(820px, calc(100% - 2.4rem));
}

.legal-main {
  flex: 1;
  padding-top: 3.8rem;
}

.legal-card {
  border: 1px solid rgb(var(--text-rgb) / 0.13);
  border-radius: 22px;
  background: rgb(var(--bg-rgb) / 0.58);
  box-shadow:
    0 14px 34px rgb(var(--text-rgb) / 0.1),
    inset 0 1px 0 rgb(var(--bg-rgb) / 0.82);
  backdrop-filter: blur(18px) saturate(1.03);
  -webkit-backdrop-filter: blur(18px) saturate(1.03);
  padding: clamp(1.2rem, 2.4vw, 1.9rem);
}

.legal-card h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.14;
  margin: 0;
}

.legal-updated {
  margin: 0.72rem 0 1.2rem;
  color: rgb(var(--muted-rgb) / 0.92);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--fs-xs);
  font-weight: 600;
}

.legal-card p,
.legal-card li {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.legal-card ul,
.legal-card ol {
  margin: 0.46rem 0 1.1rem;
  padding-left: 1.18rem;
}

.legal-card li + li {
  margin-top: 0.34rem;
}

.legal-label {
  margin: 1rem 0 0.42rem;
  color: var(--pine);
  font-weight: 600;
}

.legal-plain {
  margin: 0 0 1rem;
}

.legal-last-line {
  margin-top: 1rem;
}

.legal-contact-link {
  color: var(--pine);
  text-decoration: none;
  border-bottom: 1px solid rgb(var(--text-rgb) / 0.22);
}

.legal-contact-link:hover,
.legal-contact-link:focus-visible {
  border-bottom-color: rgb(var(--text-rgb) / 0.45);
  outline: none;
}

@media (max-width: 767px) {
  .legal-shell {
    width: min(560px, calc(100% - 1.08rem));
    padding-top: 4.3rem;
  }

  .legal-page .topbar {
    top: 0.42rem;
    width: min(560px, calc(100% - 1.08rem));
    padding: 0.4rem 0.48rem;
    border-radius: 16px;
  }

  .legal-page .brand span {
    display: none;
  }

  .legal-page .brand-mark {
    width: 38px;
    height: 38px;
    margin-right: 0;
  }

  .legal-main {
    padding-top: 1.1rem;
  }

  .legal-card {
    padding: 1rem 0.9rem;
    border-radius: 18px;
    text-align: left;
  }

  .legal-card h1 {
    font-size: clamp(1.32rem, 6.4vw, 1.7rem);
  }

  .legal-card p,
  .legal-card li {
    font-size: 0.88rem;
    line-height: 1.58;
  }

  .legal-updated {
    font-size: 0.68rem;
  }
}
