/* Shared footer for all pages. */
.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  white-space: normal;
}
.legal-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.legal-footer-links a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.legal-footer-links a:hover,
.legal-footer-links a[aria-current="page"] {
  color: var(--ink);
}
.legal-footer-links a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}
/* Wrapping footer and shorter viewports. */
@media (max-width: 760px) {
  html, body.about-page { overflow-y: auto; }
  .page-shell, .about-page .about-shell {
    height: auto;
    min-height: calc(100svh - 68px);
  }
  .legal-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .legal-footer-links { gap: 8px 16px; }
}
@media (max-height: 650px) {
  html, body.about-page { overflow-y: auto; }
  .page-shell, .about-page .about-shell { height: auto; min-height: calc(100svh - 78px); }
}

/* Full-width divider, without shifting the footer's content alignment. */
.legal-footer {
  position: relative;
  width: 100%;
  max-width: 100%;
  left: auto;
  margin-left: 0;
  transform: none;
  border-top: 0;
  padding: 20px 0 0;
}
.legal-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  border-top: 1px solid var(--hairline);
  pointer-events: none;
}
