/* Shared footer. Every page links this file. Tokens come from the page. */

.site-footer {
  border-top: 1px solid var(--line);
  padding: calc(var(--space) * 4) 0 calc(var(--space) * 6);
}
.site-footer > .wrap {
  width: min(1128px, calc(100% - var(--space) * 4));
  margin-inline: auto;
  font-size: 13px;
  color: var(--mute);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-tagline {
  margin: 0;
  font-size: 13px;
  color: var(--mute);
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--mute);
  font-size: 13px;
  text-decoration: none;
}
.footer-link:hover,
.footer-link:focus-visible,
.footer-link[aria-current="page"] {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  color: var(--mute);
  text-decoration: none;
  transition: color 150ms;
}
.footer-socials a:hover,
.footer-socials a:focus-visible { color: var(--paper); }
.footer-socials svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.footer-legal {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.52);
}
.footer-legal a {
  color: inherit;
  text-decoration: none;
}
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-sep { margin-inline: 8px; }
[data-theme="light"] .site-footer p { color: var(--body); }
[data-theme="light"] .site-footer .footer-legal {
  color: rgba(23, 23, 23, 0.55);
}
[data-theme="light"] .site-footer .footer-legal a:hover,
[data-theme="light"] .site-footer .footer-legal a:focus-visible {
  color: rgba(23, 23, 23, 0.8);
}
.footer-link:focus-visible,
.footer-legal a:focus-visible,
.footer-socials a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
@media (max-width: 768px) {
  .site-footer > .wrap { width: min(1128px, calc(100% - 40px)); }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
  .footer-line {
    white-space: nowrap;
    font-size: clamp(10.5px, 3.35vw, 13px);
  }
}
@media (max-width: 520px) {
  .site-footer > .wrap { width: min(1128px, calc(100% - var(--space) * 2)); }
}
