/* Shared light and dark Footer component styles. */
.global-footer,
.global-footer * {
  box-sizing: border-box;
}

.global-footer {
  --footer-bg: #f5f5f7;
  --footer-text: #6e6e73;
  --footer-link: rgba(0, 0, 0, 0.72);
  --footer-heading: #1d1d1f;
  --footer-line: #d2d2d7;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 12px;
  line-height: 16.0005px;
}

.global-footer.footer-dark {
  --footer-bg: #1d1d1f;
  --footer-text: rgba(255, 255, 255, 0.56);
  --footer-link: rgba(255, 255, 255, 0.8);
  --footer-heading: rgba(255, 255, 255, 0.92);
  --footer-line: rgba(255, 255, 255, 0.24);
}

.global-footer.footer-light {
  --footer-bg: #f5f5f7;
  --footer-text: #6e6e73;
  --footer-link: rgba(0, 0, 0, 0.72);
  --footer-heading: #1d1d1f;
  --footer-line: #d2d2d7;
}

.global-footer-content {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 17px 22px 22px;
}

.global-footer-disclaimer {
  margin: 0;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--footer-line);
  color: var(--footer-text);
  line-height: 16.0005px;
}

.global-footer-navigation-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  padding: 18px 0;
}

.global-footer-navigation-columns div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.global-footer-navigation-columns b {
  margin-bottom: 4px;
  color: var(--footer-heading);
}

.global-footer-navigation-columns a,
.global-footer-legal-section a,
.global-footer-icp a {
  color: var(--footer-link);
}

.global-footer-navigation-columns a:hover,
.global-footer-legal-section a:hover,
.global-footer-icp a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.global-footer-legal-section {
  display: flex;
  align-items: flex-start;
  padding-top: 10px;
  border-top: 1px solid var(--footer-line);
  color: var(--footer-text);
}

.global-footer-legal {
  display: flex;
  flex: 1;
  min-width: 0;
}

.global-footer-copyright {
  flex: none;
  margin: 5px 30px 0 0;
}

.global-footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 5px 30px 0 0;
}

.global-footer-legal-links a {
  padding: 0 9px;
}

.global-footer-legal-links a:first-child {
  margin-left: -9px;
}

.global-footer-legal-links i {
  width: 1px;
  height: 10px;
  margin: 3px 0;
  overflow: hidden;
  background: var(--footer-text);
  color: var(--footer-text);
  font-style: normal;
  font-size: 0;
}

.global-footer-region-link {
  margin-top: 5px;
  white-space: nowrap;
}

.global-footer-region-link-small {
  display: none;
}

.global-footer-region-link-large {
  margin-left: auto;
}

.global-footer-icp {
  margin: 0;
  color: var(--footer-text);
  line-height: 16.0005px;
}

.global-footer-icp a {
  color: inherit;
}

[data-site-footer] {
  padding-top: var(--gap);
  background: #fff;
}

.footer-joined-grid {
  padding-bottom: 0;
}

[data-footer-theme="dark"] .footer-joined-hero {
  background-color: #1d1d1f !important;
  background-image: none !important;
  color: #f5f5f7;
}

[data-footer-theme="dark"] .footer-joined-hero .overline {
  color: #a1a1a6;
}

[data-footer-theme="dark"] .footer-joined-hero .text-button {
  color: #2997ff;
}

[data-footer-theme="light"] .footer-joined-hero {
  background-color: #f5f5f7 !important;
  background-image: none !important;
  color: #1d1d1f;
}

@media (min-width: 735px) {
  .footer-joined-grid > .footer-joined-hero:last-child {
    grid-column: 1 / -1;
    width: calc(100% + 24px);
    margin-right: -12px;
    margin-left: -12px;
  }
}

@media (max-width: 734px) {
  .global-footer-content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .global-footer-navigation-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .global-footer-legal-section {
    display: block;
  }

  .global-footer-region-link-small {
    display: block;
    margin: 5px 0 0;
    padding-top: 4px;
  }

  .global-footer-legal {
    display: block;
    padding-top: 12px;
  }

  .global-footer-copyright {
    display: block;
    margin: 5px 0 0;
  }

  .global-footer-legal-links {
    margin: 5px 0 0;
  }

  .global-footer-region-link-large {
    display: none;
  }

  .footer-joined-grid > .footer-joined-hero:last-child {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
}
