/* Sitewide footer - one quiet row, reusing the same restrained nav-style
 * typography as .primary-nav a and .project__back-link rather than a new
 * type scale. No box, no divider, no background change - it should read as
 * the last quiet line of the page.
 *
 * See base.css for the body/main flex rule that pins this to the bottom of
 * the viewport on pages shorter than the screen, instead of floating
 * awkwardly high after a short content block.
 */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding: var(--space-32) var(--page-margin) var(--space-48);
  margin-top: var(--space-96);
  font-family: var(--font-sans);
  font-size: var(--nav-font-size);
  letter-spacing: var(--nav-letter-spacing);
  color: var(--color-text-muted);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-24);
}

.site-footer__legal a {
  color: inherit;
  transition: opacity 0.15s ease;
}

.site-footer__legal a:hover {
  opacity: 0.7;
}

.site-footer__legal a:focus-visible {
  outline: 1px solid var(--color-text);
  outline-offset: var(--space-4);
}

@media (max-width: 767px) {
  .site-footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: var(--space-16);
  }

  .site-footer__legal {
    justify-content: center;
  }

  /* Same 44px-touch-target technique already used for .nav-toggle-label,
     the lightbox controls and .project__back-link: padding/min-height grow
     the tappable box, the visible text stays the same small size. */
  .site-footer__legal a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: var(--space-8) var(--space-4);
  }
}
