.legal-footer {
  width: min(100%, 1024px);
  margin: 0 auto;
  padding: 0 52px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.footer-mark {
  flex: 0 0 auto;
  width: 15.64px;
  height: 10px;
  background: currentColor;
  mask: url("/assets/internauts-mark.svg") center / contain no-repeat;
  -webkit-mask: url("/assets/internauts-mark.svg") center / contain no-repeat;
}

.footer-credit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 138px;
  width: 138px;
  height: 44px;
  margin: -12px 0 -12px auto;
  text-decoration: none;
}

.footer-credit:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

.footer-credit-text {
  position: absolute;
  left: 24px;
  width: max-content;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
  visibility: hidden;
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
}

.footer-credit:is(:hover, :focus) .footer-credit-text {
  visibility: visible;
  clip-path: inset(0);
  animation: footer-typewriter 750ms steps(19, end) both;
}

@keyframes footer-typewriter {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}

@media (prefers-reduced-motion: reduce) {
  .footer-credit:is(:hover, :focus) .footer-credit-text { animation: none; }
}

@media (max-width: 900px) {
  .legal-footer { padding-inline: 32px; }
}

@media (max-width: 640px) {
  .legal-footer { padding-inline: 22px; }
}
