/*
 * The footer (SiteFooter.tsx, and footer.ts for the hub). Needs tokens.css.
 * The app only places it; it is the same in every Section, with no accent.
 */
.site-footer {
  box-sizing: border-box;
  width: 100%;
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--theme-border);
  background: var(--theme-bg);
  color: var(--theme-faint);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.site-footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto 14px;
}

.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--theme-text-dim);
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-footer-mark {
  width: 22px;
  height: 22px;
  border-radius: 4px;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 6px;
}

.site-footer-links a,
.site-footer-links button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  background: none;
  border: none;
  color: var(--theme-muted);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.site-footer-links .site-footer-discord {
  justify-content: center;
  min-width: 44px;
}

.site-footer-brand:hover,
.site-footer-links a:hover,
.site-footer-links button:hover {
  color: var(--theme-text);
}

.site-footer-notice,
.site-footer-copy {
  max-width: 720px;
  margin: 0 auto;
}

.site-footer-copy {
  margin-top: 6px;
  color: var(--theme-muted);
}

@media (min-width: 1024px) {
  .site-footer {
    padding: 20px 24px calc(22px + env(safe-area-inset-bottom));
  }

  .site-footer-top {
    flex-direction: row;
    justify-content: space-between;
  }

  .site-footer-links a,
  .site-footer-links button {
    min-height: 32px;
  }
}
