/* ============================================================
   SHALLWE FOOTER / reusable standalone component
   - All selectors scoped to .shallwe-footer
   - Desktop: logo + legal links, business details + copyright
   - Mobile (<=820px): stacked editorial layout
   - No changes to scroll engine, CTA or other site sections
   ============================================================ */
.shallwe-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  background: #f4f4f0;
  color: #171717;
  font-family: "Pretendard", "Instrument Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -.025em;
}
.shallwe-footer, .shallwe-footer * { box-sizing: border-box; }
.shallwe-footer a { color: inherit; text-decoration: none; }
.shallwe-footer a:hover { opacity: .62; }
.shallwe-footer__inner { padding: 52px clamp(24px, 4vw, 72px) 34px; }
.shallwe-footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding-bottom: 48px; }
.shallwe-footer__logo { display: inline-block; width: clamp(140px, 15vw, 230px); flex: 0 0 auto; }
.shallwe-footer__logo img { display: block; width: 100%; height: auto; }
.shallwe-footer__nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 14px 0; padding-top: 4px; font-size: 14px; font-weight: 600; }
.shallwe-footer__nav a { display: inline-block; white-space: nowrap; line-height: 1.2; }
.shallwe-footer__nav a + a { margin-left: 20px; padding-left: 20px; border-left: 1px solid #b7b7b2; }
.shallwe-footer__nav strong { font-weight: 700; }
.shallwe-footer__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; border-top: 1px solid #cfcfca; padding-top: 24px; }
.shallwe-footer__company { display: grid; gap: 4px; min-width: 0; }
.shallwe-footer__company p { margin: 0; }
.shallwe-footer__company-name, .shallwe-footer__company p:nth-child(2) { font-weight: 700; }
.shallwe-footer__separator { margin: 0 7px; color: #999; }
.shallwe-footer__verify { font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }
.shallwe-footer__copyright { display: block; flex: 0 1 auto; font-family: "Instrument Sans", Arial, sans-serif; font-size: 10px; font-weight: 500; line-height: 1.5; letter-spacing: .01em; white-space: nowrap; }

/* MOBILE ---------------------------------------------------- */
@media (max-width: 820px) {
  .shallwe-footer { font-size: 12px; line-height: 1.7; }
  .shallwe-footer__inner { padding: 38px 16px max(30px, env(safe-area-inset-bottom)); }
  .shallwe-footer__top { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: 24px; }
  .shallwe-footer__logo { width: clamp(140px, 40vw, 195px); }
  .shallwe-footer__nav { justify-content: flex-start; gap: 10px 0; padding-top: 0; font-size: clamp(13px, 3.65vw, 15px); }
  .shallwe-footer__nav a + a { margin-left: 10px; padding-left: 10px; }
  .shallwe-footer__bottom { display: block; padding-top: 24px; }
  .shallwe-footer__company { gap: 5px; }
  .shallwe-footer__separator { margin: 0 4px; }
  .shallwe-footer__copyright { margin-top: 30px; font-size: 9px; white-space: normal; }
}

.shallwe-footer__verify {
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}


/* Mobile Safari can auto-detect business numbers as phone links.
   Only the number is plain text; the verification link keeps its underline. */
@media (max-width: 820px) {
  .shallwe-footer__registration-number,
  .shallwe-footer__registration-number a,
  .shallwe-footer__registration-number a[x-apple-data-detectors] {
    text-decoration: none !important;
    border-bottom: 0 !important;
    color: inherit !important;
    -webkit-text-decoration-line: none !important;
  }
  .shallwe-footer__company a.shallwe-footer__verify,
  .shallwe-footer__company a.shallwe-footer__verify:hover,
  .shallwe-footer__company a.shallwe-footer__verify:focus,
  .shallwe-footer__company a.shallwe-footer__verify:active {
    text-decoration: underline !important;
    text-underline-offset: 3px;
  }
}

/* SERVICE pages (STANDARD / CUSTOM / EDITORIAL) — same as the main page:
   on mobile the fixed header hides while the footer is on screen. */
@media (max-width: 820px) {
  html body.sw-footer-in-view #siteHeader#siteHeader,
  html body.sw-footer-in-view .site-header.site-header {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-110%) !important;
    pointer-events: none !important;
    transition: opacity .3s ease, transform .4s cubic-bezier(.22,1,.36,1), visibility .3s !important;
  }
  html body.sw-footer-in-view #siteHeader#siteHeader * {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
