/* TOOK 공통 서비스 푸터 — 메인·스토리·커뮤니티·내 TOOK 동일 구성 */
.site-footer {
  margin-top: 46px;
  background: #0b2026;
  color: #eef6f7;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-footer__inner {
  width: min(1440px, calc(100% - clamp(40px, 8vw, 120px)));
  display: grid;
  gap: 18px;
  margin: 0 auto;
  padding: 38px 0 30px;
}

.footer-heading,
.footer-lower {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.footer-brand__logo {
  position: relative;
  width: 132px;
  height: 44px;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(2, 12, 18, .24);
}

.footer-brand__logo img {
  position: absolute;
  top: -49px;
  left: -9px;
  width: 148px;
  max-width: none;
  height: 148px;
  object-fit: contain;
}

.footer-service-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(155, 217, 222, .22);
  border-radius: 999px;
  background: rgba(155, 217, 222, .08);
  color: #9bd9de;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  white-space: nowrap;
}

.footer-company-info,
.footer-notice {
  max-width: 1080px;
  margin: 0;
}

.footer-company-info {
  color: rgba(216, 229, 231, .8);
  font-size: 12px;
  line-height: 1.75;
}

.footer-company-info strong,
.footer-privacy-alert strong {
  color: #f8fbfb;
  font-weight: 850;
}

.footer-company-info a {
  color: #d8e5e7;
  font-weight: 750;
  text-decoration-color: rgba(216, 229, 231, .36);
  text-underline-offset: 3px;
}

.footer-company-info a:hover { color: #9bd9de; }

.footer-notice {
  color: rgba(159, 180, 184, .88);
  font-size: 11px;
  line-height: 1.7;
}

.footer-privacy-alert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  max-width: 1080px;
  padding: 13px 15px;
  border: 1px solid rgba(155, 217, 222, .2);
  border-radius: 12px;
  background: rgba(155, 217, 222, .07);
  color: rgba(216, 229, 231, .82);
  font-size: 11px;
  line-height: 1.65;
}

.footer-privacy-alert__icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(155, 217, 222, .12);
  color: #9bd9de;
  font-size: 15px;
}

.footer-privacy-alert strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.footer-lower {
  padding-top: 16px;
  border-top: 1px solid rgba(216, 229, 231, .16);
}

.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #708d93;
  font-size: 12px;
  font-weight: 800;
}

.footer-policy-links a,
.footer-policy-links button {
  color: #d8e5e7;
  text-decoration: none;
}

.footer-policy-links button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.footer-policy-links a:hover,
.footer-policy-links button:hover,
.footer-policy-links button:focus-visible {
  color: #9bd9de;
  outline: none;
}

.footer-copyright {
  margin: 0;
  color: rgba(216, 229, 231, .58);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}

.policy-panel[hidden] { display: none; }

.policy-panel {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 18, 22, .72);
  backdrop-filter: blur(7px);
}

.policy-card {
  position: relative;
  width: min(640px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow-y: auto;
  padding: 32px;
  border: 1px solid #dbe5e7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(2, 18, 23, .3);
  color: #14292f;
}

.policy-close {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: max-content;
  min-width: 72px;
  height: 36px;
  margin: 0 0 -36px auto;
  padding: 0 12px;
  border: 1px solid #dbe5e7;
  border-radius: 999px;
  background: rgba(247, 250, 251, .96);
  color: #33515a;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 5px 16px rgba(15, 36, 42, .14);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.policy-close span {
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.policy-eyebrow {
  margin: 0 0 8px;
  color: #4f46e5;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
}

.policy-card h2 {
  margin: 0 44px 22px 0;
  color: #0f242a;
  font-size: 27px;
  letter-spacing: -.03em;
}

.policy-content {
  color: #486068;
  font-size: 13px;
  line-height: 1.75;
}

.policy-content h3 {
  margin: 22px 0 6px;
  color: #16333b;
  font-size: 15px;
}

.policy-content p { margin: 0 0 10px; }
.policy-content ul { margin: 8px 0 0; padding-left: 20px; }

.policy-content .policy-effective,
.policy-content .policy-callout {
  padding: 12px 14px;
  border-radius: 10px;
  background: #f0f9fa;
  color: #264850;
}

.policy-content .policy-callout { border-left: 4px solid #0f9f7a; }

@media (max-width: 760px) {
  .site-footer { margin-top: 32px; }
  .site-footer__inner {
    width: min(100% - 28px, 1440px);
    padding: 30px 0 24px;
  }
  .footer-heading,
  .footer-lower {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-brand__logo {
    width: 116px;
    height: 37px;
    border-radius: 10px;
  }
  .footer-brand__logo img {
    top: -43px;
    left: -7px;
    width: 127px;
    height: 127px;
  }
  .footer-service-label { min-height: 27px; }
  .footer-company-info,
  .footer-notice,
  .footer-privacy-alert { overflow-wrap: anywhere; }
  .footer-policy-links { gap: 9px 7px; font-size: 11px; }
  .footer-policy-links > span[aria-hidden="true"] { display: none; }
  .footer-policy-links a,
  .footer-policy-links button {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 8px;
    border: 1px solid rgba(216, 229, 231, .16);
    border-radius: 999px;
  }
  .footer-copyright {
    text-align: left;
    white-space: normal;
  }
  .policy-panel {
    align-items: end;
    padding: 10px;
  }
  .policy-card {
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 27px 20px 22px;
    border-radius: 18px;
  }
}
