.footer-about {
  position: relative;
  width: fit-content;
}

.footer-about-trigger {
  width: fit-content;
}

.footer-about-popover {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  z-index: 20;
  width: min(360px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(7, 20, 38, 0.98);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.footer-about:hover .footer-about-popover,
.footer-about:focus-within .footer-about-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-footer .footer-about-popover strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 14px;
}

.site-footer .footer-about-popover p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer .footer-about-popover ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.site-footer .footer-about-popover li {
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.45;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent-strong);
}

@media (max-width: 860px) {
  .footer-about-popover {
    position: static;
    display: none;
    width: 100%;
    margin-top: 10px;
    transform: none;
  }

  .footer-about:hover .footer-about-popover,
  .footer-about:focus-within .footer-about-popover {
    display: block;
  }
}

/* Shared footer overflow protection. */
.site-footer,
.site-footer *,
.footer-about,
.footer-about-popover {
  min-width: 0;
  max-width: 100%;
}

.site-footer {
  overflow-x: clip;
}

.site-footer a,
.site-footer p,
.site-footer li,
.footer-about-popover {
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .footer-about,
  .footer-about-trigger {
    width: 100%;
  }

  .footer-about-popover {
    padding: 12px;
  }
}

@media (max-width: 360px) {
  .footer-about-popover {
    padding: 10px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    gap: 18px;
    padding-inline: 14px;
  }

  .site-footer h2 {
    margin-bottom: 8px;
  }

  .site-footer a,
  .site-footer button {
    align-items: center;
    display: inline-flex;
    min-height: 44px;
  }
}

@media (max-width: 414px) {
  .site-footer {
    padding: 18px 12px 108px;
  }

  .site-footer p,
  .site-footer a,
  .site-footer li {
    font-size: 13px;
    line-height: 1.45;
  }
}
