/* Memento — site footer component
   Used by /, /origin-story and /privacy-policy-and-terms-of-use.

   Markup:
     <footer class="site-footer">            <- default: left aligned, top rule
       <span>&copy; 2026 Memento</span>
       <a href="...">Link</a>
       <a href="...">Link</a>
     </footer>

   Add the --center modifier on the landing page, where the footer sits in a
   centred column and needs no rule above it:
     <footer class="site-footer site-footer--center">

   Colours come from the page's own --muted / --line / --accent variables. */

.site-footer {
  margin-top: 112px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0;
  row-gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* 20px of breathing room on both sides of every item. */
.site-footer > * { margin-left: 20px; margin-right: 20px; }

.site-footer a { color: var(--muted); font-size: 14px; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: none; }

.site-footer--center {
  margin-top: 160px;
  padding-top: 0;
  border-top: none;
  justify-content: center;
  text-align: center;
}

/* Mobile and below: one item per line. */
@media (max-width: 640px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 12px;
  }
  .site-footer--center {
    align-items: center;
    margin-top: 80px;
  }
}
