:root {
  --shared-footer-width: 720px;
}

.shared-footer {
  width: min(calc(100% - 48px), var(--shared-footer-width));
  margin: 54px auto 0;
  padding: 0 0 42px;
  color: #85929a;
  font-size: 12px;
  line-height: 1.55;
}

.shared-footer p {
  margin: 0 0 8px;
}

.shared-footer p:last-child {
  margin-bottom: 0;
}

.shared-footer a {
  color: inherit;
  text-decoration-color: rgba(133, 146, 154, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.shared-footer a:hover {
  color: #087dba;
  text-decoration-color: currentColor;
}

.shared-footer a:focus-visible {
  outline: 3px solid rgba(22, 151, 218, 0.28);
  outline-offset: 4px;
}

.shared-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin: 0 0 8px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-size: 12px;
  font-weight: 400;
}

.shared-footer-note {
  max-width: 720px;
}

.ai-content-column > .shared-footer {
  width: 100%;
  margin-inline: 0;
}

.legal-page {
  --shared-footer-width: 760px;
}

.legacy-page {
  --shared-footer-width: 1120px;
}

.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-page .profile-home-main .shared-footer {
  margin-top: auto;
  padding-top: 54px;
}

@media (max-width: 900px) {
  .ai-content-column > .shared-footer {
    width: calc(100% - 44px);
    margin: 46px 22px 0;
    padding-bottom: 34px;
  }
}

@media (max-width: 700px) {
  .shared-footer {
    width: calc(100% - 40px);
    padding-bottom: 32px;
  }
}
