.me-footer {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 28px clamp(20px, 5vw, 84px);
  background: #263329;
  color: #f5f2eb;
  font: 400 14px/1.5 'DM Sans', Arial, sans-serif;
  text-align: left;
}
.me-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.me-footer__brand { font-weight: 700; }
.me-footer .me-footer__primary-links,
.me-footer .me-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
}
.me-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.me-footer a:hover { color: #f1d68b; }
.me-footer a:focus-visible { outline: 2px solid #f1d68b; outline-offset: 3px; }
.me-footer__bottom {
  border-top: 1px solid #677469;
  margin-top: 8px;
  padding-top: 6px;
  color: #d3d9d0;
  font-size: 12px;
}
.me-footer__note { margin: 4px 0 0; }
.me-bottom-assessment { display: none; }
@media (min-width: 701px) {
  html:has(.me-polish-home), html:has(.me-polish-story) { scroll-padding-top: 90px; }
  body.me-polish-home { padding-top: 88px; }
  body.me-polish-story { padding-top: 86px; }
  .me-polish-story .site-header {
    position: fixed;
    z-index: 50;
    inset: 0 0 auto;
    box-sizing: border-box;
  }
  .me-polish-story .header-links .assess {
    background: transparent;
    border: 1.5px solid #c9a84c;
    color: #1f2420;
    padding: 12px 19px;
  }
  .me-polish-story .header-links .assess:hover { background: #c9a84c; color: #1f2420; }
}
@media (max-width: 700px) {
  .me-polish-story .header-links .assess { display: none; }
  .me-footer { text-align: center; }
  .me-footer__top { flex-direction: column; gap: 2px; }
  .me-footer .me-footer__primary-links,
  .me-footer .me-footer__legal { justify-content: center; column-gap: 10px; }
  .me-footer__note { margin-top: 12px; }
  body.me-bottom-assessment-visible {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
  .me-bottom-assessment:not([hidden]) {
    position: fixed;
    z-index: 50;
    inset: auto 0 0;
    display: flex;
    justify-content: center;
    background: #c9a84c;
    padding: 0 12px env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -2px 12px rgb(0 0 0 / 15%);
  }
  .me-bottom-assessment a {
    display: grid;
    place-items: center;
    min-height: 56px;
    width: 100%;
    color: #1f2420;
    font: 700 14px/1.25 'DM Sans', Arial, sans-serif;
    text-align: center;
    text-decoration: none;
  }
  .me-bottom-assessment a:focus-visible { outline: 2px solid #1f2420; outline-offset: -4px; }
}
