.site-footer {
  --site-footer-mark-width: clamp(3.5rem, 5.6vw, 6.3rem);
  --color-foreground: #fff;
  --color-muted: #fff;

  position: relative;
  color: #fff;
  z-index: 1;
  overflow: hidden;
  border-top: var(--border-width) solid var(--color-grid);
  background: var(--color-background);
  padding-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) var(--site-footer-mark-width);
  align-items: start;
  gap: var(--space-6);
  font-size: 0.6875rem;
}

.site-footer__grid > * {
  min-width: 0;
}

.site-footer .text-label {
  color: #fff;
  text-transform: none;
}

.site-footer__menu,
.site-footer__socials {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__menu--press {
  margin-top: 0;
}

.site-footer__menu,
.site-footer__socials,
.site-footer__meta,
.site-footer__legal {
  font: 400 0.6875rem / 1.4 var(--font-body);
  letter-spacing: normal;
}

.site-footer__address {
  display: grid;
  min-width: 0;
  margin: 0;
  font: inherit;
}

.site-footer__address-map {
  display: grid;
  width: min(100%, max-content);
  max-width: 100%;
}

.site-footer__address a,
.site-footer__address span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-footer__menu a,
.site-footer__socials a,
.site-footer__address a {
  text-decoration: none;
}

.site-footer__menu a,
.site-footer__socials a,
.site-footer__address a,
.site-footer__meta a {
  color: inherit;
}

.site-footer__menu a,
.site-footer__socials a,
.site-footer__address a,
.site-footer__legal a {
  transition: color 180ms ease;
}

.site-footer__menu a:hover,
.site-footer__menu a:focus-visible,
.site-footer__socials a:hover,
.site-footer__socials a:focus-visible,
.site-footer__address a:hover,
.site-footer__address a:focus-visible,
.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: var(--kodz-link-hover-color);
  text-decoration: none;
}

.site-footer__mark {
  width: calc(var(--site-footer-mark-width) / 2);
  height: auto;
  align-self: start;
  justify-self: end;
  margin-top: 0;
  color: #fff;
}

.site-footer__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) var(--site-footer-mark-width);
  align-items: end;
  gap: var(--space-6);
  margin-top: clamp(4rem, 7vw, 7rem);
  color: #fff;
  text-transform: uppercase;
}

.site-footer__meta p {
  margin: 0;
}

.site-footer__credit {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25em;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer__credit strong {
  font: inherit;
}

.site-footer__credit:hover,
.site-footer__credit:focus-visible {
  color: var(--kodz-link-hover-color);
  text-decoration: none;
}

.site-footer__legal-links {
  display: contents;
}

.site-footer__legal {
  justify-self: start;
  text-align: left;
  text-transform: none;
}

.site-footer__legal--notice {
  grid-column: 2;
}

.site-footer__legal--privacy {
  grid-column: 3;
}

.site-footer__legal a {
  width: max-content;
  text-decoration: none;
}

.site-footer__copyright {
  grid-column: 4;
  justify-self: end;
  text-align: right;
}

.site-footer__wordmark-frame {
  margin-top: clamp(2.5rem, 4.5vw, 5rem);
  margin-bottom: -1px;
  overflow: hidden;
  line-height: 0;
}

.site-footer__wordmark {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
}

@media (max-width: 767px) {
  .site-footer__menu a,
  .site-footer__socials a,
  .site-footer__address > a:not(.site-footer__address-map) {
    display: inline-flex;
    min-height: 1.5rem;
    align-items: center;
  }

  /* Share one mobile grid without duplicating links or changing desktop DOM. */
  .site-footer > .padding-global {
    --footer-mobile-column-gap: 1.25rem;
    display: grid;
    /* Start the second column at 60% of the viewport, including outer padding. */
    grid-template-columns: minmax(0, calc(60vw - var(--page-padding) - var(--footer-mobile-column-gap))) minmax(0, 1fr);
    gap: 2.5rem var(--footer-mobile-column-gap);
  }

  .site-footer__grid,
  .site-footer__meta {
    display: contents;
  }

  .site-footer__navigation-column {
    grid-column: 1;
    grid-row: 1;
  }

  .site-footer__social-column {
    grid-column: 2;
    grid-row: 1;
  }

  .site-footer__address-column {
    grid-column: 1;
    grid-row: 2;
  }

  .site-footer__mark {
    display: none;
  }

  .site-footer__legal-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-self: start;
    min-width: 0;
    margin-top: 0;
  }

  .site-footer__legal {
    text-align: left;
  }

  .site-footer__credit-wrap {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    justify-self: start;
    text-align: left;
  }

  .site-footer__credit {
    justify-content: flex-start;
  }

  .site-footer__copyright {
    grid-column: 2;
    grid-row: 3;
    align-self: end;
    justify-self: end;
    text-align: right;
  }

  .site-footer__wordmark-frame {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 0;
  }
}
