/* ============================================================
   CM-01 ③ 푸터. 2026-08-18 메인 시안 반영.
   ============================================================ */
.nt-footer {
  background: var(--wd-surface-dark);
  color: #fff;
  border-top: 1px solid var(--wd-border-dark);
  /* 시안대로 남색 블록 상단 두 모서리만 둥글게 — 하단 바는 각지게 둔다. */
  border-radius: 40px 40px 0 0;
}
.nt-footer__inner { padding-block: 56px 0; }

/* ---- 상단 : 로고 · 관련 사이트 · SNS ---- */
.nt-footer__top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-bottom: 44px;
}
.nt-footer__wordmark { display: inline-flex; align-items: center; }
.nt-footer__wordmark img { width: auto; height: 34px; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); }
.nt-footer__top-right { display: flex; align-items: center; gap: 16px; }

.nt-footer__related { position: relative; }
.nt-footer__related > button {
  display: flex; align-items: center; gap: 34px;
  min-width: 240px; height: 46px; padding: 0 16px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: var(--wd-radius-full);
  font-size: 14px; color: rgba(255, 255, 255, 0.88);
  transition: all var(--wd-dur-fast) var(--wd-ease);
}
.nt-footer__related > button:hover { border-color: rgba(255, 255, 255, 0.6); }
.nt-footer__related > button svg { margin-left: auto; transition: transform var(--wd-dur-fast) var(--wd-ease); }
.nt-footer__related.is-open > button svg { transform: rotate(180deg); }
.nt-footer__related-list {
  display: none; position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20;
  width: 100%; padding: 8px 0;
  background: var(--wd-surface-white); color: var(--wd-text-primary);
  border-radius: var(--wd-radius-lg); box-shadow: var(--wd-shadow-dropdown);
}
.nt-footer__related.is-open .nt-footer__related-list { display: block; }
.nt-footer__related-list a { display: block; padding: 10px 20px; font-size: 14px; }
.nt-footer__related-list a:hover { background: var(--wd-primary-50); color: var(--wd-primary); }

.nt-footer__sns { display: flex; align-items: center; gap: 10px; }
.nt-footer__sns a {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--wd-radius-full);
  background: rgba(255, 255, 255, 0.12); color: #fff;
  transition: background var(--wd-dur-fast) var(--wd-ease);
}
.nt-footer__sns a:hover { background: rgba(255, 255, 255, 0.24); }

/* ---- 주제 6단 ---- */
.nt-footer__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px;
  padding-bottom: 52px;
}
.nt-footer__col-title { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.nt-footer__col-desc {
  margin-top: 12px; font-size: 12.5px; line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}
.nt-footer__col-go {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.9);
  transition: color var(--wd-dur-fast) var(--wd-ease);
}
.nt-footer__col-go span { transition: transform var(--wd-dur-fast) var(--wd-ease); }
.nt-footer__col-go:hover { color: var(--wd-secondary); }
.nt-footer__col-go:hover span { transform: translateX(3px); }

/* ---- 하단 바 : 시안대로 한 톤 더 어두운 띠로 분리한다 ---- */
.nt-footer__bar { background: var(--wd-surface-darkest); }
.nt-footer__bar-inner {
  display: grid; grid-template-columns: 1.1fr 1.2fr auto; gap: 32px; align-items: center;
  padding-block: 28px 32px;
  font-size: 12.5px; color: rgba(255, 255, 255, 0.55);
}
.nt-footer__out {
  display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 13.5px; color: #fff;
}
.nt-footer__policy p { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.nt-footer__policy p a + a { padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.22); }
.nt-footer__policy a:hover,
.nt-footer__info a:hover { color: #fff; }
.nt-footer__info p + p { margin-top: 8px; }
.nt-footer__copy {
  padding-left: 32px; border-left: 1px solid rgba(255, 255, 255, 0.18);
  line-height: 1.7; letter-spacing: 0.01em;
}

@media (max-width: 1080px) {
  .nt-footer__grid { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .nt-footer__bar-inner { grid-template-columns: 1fr 1fr; }
  .nt-footer__copy { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .nt-footer { border-radius: 20px 20px 0 0; }
  .nt-footer__inner { padding-top: 40px; }
  .nt-footer__top { flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 32px; }
  .nt-footer__top-right { width: 100%; flex-wrap: wrap; }
  .nt-footer__related { flex: 1 1 100%; }
  .nt-footer__related > button { width: 100%; min-width: 0; }
  .nt-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .nt-footer__bar-inner { grid-template-columns: 1fr; gap: 20px; }
}
