/* Site footer. Markup: scripts/layout (npm run sync:layout). Behaviour: js/footer.js.
   Fingerprinted: pages load footer.<hash>.css, which sync:layout rewrites. */

.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--border); margin-top: 2rem; background: var(--bg); font-size: var(--fs-body); line-height: 1.5; }
/* Every element below sets its own margin: pages style bare p, ul and li, and those rules must not reach the footer. */
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
  max-width: 1200px; margin: 0 auto; padding: 3rem 2rem 2rem;
}

/* Brand column. The logo matches the nav's. */
.footer-logo {
  display: inline-flex; align-items: baseline; margin-bottom: 0.75rem; text-decoration: none; line-height: 1.2;
  font-family: 'Exo 2', sans-serif; font-size: var(--fs-lead); font-weight: 900; letter-spacing: 0.08em;
}
.footer-logo img { height: 1.35em; width: auto; align-self: center; margin-right: 0.35em; }
.footer-logo .star  { color: var(--accent); text-shadow: 0 0 20px var(--accent); }
.footer-logo .kraft { color: #fff; }
.footer-logo .ika   { color: var(--accent2); text-shadow: 0 0 20px var(--accent2); }
.footer-tagline, .footer-collab { font-size: var(--fs-small); color: var(--muted); line-height: 1.6; margin: 0; }
.footer-tagline { margin-bottom: 0.5rem; }
.footer-collab a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.footer-collab a:hover { text-decoration-thickness: 2px; }
.footer-socials { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 1px solid var(--border); color: var(--muted); transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-social:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,212,255,0.06); }

/* Link columns. Policy entries are buttons (they open a dialog) styled as links. */
.footer-col-title {
  font-family: 'Share Tech Mono', monospace; font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1rem; line-height: 1.4;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links li { display: block; margin: 0; padding: 0; line-height: 1.4; font-size: inherit; }
.footer-links li::before { content: none; }
.footer-link {
  font-family: 'Share Tech Mono', monospace; font-size: var(--fs-small); letter-spacing: 0.05em; line-height: 1.4;
  color: var(--muted); text-decoration: none; text-align: left;
  background: none; border: 0; padding: 0; cursor: pointer; transition: color 0.2s;
}
.footer-link:hover { color: var(--accent); }
.site-footer a:focus-visible, .site-footer button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Bottom strip */
.footer-bottom {
  display: flex; flex-direction: column; gap: 0.4rem;
  max-width: 1200px; margin: 0 auto; padding: 1.25rem 2rem; border-top: 1px solid var(--border);
}
.footer-bottom p { margin: 0; font-family: 'Share Tech Mono', monospace; font-size: var(--fs-label); letter-spacing: 0.06em; line-height: 1.6; color: var(--muted); }
.footer-bottom a { color: var(--accent); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.75rem; padding: 2rem 1.25rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding: 1rem 1.25rem; }
}
@media (max-width: 400px) {
  .footer-inner { grid-template-columns: 1fr; }
}
@media print {
  .site-footer { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-social, .footer-link { transition: none; }
}
