/* Site footer. Consumes theme.css tokens only — no :root, no hex literals.

   Single-line layout, matching the design source (package/styles.css footer):
   copyright on the left, a short link row on the right, one thin rule above.
   This replaced a four-column footer (brand blurb + three link-group columns +
   a separate legal strip) at the client's request. */

footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  padding: var(--space-6) 0;
  font-family: var(--font-body);
  font-size: 13px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-legal {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

/* WCAG 2.5.5/2.5.8: the row is dense and the links are small, so give each one
   a full-height target rather than just its text box. */
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

@media (max-width: 700px) {
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-4);
  }
  .footer-links {
    gap: var(--space-5);
  }
}
