.site-shell #site-footer {
  font-family: var(--home-font-family);
  --home-heading-font: 'PingFang SC', 'MiSans VF', 'Microsoft YaHei', sans-serif;
  color: #76767f;
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  text-align: left;
  background: #f5f5f7;
  border: 0;
  padding: 40px 0 24px;
}
.site-shell #site-footer > div {
  width: min(92%, 1440px);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
.site-shell #site-footer .site-footer-main {
  display: grid;
  align-items: start;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  min-height: 197px;
  gap: 24px;
  margin: 0;
}
.site-shell #site-footer .site-footer-links {
  display: grid;
  grid-column: 1;
  grid-row: 1 / 3;
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: #76767f;
  grid-template-columns: repeat(3, minmax(0, 200px));
  gap: clamp(20px, 3.13vw, 60px);
}
.site-shell #site-footer .site-footer-group h3 {
  color: #262629;
  line-height: 22px;
  font-family: var(--home-heading-font);
  font-weight: 500;
  font-size: 14px;
  margin: 0 0 16px;
}
.site-shell #site-footer .site-footer-group ul {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 20px;
  color: #424245;
}
.site-shell #site-footer .site-footer-group li {
  min-width: 0;
  margin: 0;
  line-height: 17px;
}
.site-shell #site-footer #footer-group-purchase + ul li {
  line-height: 22px;
}
.site-shell #site-footer #footer-group-partnerships + ul {
  gap: 15px;
}
.site-shell #site-footer .site-footer-links a,
.site-shell #site-footer .site-footer-placeholder {
  display: inline-block;
}
.site-shell #site-footer .site-footer-links a {
  width: fit-content;
  letter-spacing: normal;
  text-align: left;
}
.site-shell #site-footer a:hover {
  color: #262629;
}
.site-shell #site-footer .site-footer-placeholder {
  color: #76767f;
}
.home-footer-download {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 26px;
}
.home-footer-download img {
  box-sizing: border-box;
  padding: 7px;
  border: 1px solid #f0f0f3;
  border-radius: 8px;
  background: white;
  width: 112px;
  height: 112px;
}
.home-footer-download strong,
.home-footer-download small {
  display: block;
}
.home-footer-download strong {
  font: 500 16px/22px var(--home-heading-font, var(--home-font-family));
  color: #262629;
}
.home-footer-download small {
  margin-top: 8px;
  line-height: 21px;
  font-size: 13px;
}
.site-shell #site-footer .site-footer-social {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  gap: 16px;
  align-self: end;
  margin-bottom: 0;
}
.site-shell #site-footer .site-footer-social a {
  width: 24px;
  height: 24px;
  border-radius: 0;
}
.site-shell #site-footer .site-footer-social a > div {
  width: 20px;
  height: 20px;
}
.site-shell #site-footer .site-footer-social a img {
  filter: grayscale(1) brightness(0);
  opacity: 0.5;
}
.site-shell #site-footer .site-footer-social a:hover img {
  opacity: 1;
}
/* Keep edge social QR popovers within the footer on tablet and narrow screens. */
.site-shell #site-footer .site-footer-social > .group:first-child > .absolute {
  left: 0;
  right: auto;
}
.site-shell #site-footer .site-footer-social > .group:last-child > .absolute {
  left: auto;
  right: 0;
}

.site-shell #site-footer .site-footer-legal {
  display: flex;
  color: #a1a1ad;
  font-size: 12px;
  line-height: 20px;
  font-weight: 400;
  align-items: center;
  flex-direction: column;
  margin-top: 24px;
  padding-top: 23px;
  border-top: 1px solid #e4e4e8;
  gap: 10px;
}
.site-shell #site-footer .site-footer-policy {
  order: -1;
  display: flex;
  flex-wrap: wrap;
  color: #76767f;
  font-size: 13px;
  margin: 0;
  justify-content: center;
  line-height: 22px;
  gap: 0;
}
.site-shell #site-footer .site-footer-policy > * {
  margin: 0;
  padding: 0 5px;
}
.site-shell #site-footer .site-footer-policy > * + *::before {
  content: '|';
  color: #b5b5bd;
  margin: 0 10px 0 0;
}

@media (max-width: 767px) {
  .site-shell #site-footer .site-footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .site-shell #site-footer .site-footer-links {
    grid-column: 1;
    grid-row: auto;
    gap: 12px;
  }
  .site-shell #site-footer .site-footer-social {
    gap: 20px;
  }
  .site-shell #site-footer .site-footer-social,
  .home-footer-download {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
  .site-shell #site-footer .site-footer-legal {
    margin-top: 24px;
    text-align: center;
  }
  .site-shell #site-footer .site-footer-policy {
    flex-wrap: wrap;
    row-gap: 6px;
  }
}

/* The embedded document marker is set before React takes over. */
html.app-mode #site-footer {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .site-shell #site-footer .site-footer-social .group > .absolute {
    transition: opacity var(--nav-motion), visibility 320ms;
  }
  .site-shell #site-footer .site-footer-social a img { transition: opacity 100ms linear; }
}
