.site-footer {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.site-footer-main {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
  padding: clamp(2.6rem, 6vw, 5rem) clamp(1.25rem, 7vw, 8rem);
}

.site-footer-brand > a {
  display: inline-block;
  max-width: 100%;
}

.site-footer-brand img {
  display: block;
  width: min(195px, 100%);
  height: auto;
  filter: invert(1);
}

.site-footer-brand p {
  max-width: 25rem;
  margin: 1.1rem 0 0;
  color: #c9c3b6;
  font-size: .9rem;
  line-height: 1.7;
}

.site-footer-main nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .25rem 1.5rem;
}

.site-footer a {
  color: inherit;
}

.site-footer-main nav a,
.site-footer-legal nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-weight: 700;
}

.site-footer-main nav a {
  border-bottom: 1px solid rgba(255, 253, 247, .22);
  font-size: clamp(.88rem, 1.2vw, 1rem);
}

.site-footer-main nav a:hover,
.site-footer-legal nav a:hover {
  color: var(--yellow);
}

.site-footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .7rem clamp(1.25rem, 7vw, 8rem);
  border-top: 1px solid #49463f;
  background: #171613;
}

.site-footer-legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
}

.site-footer-legal nav a {
  color: #f3eddf;
  font-size: .78rem;
  text-decoration: underline;
  text-decoration-color: rgba(243, 237, 223, .45);
  text-underline-offset: 4px;
}

.site-footer-legal p {
  flex: 0 0 auto;
  margin: 0;
  color: #aaa398;
  font: 600 .7rem/1.5 Manrope, sans-serif;
}

.site-footer a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .site-footer-main {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2rem;
  }

  .site-footer-main nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .site-footer-main {
    padding-block: 2.5rem;
  }

  .site-footer-main nav {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-footer-main nav a {
    width: 100%;
  }

  .site-footer-legal {
    align-items: flex-start;
    flex-direction: column;
    gap: .5rem;
    padding-block: 1rem;
  }

  .site-footer-legal nav {
    width: 100%;
    flex-direction: column;
    gap: 0;
  }

  .site-footer-legal nav a {
    width: 100%;
  }
}
