/* Shared document links inherit each page's existing footer colors. */
.footer .footer-links > .footer-social { gap: 8px; }
.footer .footer-social > span { letter-spacing: 0; }
.footer .footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  width: fit-content;
  color: inherit;
}
.footer .footer-social-icon {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.footer .footer-social-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  min-width: 0;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.5;
}
.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 0;
  color: inherit;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}
.footer-legal .footer-legal-privacy { font-weight: 700; }
.footer-legal a:hover { text-decoration: underline; }
.footer-legal a:focus-visible,
.c-legal-links a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}
.footer-bottom { flex-wrap: wrap; }
.footer-bottom .footer-legal {
  flex: 1 1 620px;
  justify-content: center;
}
.c-footer { flex-wrap: wrap; }
.c-footer .footer-legal { flex-basis: 100%; }
.c-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-left: var(--space_800, 32px);
}
.c-legal-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.c-legal-links a:hover { color: var(--primary); }
@media (width <= 720px) {
  .footer-legal { gap: 2px 16px; font-size: 12px; }
  .footer-legal a { min-height: 40px; }
  .footer-bottom .footer-legal {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }
  .c-footer .footer-legal { margin-top: 8px; }
  .c-legal-links { gap: 0 16px; }
}

/* A shared left axis for social, company, and policy information. */
footer.footer.footer-aligned[data-section="footer"] {
  min-height: 0;
  padding: 56px 0 48px;
  text-align: left;
}
footer.footer.footer-aligned[data-section="footer"] > .container {
  width: min(1120px, calc(100% - 64px));
  max-width: 1120px;
  margin-inline: auto;
}
footer.footer.footer-aligned[data-section="footer"] .footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding: 0;
}
footer.footer.footer-aligned[data-section="footer"] .footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
}
footer.footer.footer-aligned[data-section="footer"] .footer-social > span {
  margin: 0 4px 0 0;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}
footer.footer.footer-aligned[data-section="footer"] .footer-social-link {
  min-height: 40px;
  gap: 8px;
  padding: 0;
  white-space: nowrap;
  text-decoration: none;
}
footer.footer.footer-aligned[data-section="footer"] .footer-company {
  display: grid;
  justify-items: start;
  gap: 12px;
  min-width: 0;
}
footer.footer.footer-aligned[data-section="footer"] .footer-company .brand {
  width: fit-content;
  margin: 0;
}
footer.footer.footer-aligned[data-section="footer"] .footer-company > p {
  max-width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
footer.footer.footer-aligned[data-section="footer"] .footer-service-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
  min-width: 0;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
}
footer.footer.footer-aligned[data-section="footer"] .footer-service-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: inherit;
}
footer.footer.footer-aligned[data-section="footer"] .footer-copyright {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
footer.footer.footer-aligned[data-section="footer"] .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 28px;
  padding: 0;
  border-top: 0;
}
footer.footer.footer-aligned[data-section="footer"] .footer-legal {
  flex: 1 1 720px;
  justify-content: flex-start;
  gap: 0 24px;
  font-size: 13px;
}
footer.footer.footer-aligned[data-section="footer"] .footer-legal a {
  min-height: 40px;
}
footer.footer.footer-aligned[data-section="footer"] .back-top {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 40px;
  margin-left: auto;
  font-size: 13px;
  white-space: nowrap;
}
footer.footer.footer-aligned[data-section="footer"] :is(.footer-social-link, .footer-service-links a, .back-top):hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
footer.footer.footer-aligned[data-section="footer"] :is(.footer-service-links a, .back-top):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}
@media (width <= 960px) {
  footer.footer.footer-aligned[data-section="footer"] > .container {
    width: calc(100% - 48px);
  }
}
@media (width <= 720px) {
  footer.footer.footer-aligned[data-section="footer"] {
    padding: 40px 0 100px;
  }
  footer.footer.footer-aligned[data-section="footer"] > .container {
    width: calc(100% - 32px);
  }
  footer.footer.footer-aligned[data-section="footer"] .footer-main {
    gap: 32px;
  }
  footer.footer.footer-aligned[data-section="footer"] .footer-social {
    gap: 4px 20px;
    font-size: 13px;
  }
  footer.footer.footer-aligned[data-section="footer"] .footer-social > span {
    flex-basis: 100%;
    margin: 0 0 4px;
  }
  footer.footer.footer-aligned[data-section="footer"] .footer-social-link,
  footer.footer.footer-aligned[data-section="footer"] .footer-service-links a,
  footer.footer.footer-aligned[data-section="footer"] .footer-legal a,
  footer.footer.footer-aligned[data-section="footer"] .back-top {
    min-height: 44px;
  }
  footer.footer.footer-aligned[data-section="footer"] .footer-company > p,
  footer.footer.footer-aligned[data-section="footer"] .footer-service-links {
    font-size: 13px;
  }
  footer.footer.footer-aligned[data-section="footer"] .footer-service-links {
    gap: 0 20px;
    margin-top: 0;
  }
  footer.footer.footer-aligned[data-section="footer"] .footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    margin-top: 24px;
  }
  footer.footer.footer-aligned[data-section="footer"] .footer-legal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column: 1 / -1;
    grid-row: 1;
    gap: 0 16px;
    font-size: 12px;
  }
  footer.footer.footer-aligned[data-section="footer"] .back-top {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
}
