/* 1986 Footer - Optimized CSS */

/* 기본 리셋 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'SMTOWN', 'Pretendard', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.428;
  color: #000;
  background-color: #fff;
}

ul,
ol,
li {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Footer typography block (keeps existing black footer layout) */
.footer-typo {
  max-width: 900px;
  margin-bottom: 40px;
}

.footer-typo-link {
  display: inline-block;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: none;
}

.footer-typo-action {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.footer-typo-action:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

.footer-typo-link--email {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-typo-link--primary {
  display: block;
  width: fit-content;
}

.footer-typo-line {
  display: block;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
}

.footer-typo-meta {
  font-weight: 400;
  opacity: 0.9;
}

.footer-typo-link--primary + .footer-typo-line {
  margin-top: 18px;
}

.footer-typo-row {
  margin-top: 40px;
  font-size: inherit;
  font-weight: 400;
}

.footer-typo-link--policy {
  font-size: inherit;
}

.footer-typo-sep {
  margin: 0 14px;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.9;
}

.footer-typo-link--business {
  display: block;
  width: fit-content;
  margin-top: 34px;
}

/* 푸터 기본 스타일 */
.site-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 70px;
  line-height: 1.6;
  background-color: #1e1e1e;
  color: #fff;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  flex-wrap: wrap;
}

.site-footer,
.site-footer a,
.site-footer span,
.site-footer .menu-label,
.site-footer .footer-menu .menu,
.site-footer .footer-menu .menu li,
.site-footer .footer-menu .sub-menu,
.site-footer .footer-menu .sub-menu li {
  line-height: 1.6;
  color: #fff;
}

/* 로고 컬럼 */
.logo-column {
  display: inline-block;
  vertical-align: top;
}

.logo-1986 img,
.sm-ent-logo img {
  width: 197px;
  height: auto;
  display: block;
}

/* 기본 소셜 버튼 - 데스크톱 */
.social-links {
  display: flex;
  gap: 25.5px;
  margin-top: 127px;
}

.social-links a {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.3s ease;
}

.social-links a:last-child {
  margin-right: 0;
}

.social-links a:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* 개별 소셜 버튼 */
.instagram-button {
  background-image: url('https://cdn.imweb.me/upload/S20200402f6a4097001dd3/284f92a850d2b.png') !important;
}

.댕댕페스티벌-instagram-button,
.dangdang-instagram-button {
  background-image: url('https://cdn.imweb.me/upload/S20200402f6a4097001dd3/f5aff5d1c64ef.png') !important;
}

.빵빵런-instagram-button,
.bbangbbang-instagram-button {
  background-image: url('https://cdn.imweb.me/upload/S20200402f6a4097001dd3/dd07906431e29.png') !important;
}

.라이프마라톤-instagram-button,
.marathon-instagram-button {
  background-image: url('https://cdn.imweb.me/upload/S20200402f6a4097001dd3/8ce837c682ac5.png') !important;
}

.naver-blog-button {
  background-image: url('https://cdn.imweb.me/upload/S20200402f6a4097001dd3/6dc02a3dfb82b.png') !important;
}

/* 메뉴 컬럼 */
.menu-column {
  display: inline-block;
  vertical-align: top;
}

.footer-menu {
  color: #fff;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

/* 메뉴와 서브메뉴 각각 기본 block */
.footer-menu .menu,
.footer-menu .sub-menu {
  display: block;
  vertical-align: top;
  margin: 0;
  padding: 0;
}

/* 메뉴 리스트 항목 여백 */
.footer-menu .menu li {
  margin-bottom: 40px;
  margin-right: 50px;
  display: block;
}

.footer-menu .sub-menu li {
  margin-bottom: 8px;
  display: block;
  line-height: 1.6;
  margin-top: 5px;
}

.footer-menu .sub-menu li:first-child {
  margin-top: 0;
}

.footer-menu .sub-menu li:last-child {
  margin-bottom: 0;
}

.footer-menu .menu-item a {
  display: block;
  color: #fff;
  transition: color 0.3s ease;
}

.footer-menu .menu-item a:hover {
  text-decoration: underline;
}

/* Privacy 링크 */
.privacy-link {
  color: #fff;
  display: block;
  font-weight: 700;
}

.privacy-link:hover {
  text-decoration: underline;
}

/* Copyright */
.copyright {
  color: #b0b7c0;
  font-size: 0.8em;
  opacity: 0.6;
  text-transform: uppercase;
  margin-top: 10px;
  width: 100%;
  order: 999;
}

.footer-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.footer-modal[aria-hidden="false"] {
  display: flex;
}

.footer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.footer-modal__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 90%;
  background: #fff;
  color: #000;
  padding: 50px 50px 50px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  font-family: 'SMTOWN', 'Pretendard', sans-serif;
  max-height: 90vh;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.footer-modal__content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.footer-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  background: transparent;
  color: #1e1e1e;
  font-size: 45px;
  line-height: 1;
  cursor: pointer;
  padding: 12px;
}

.footer-modal__text {
  margin: 8px 0 0;
  line-height: 1.7;
}

.footer-modal__image {
  width: 100%;
  height: 650px;
  margin: 12px 0 8px;
  border-radius: 12px;
  background: url('https://cdn.imweb.me/thumbnail/20251023/67e843a013734.png') center center / cover no-repeat;
  border: none;
  cursor: zoom-in;
  transition: background-size 0.2s ease, background-position 0.2s ease;
}

.footer-modal__content.is-zoomed .footer-modal__image {
  height: 60vh;
  background-size: cover;
}

body.modal-open {
  overflow: hidden;
}

.footer-terms h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.footer-terms p {
  margin: 8px 0;
}

.footer-terms ol,
.footer-terms ul {
  margin: 8px 0;
  padding: 0;
  list-style-position: inside;
}

.footer-terms li {
  margin: 6px 0;
}

.footer-terms li > p {
  margin: 6px 0 0;
}

.footer-terms li > ol,
.footer-terms li > ul {
  margin: 8px 0 8px 16px;
  list-style-position: outside;
  padding-left: 18px;
}

.footer-info-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
/* 반응형 간격 조정 */
@media screen and (max-width: 1800px) {
  .footer-menu .menu li {
    margin-bottom: 35px;
  }
  .footer-menu .sub-menu li {
    margin-bottom: 7px;
  }
}

@media screen and (max-width: 1024px) {
  .footer-menu .menu li {
    margin-bottom: 30px;
  }
  .footer-menu .sub-menu li {
    margin-bottom: 6px;
  }
}

@media screen and (max-width: 768px) {
  .footer-modal {
    align-items: flex-end;
    padding: 20px 16px;
  }

  .footer-modal__content {
    width: calc(100% - 32px);
    padding: 16px 18px 20px;
    border-radius: 18px 18px 12px 12px;
    max-height: 85vh;
  }

  .footer-modal__image {
    height: 45vh;
    min-height: 240px;
  }

  .footer-modal__close {
    top: 8px;
    right: 8px;
    font-size: 26px;
    padding: 10px;
  }

  .footer-modal__text {
    font-size: 15px;
  }

  .site-footer {
    flex-direction: column;
    padding: 40px 20px;
  }

  .logo-1986 img,
  .sm-ent-logo img {
    width: 145px;
  }

  .logo-column,
  .menu-column {
    display: block;
  }

  .menu-column {
    margin-top: 40px;
  }

  .social-links {
    margin-top: 33px;
    gap: 30px;
  }

  .social-links a {
    width: 30px;
    height: 30px;
    background-size: contain !important;
    margin-top: 0;
  }

  .footer-menu .menu li {
    margin-bottom: 20px;
    margin-right: 0;
  }

  .footer-menu .sub-menu li {
    display: block;
    margin-bottom: 20px;
  }

  .footer-typo {
    margin-bottom: 40px;
  }
}

@media screen and (max-width: 480px) {
  .footer-modal {
    padding: 12px;
  }

  .footer-modal__content {
    width: calc(100% - 16px);
    padding: 14px 16px 18px;
    border-radius: 16px 16px 10px 10px;
    max-height: 80vh;
  }

  .footer-modal__image {
    height: 40vh;
    min-height: 200px;
  }

  .footer-modal__text {
    font-size: 14px;
  }

  .site-footer {
    padding: 30px 15px;
  }

  .social-links {
    gap: 15px;
    margin-top: 33px;
  }

  .footer-menu .menu {
    flex-direction: column;
    gap: 15px;
  }

  .footer-menu .menu li {
    margin-bottom: 20px;
    margin-right: 0;
  }
}
