/* One footer for every page on theionproject.com.
   Self-contained: its own tokens and fonts, scoped under footer.ion-footer so
   each page's older inline "footer {}" rules cannot reshape it. Loaded as a
   file because most pages send CSP style-src 'self' (inline <style> is blocked). */
@import url('/css/fonts-local.css');

footer.ion-footer{
  --f-bg:#06060c;
  --f-line:rgba(255,255,255,0.07);
  --f-text:#ecedf3;
  --f-text-2:#b8bacf;
  --f-text-3:#9da0bd;
  --f-cyan:#00ffaa;
  --f-mono:'Space Mono',ui-monospace,monospace;
  --f-sans:'Inter',-apple-system,'Segoe UI',sans-serif;
  display:block;position:relative;z-index:2;
  margin:0;padding:0;
  background:var(--f-bg);
  border-top:1px solid var(--f-line);
  color:var(--f-text-3);
  font-family:var(--f-sans);font-size:14px;line-height:1.5;
  text-align:left;
  -webkit-font-smoothing:antialiased;
}
/* The one accent moment: a cyan glint along the top edge. */
footer.ion-footer::before{
  content:"";position:absolute;top:-1px;left:50%;transform:translateX(-50%);
  width:min(560px,70%);height:1px;
  background:linear-gradient(90deg,transparent,rgba(0,255,170,0.45),transparent);
}
footer.ion-footer *{box-sizing:border-box}
footer.ion-footer ul,footer.ion-footer li{list-style:none;background:none;border:0}
footer.ion-footer li{position:static;margin:0;padding:0;color:inherit;line-height:inherit;font-size:inherit}
footer.ion-footer li::before,footer.ion-footer li::after,footer.ion-footer a::before,footer.ion-footer a::after{content:none;display:none}
footer.ion-footer p{margin:0;padding:0;max-width:none;font-size:inherit;line-height:inherit;color:inherit;font-family:inherit}
footer.ion-footer a:hover{text-decoration:none}
footer.ion-footer a{margin:0;padding:0;border:0;background:none;color:var(--f-text-2);text-decoration:none;transition:color .15s ease}
footer.ion-footer a:hover{color:var(--f-cyan)}
footer.ion-footer a:focus-visible{outline:2px solid var(--f-cyan);outline-offset:3px;border-radius:3px}

footer.ion-footer .ion-footer__inner{max-width:1160px;margin:0 auto;padding:64px 24px 0}
footer.ion-footer .ion-footer__top{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,2fr);gap:48px}

footer.ion-footer .ion-footer__mark{display:inline-flex;align-items:center;gap:10px}
footer.ion-footer .ion-footer__mark{color:var(--f-text)}
footer.ion-footer .ion-footer__mark svg{width:24px;height:24px;flex:none}
footer.ion-footer .ion-footer__name{font-family:var(--f-mono);font-size:15px;font-weight:700;letter-spacing:.01em}
footer.ion-footer .ion-footer__name b{color:var(--f-cyan);font-weight:700}
footer.ion-footer .ion-footer__tag{margin:14px 0 22px;max-width:32ch;color:var(--f-text-3);font-size:14px}

footer.ion-footer .ion-footer__cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
footer.ion-footer .ion-footer__label{margin:0 0 16px;font-family:var(--f-mono);font-size:11px;font-weight:400;
  letter-spacing:.14em;text-transform:uppercase;color:var(--f-text-3)}
footer.ion-footer .ion-footer__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
footer.ion-footer .ion-footer__list li{margin:0;padding:0}
footer.ion-footer .ion-footer__list a{display:inline-block}
footer.ion-footer .ion-footer__list .ion-footer__flag{color:var(--f-text);font-weight:500}
footer.ion-footer .ion-footer__list .ion-footer__flag:hover{color:var(--f-cyan)}
footer.ion-footer .ion-footer__desc{display:block;margin-top:2px;font-size:12.5px;color:var(--f-text-3)}

footer.ion-footer .footer-social{display:flex;gap:18px;align-items:center}
footer.ion-footer .footer-social a{display:inline-flex;line-height:0}
footer.ion-footer .footer-social svg{width:18px;height:18px;fill:currentColor}
footer.ion-footer .footer-social svg.fs-stroke{fill:none;stroke:currentColor;stroke-width:2}
footer.ion-footer .footer-social svg .fs-dot{fill:currentColor;stroke:none}

footer.ion-footer .ion-footer__bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;
  margin-top:56px;padding:22px 0 28px;border-top:1px solid var(--f-line);
  font-size:12.5px;color:var(--f-text-3)}
footer.ion-footer .ion-footer__bottom p{margin:0}

@media (max-width:860px){
  footer.ion-footer .ion-footer__top{grid-template-columns:1fr;gap:40px}
}
@media (max-width:520px){
  footer.ion-footer .ion-footer__inner{padding:48px 20px 0}
  footer.ion-footer .ion-footer__cols{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px}
  footer.ion-footer .ion-footer__bottom{flex-direction:column;align-items:flex-start;margin-top:40px}
}

/* Page-specific links that used to live in a few app footers (Play-required
   delete-account and app privacy/terms), kept just above the shared footer. */
.page-links{max-width:1160px;margin:0 auto;padding:28px 24px;font-family:'Inter',-apple-system,sans-serif;
  font-size:13px;color:#9da0bd;display:flex;flex-wrap:wrap;gap:8px 20px;position:relative;z-index:2}
.page-links a{color:#b8bacf;text-decoration:none}
.page-links a:hover{color:#00ffaa}
.page-links strong{color:#ecedf3;font-weight:600}
