.tool-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.tool-footer-note,
.tool-footer small {
  margin: 0;
  color: var(--tx2, var(--text-secondary));
  font-size: 0.86rem;
  line-height: 1.65;
}

.tool-footer-links,
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  align-items: center;
}

.tool-footer-links a,
.site-footer .footer-links a {
  color: var(--tx2, var(--text-secondary));
  font-size: 0.84rem;
  text-decoration: none;
}

.tool-footer-links a:hover,
.site-footer .footer-links a:hover {
  color: var(--ac, var(--text-primary));
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer .footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: initial;
  gap: 1.25rem;
}

.site-footer .footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.site-footer .footer-about p {
  max-width: 76ch;
  color: var(--tx2, var(--text-secondary));
  font-size: 0.88rem;
  line-height: 1.7;
}

.site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bd, var(--border-subtle));
  color: var(--mut, var(--text-muted));
  font-size: 0.8rem;
}

.site-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
}

.site-footer .footer-brand img,
.topbar .tool-brand img {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 0.55rem;
  object-fit: cover;
}

.site-footer .footer-brand-by,
.topbar .tool-brand-by {
  color: var(--mut, var(--text-muted));
  font-size: 0.75rem;
}

@media (max-width: 600px) {
  .tool-footer-links,
  .site-footer .footer-links {
    gap: 0.65rem 1rem;
  }
}
