@layer igzm-footer {
  .c-site-footer {
    padding-block: clamp(2.25rem, 5vw, 4rem) 1rem;
  }

  .c-site-footer :focus-visible {
    outline-color: var(--igzm-citron);
  }

  .c-site-footer__main {
    display: grid;
    align-items: start;
    gap: 1.75rem 2.5rem;
  }

  .c-site-footer__brand {
    display: inline-flex;
    justify-self: start;
    align-items: center;
    gap: .7rem;
    font: 600 .82rem/1.45 var(--font-body);
    text-decoration: none;
  }

  .c-site-footer__brand .c-footer-logo {
    inline-size: 3rem;
    block-size: 3rem;
  }

  .c-site-footer__brand .c-footer-logo--on-dark {
    inline-size: clamp(6rem, 12vw, 9rem);
    block-size: auto;
  }

  .c-site-footer__brand .c-brand-image--library {
    inline-size: 12rem;
    max-inline-size: 100%;
    block-size: auto;
    padding: .5rem .65rem;
    border-radius: .375rem;
    background: var(--igzm-paper);
  }

  .c-site-footer__main h2 {
    margin: 0 0 .55rem;
    font: 600 1.15rem/1.25 var(--font-heading);
    text-wrap: initial;
  }

  .c-site-footer__nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .c-site-footer__nav .sub-menu {
    margin-inline-start: 1rem;
  }

  .c-site-footer__nav a,
  .c-site-footer__office a,
  .c-site-footer__legal a {
    display: inline-flex;
    align-items: center;
    min-block-size: 2.75rem;
    overflow-wrap: anywhere;
    text-decoration-color: var(--color-text-inverse-muted);
    text-decoration-thickness: 1px;
  }

  .c-site-footer__main a:hover,
  .c-site-footer__legal a:hover {
    color: var(--igzm-citron);
    text-decoration-color: currentColor;
  }

  .c-site-footer__office address {
    display: grid;
    justify-items: start;
    color: var(--color-text-inverse-muted);
    font-style: normal;
    font-variant-numeric: tabular-nums;
  }

  .c-site-footer__office address > span {
    margin-block: .38rem .3rem;
  }

  .c-site-footer__contact {
    font-weight: 700;
  }

  .c-site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 1.5rem;
    margin-block-start: 1.75rem;
    padding-block-start: .65rem;
    border-block-start: 1px solid var(--color-border-inverse);
    color: var(--color-text-inverse-muted);
    font-size: .82rem;
  }

  .c-site-footer__legal p {
    margin: .55rem 0;
  }

  @media (23rem <= width < 48rem) {
    .c-site-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
    .c-site-footer__brand { grid-column: 1 / -1; }
  }

  @media (min-width: 48rem) {
    .c-site-footer__main {
      grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) minmax(0, 1fr);
    }
  }
}
