/* Site legal footer — handok login-business-footer 패턴 */
.site-legal-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  box-sizing: border-box;
  padding: 42px 16px 14px;
  text-align: left;
  color: rgba(255, 255, 255, 0.45);
  background: transparent;
  pointer-events: none;
}

/* 메인 홈 고정 푸터: 하단만 어둡게, 위로 서서히 투명 */
.site-legal-footer:not(.footer)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.52) 28%,
    rgba(0, 0, 0, 0.22) 58%,
    rgba(0, 0, 0, 0.06) 78%,
    transparent 100%
  );
  pointer-events: none;
  z-index: -1;
}

.site-legal-footer-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  box-sizing: border-box;
  pointer-events: auto;
}

.site-legal-summary {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 14px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.site-legal-summary::-webkit-scrollbar {
  display: none;
}

.site-legal-policy-row {
  margin: 0 0 0 auto;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  flex-shrink: 0;
  white-space: nowrap;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
}

.site-legal-policy-row a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
}

.site-legal-policy-btn {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  cursor: pointer;
}

.site-legal-policy-btn:hover {
  color: rgba(255, 255, 255, 0.95);
}

.site-legal-policy-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

body.site-legal-modal-open {
  overflow: hidden;
}

.site-legal-policy-row a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.site-legal-policy-row .sep {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.3);
}

.site-business-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.2s ease;
  height: 16px;
  flex-shrink: 0;
  white-space: nowrap;
}

.site-business-toggle:hover {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-business-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.site-business-toggle-icon {
  font-size: 10px;
  line-height: 1;
  opacity: 0.85;
}

.site-business-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
  text-align: left;
  font-family: "Inter", sans-serif;
}

.site-business-panel.is-open {
  grid-template-rows: 1fr;
}

.site-business-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.site-business-panel.is-open .site-business-panel-inner {
  padding-bottom: 0;
}

.site-business-line {
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.38;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.site-business-line:last-child {
  margin-bottom: 0;
}

.site-business-line-rep-reg {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0 0.5em;
}

.site-business-entity {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.site-business-reg {
  color: rgba(255, 255, 255, 0.55);
}

.site-business-rep-name {
  color: rgba(255, 255, 255, 0.45);
}

.site-business-sep {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
  margin: 0 10px;
}

.site-business-link {
  color: rgba(255, 255, 255, 0.55);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 1px;
}

.site-business-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* 펼침 시 패널: 버튼 바로 위, 배경 없음 */
.site-legal-footer .site-business-panel.is-open {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  width: 100%;
  max-width: 100%;
  max-height: min(52vh, calc(100vh - 120px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-sizing: border-box;
  margin: 0 0 10px;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: none;
}

.site-legal-footer .site-business-panel.is-open .site-business-panel-inner {
  overflow: visible;
  min-height: 0;
  padding-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .site-business-panel {
    transition: none;
  }
}

/* main_blog: 페이지 하단 일반 푸터 */
.footer.site-legal-footer {
  display: block;
  position: relative;
  z-index: 5;
  padding: 10px 20px 28px;
  background: #f7f7f7;
  border-top: 1px solid #eee;
  color: #888;
  pointer-events: auto;
}

.footer.site-legal-footer .site-legal-policy-row a {
  color: #666;
}

.footer.site-legal-footer .site-legal-policy-btn {
  color: #666;
}

.footer.site-legal-footer .site-legal-policy-btn:hover {
  color: #111;
}

.footer.site-legal-footer .site-legal-policy-row a:hover {
  color: #111;
}

.footer.site-legal-footer .site-legal-policy-row .sep {
  color: #ccc;
}

.footer.site-legal-footer .site-business-toggle {
  color: #555;
}

.footer.site-legal-footer .site-business-toggle:hover {
  color: #111;
}

.footer.site-legal-footer .site-business-toggle:focus-visible {
  outline-color: #666;
}

.footer.site-legal-footer .site-business-line,
.footer.site-legal-footer .site-business-reg,
.footer.site-legal-footer .site-business-rep-name,
.footer.site-legal-footer .site-business-sep {
  color: #aaa;
}

.footer.site-legal-footer .site-business-entity {
  color: #666;
}

.footer.site-legal-footer .site-business-link {
  color: #aaa;
}

.footer.site-legal-footer .site-business-link:hover {
  color: #333;
}
