/* Site footer on every page (partials/footer + partials/company_details).
   Scoped to .site-footer.story-footer.footer-sitemap so it wins over the older footer rules in styles.css and home-candy.css. */

.site-footer.story-footer.footer-sitemap {
  padding: clamp(40px, 5vw, 64px) 0 calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(246, 243, 251, 0.6);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: start;
}
.site-footer.story-footer.footer-sitemap .shell {
  display: block;
  width: min(1120px, 100% - 2 * clamp(20px, 5vw, 48px));
  max-width: none;
  margin-inline: auto;
  padding: 0;
  text-align: start;
}
.site-footer.story-footer.footer-sitemap a { text-decoration: none; }

/* Brand and link columns */
.site-footer.story-footer.footer-sitemap .site-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 32px 48px; align-items: start; }
.site-footer.story-footer.footer-sitemap .site-footer__brand { display: grid; justify-items: start; gap: 18px; min-width: 0; }
.site-footer.story-footer.footer-sitemap .site-footer__logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.site-footer.story-footer.footer-sitemap .site-footer__logo img { flex: none; width: 32px; height: 32px; border-radius: 8px; }
.site-footer.story-footer.footer-sitemap .site-footer__store { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 10px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); color: #fff; line-height: 1.05; transition: opacity 0.2s; }
.site-footer.story-footer.footer-sitemap .site-footer__store:hover { opacity: 0.85; }
.site-footer.story-footer.footer-sitemap .site-footer__store img { flex: none; width: 17px; height: auto; }
.site-footer.story-footer.footer-sitemap .site-footer__store span { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.site-footer.story-footer.footer-sitemap .site-footer__store small { display: block; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.01em; }

.site-footer.story-footer.footer-sitemap .site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; min-width: 0; }
.site-footer.story-footer.footer-sitemap .site-footer__col { min-width: 0; }
.site-footer.story-footer.footer-sitemap .site-footer__heading { margin: 0 0 14px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: #fff; }
.site-footer.story-footer.footer-sitemap .site-footer__col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer.story-footer.footer-sitemap .site-footer__col a { color: rgba(246, 243, 251, 0.62); overflow-wrap: anywhere; transition: color 0.2s; }
.site-footer.story-footer.footer-sitemap .site-footer__col a:hover { color: #fff; }

/* Company and legal line */
.site-footer.story-footer.footer-sitemap .company-footer { margin-top: clamp(32px, 4vw, 48px); padding: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.08); color: rgba(246, 243, 251, 0.5); font-family: inherit; font-size: 0.8rem; line-height: 1.55; }
.site-footer.story-footer.footer-sitemap .company-footer__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.site-footer.story-footer.footer-sitemap .company-footer p { margin: 0; }
.site-footer.story-footer.footer-sitemap .company-footer strong { margin: 0; font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.site-footer.story-footer.footer-sitemap .company-footer__id span { display: inline; }
.site-footer.story-footer.footer-sitemap .company-footer-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.site-footer.story-footer.footer-sitemap .company-footer-links a,
.site-footer.story-footer.footer-sitemap .company-footer-links button { color: inherit; text-decoration: none; }
.site-footer.story-footer.footer-sitemap .company-footer-links a:hover,
.site-footer.story-footer.footer-sitemap .company-footer-links button:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer.story-footer.footer-sitemap .company-footer address { max-width: none; margin: 6px 0 0; font-size: 0.74rem; font-style: normal; color: rgba(246, 243, 251, 0.38); }

@media (max-width: 760px) {
  .site-footer.story-footer.footer-sitemap .site-footer__top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .site-footer.story-footer.footer-sitemap .site-footer__brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
  .site-footer.story-footer.footer-sitemap .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .site-footer.story-footer.footer-sitemap .site-footer__col--product { grid-row: span 2; }
  .site-footer.story-footer.footer-sitemap .company-footer__row { flex-direction: column; align-items: flex-start; }
}
