/* Site footer — shared by index.html and download.html (and any page with
   [data-site-footer]).
   Markup comes from footer.js; each page only drops in
   <div class="footer" data-site-footer></div>. Colors/fonts reuse the
   page's own tokens. --footer-gap sets the space above the dashed line;
   --footer-pad-bottom lets a page subtract the bottom padding its own
   wrapper already adds, so text-to-page-end matches line-to-text (28px). */
.footer {
  margin-top: var(--footer-gap, 90px);
  padding: 28px 0 var(--footer-pad-bottom, 28px);
  border-top: 1px dashed var(--stroke);
  display: flex; justify-content: space-between; gap: 14px 32px; flex-wrap: wrap;
  font-family: var(--f-pixel); font-size: 9px; letter-spacing: 0.2em; color: var(--dim);
}
.footer a { color: var(--accent); text-decoration: none; margin-left: 10px; }
.footer a:hover { text-decoration: underline; }
.footer .mail {
  appearance: none; border: 0; background: none; padding: 0;
  font: inherit; letter-spacing: inherit; color: var(--accent); cursor: pointer;
}
.footer .mail:hover { text-decoration: underline; }
/* Out of flow so the address sits flush right. The label shows above the
   address; only where the page margin has room for it (wide windows) does
   it hang to the right of it, so it never sticks out of the window. */
.footer .contact { position: relative; }
.footer .copied {
  position: absolute; right: 0; bottom: 100%; margin-bottom: 8px; white-space: nowrap;
  color: var(--progress, #1fa84a); opacity: 0; transition: opacity .15s;
}
.footer .copied.on { opacity: 1; }
@media (min-width: 1340px) {
  .footer .copied { right: auto; bottom: auto; left: 100%; top: 0; margin: 0 0 0 10px; }
}
/* Second row: the privacy link on the left, the not-affiliated line on
   the right, in the same type as the first row. */
.footer .legal {
  flex-basis: 100%; margin-top: 6px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px 32px;
}
.footer .legal a { margin-left: 0; }
.footer .legal .unofficial { text-align: right; }
/* Narrow: the address gets its own line, with room between the lines;
   the second row stacks, left-aligned. */
@media (max-width: 600px) {
  .footer { line-height: 1.7; row-gap: 14px; }
  .footer .mail { display: block; margin-top: 6px; }
  .footer .copied { bottom: auto; top: 100%; margin: 2px 0 0; }
  .footer .legal { flex-direction: column; align-items: flex-start; margin-top: 4px; }
  .footer .legal .unofficial { text-align: left; }
}
