/* Site footer: the shop's name, how to reach it and the legal pages, then
   the small print, on the page's own canvas (only the sidebar is raised).
   Stays a direct child of body: the checkout dock's scrim watches it scroll
   in (base.css, --shop-footer). */
.site-footer {
  border-block-start: var(--border-width) solid var(--color-subtle);
  color: var(--color-text);
  font-size: var(--step--1);
  inline-size: 100%;
  margin-block-start: var(--space-xl);
}

/* Its three or four groups share the footer's whole width: auto-fit drops
   the empty tracks .auto-grid's auto-fill keeps for a card grid */
.site-footer__columns {
  grid-template-columns: repeat(auto-fit, minmax(min(var(--auto-grid-min), 100%), 1fr));
  padding-block: var(--space-l-xl) var(--space-l);
}

.site-footer__name {
  font-size: var(--step-1);
  line-height: var(--leading-snug);
}

/* Lists of links, bare on every page (global.css only reaches cube pages) */
.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer__heading {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  letter-spacing: normal;
  line-height: var(--leading-snug);
}

.site-footer__link {
  align-items: center;
  appearance: none;
  background: none;
  border: 0;
  color: var(--color-muted);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  gap: var(--space-2xs);
  padding: 0;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);

  &:hover {
    color: var(--color-text);
  }
}

.site-footer__bottom {
  border-block-start: var(--border-width) solid var(--color-subtle);
  color: var(--color-muted);
  padding-block: var(--space-m);
}
