/* Lives inside .app-main so it sits below scrollable content; spanning the
   whole shell width would clash with the sticky sidebar. */
.app-footer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 14px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 0.82rem;
  user-select: none;
}
/* Used on auth-screen (no sidebar/topbar to anchor a panel border). */
.app-footer.app-footer-minimal {
  border-top: none;
  background: transparent;
  padding: 12px 16px;
}
.app-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
/* Match sidebar nav-item palette for consistent chrome. */
.app-footer-links a,
.app-footer-links a:visited,
.app-footer-links a:link {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.app-footer-links a:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  text-decoration: none;
}
.app-footer-sep {
  color: var(--border-color);
}
.app-footer-divider {
  color: var(--border-color);
  user-select: none;
}
/* Gold-highlight is opt-in via .app-footer-copy-accent. */
.app-footer-copy {
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.app-footer-copy.app-footer-copy-accent {
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 0.4px;
}
/* Mirrors topbar trim. About + Legal stay at every width (no other surface
   for them); Support is in the user-chip menu so footer link is redundant. */
@media (max-width: 1100px) {
  .app-footer-link-donate { display: none; }
}
@media (max-width: 600px) {
  .app-footer {
    padding: 12px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .app-footer-copy {
    white-space: normal;
  }
  .app-footer-divider { display: none; }
}
