/* v24zz14-eggup — two-row footer.
   Row 1: locked 157px product-of mark, right-aligned to the packed
   hero content edge (buttons/egg) on desktop, and to the wrap’s
   right content edge on mobile.
   Row 2, at the very bottom: “©2026 Hatch Labs™ privacy terms security”
   on one centered line, with a small gap under the mark.
   The mark is moved up by cutting the footer’s top padding in half
   (44px→22px desktop, 36px→18px below 760px). Bottom padding stays
   12px + iPhone safe area. 12px Space Mono and the tight ©-to-2
   spacing are unchanged. The same-row ink shift is cleared because
   the legal line is no longer beside the wordmark. CSS only; locked
   files are not edited.
*/
html body footer{
  padding-top:22px !important;
  padding-bottom:calc(12px + env(safe-area-inset-bottom, 0px)) !important;
}
@media (max-width: 760px){
  html body footer{
    padding-top:18px !important;
  }
}

html body footer .footer-inner,
html body footer .wrap.footer-inner,
html body footer .footer-inner.wrap,
html body footer.site-foot .footer-inner{
  display:flex !important;
  flex-direction:column !important;
  flex-wrap:nowrap !important;
  justify-content:flex-start !important;
  align-items:stretch !important;
  gap:0 !important;
  column-gap:0 !important;
  row-gap:0 !important;
  box-sizing:border-box !important;
}

/* Undo the v24zz13 packed-width padding-right so the legal line can
   center on the (already centered) wrap, i.e. on the page. The mark
   keeps the packed right edge via its own width, below. */
@media (min-width: 901px){
  html body footer .footer-inner,
  html body footer .wrap.footer-inner,
  html body footer .footer-inner.wrap,
  html body footer.site-foot .footer-inner{
    padding-right:6vw !important;
  }
}

/* Row 1: mark to the right. On mobile, the wrap’s right content edge. */
html body footer .hl-footer-credit-grokbot{
  box-sizing:border-box;
  display:flex !important;
  justify-content:flex-end !important;
  align-items:flex-end !important;
  flex:0 0 auto !important;
  width:157px;
  max-width:157px;
  min-width:0;
  margin:0 0 8px auto !important;
  padding:0 !important;
  line-height:0 !important;
  text-align:right;
  position:static !important;
  top:auto !important;
}
html body footer .hl-footer-credit-grokbot img{
  display:block;
  width:157px !important;
  max-width:100%;
  height:auto !important;
  aspect-ratio:133/38;
  margin-left:auto;
  border:0;
}
/* Desktop: packed-width rail, left-aligned with the hero, image at its right
   so the mark’s right edge matches the buttons and egg. */
@media (min-width: 901px){
  html body footer .hl-footer-credit-grokbot{
    width:var(--hl-packed-width) !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:auto !important;
    margin-bottom:8px !important;
  }
}

/* Row 2: legal line, one row, centered on the page. */
html body footer .footer-legal{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  justify-content:center !important;
  align-items:baseline !important;
  gap:1em !important;
  column-gap:1em !important;
  row-gap:0 !important;
  flex:0 0 auto !important;
  width:100% !important;
  max-width:none !important;
  min-width:0;
  margin:0 !important;
  position:static !important;
  top:auto !important;
}
html body footer .footer-copy,
html body footer .footer-links{
  flex:0 0 auto !important;
  white-space:nowrap !important;
}
html body footer .footer-links{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  justify-content:flex-start !important;
  align-items:baseline !important;
  width:auto !important;
}
@media (max-width: 600px){
  /* Keep one centered line on the phone; the mark is no longer on this row
     so the legal text no longer needs to stack. */
  html body footer .footer-legal{
    flex-direction:row !important;
    justify-content:center !important;
    align-items:baseline !important;
    max-width:none !important;
  }
  html body footer .hl-footer-credit-grokbot{
    flex:0 0 auto;
    width:157px;
    max-width:157px;
    min-width:157px;
  }
  html body footer .hl-footer-credit-grokbot img{
    width:157px !important;
    max-width:100%;
  }
}

@media (max-width: 360px){
  /* 393 fits the legal line; below ~360 it would overflow the 24px
     side padding, so wrap to two centered lines. */
  html body footer .footer-legal{
    flex-wrap:wrap !important;
    justify-content:center !important;
    row-gap:2px !important;
  }
}
