/* ANCHOR V2 site footer — global (not scoped to .anchor-home) */
:root{
  --aft-bg:#050b0f;
  --aft-ink:#fff;
  --aft-muted:#71838c;
  --aft-label:#9aadb5;
  --aft-link:#d5dfe2;
  --aft-line:rgba(255,255,255,.09);
}

/* 역할: 전 V2 페이지 공통 푸터 루트 */
.ah-footer{
  background:var(--aft-bg);
  color:var(--aft-ink);
  border-radius:32px 32px 0 0;
  padding:78px 0 32px;
  margin-top:40px;
  box-sizing:border-box;
}

.ah-footer-inner{
  width:min(calc(100% - 48px),1240px);
  margin:0 auto;
  box-sizing:border-box;
}

.ah-footer-top{
  display:grid;
  grid-template-columns:1.1fr 2fr;
  gap:80px;
  align-items:start;
}

.ah-footer-brand strong{
  display:block;
  font-size:36px;
  letter-spacing:.04em;
  font-weight:900;
  color:var(--aft-ink); /* layout.css h/strong 기본색 상쇄 — specificity 로 충분 */
  line-height:1.1;
}

.ah-footer-brand p{
  margin:14px 0 0;
  color:var(--aft-muted);
  line-height:1.7;
  font-size:13px;
}

.ah-footer-contact{
  margin-top:18px;
  display:flex;
  flex-direction:column;
  gap:6px;
  color:var(--aft-muted);
  font-size:12px;
  line-height:1.6;
}

.ah-footer-menus{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}

/* layout.css `h1–h6 { color: var(--txt-color) }` 보다 높은 specificity */
.ah-footer .ah-footer-col h4{
  margin:0;
  font-size:12px;
  font-weight:800;
  color:var(--aft-label);
  letter-spacing:.08em;
  text-transform:none;
}

.ah-footer-col a{
  display:block;
  margin-top:12px;
  color:var(--aft-link);
  font-size:12px;
  font-weight:600;
  text-decoration:none;
  line-height:1.45;
  transition:color .2s ease, opacity .2s ease;
}

.ah-footer-col a:first-of-type{
  margin-top:14px;
}

.ah-footer-col a:hover{
  color:#fff;
}

.ah-footer-col a:focus-visible{
  outline:2px solid #18d78d;
  outline-offset:3px;
  border-radius:2px;
}

.ah-footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:30px;
  margin-top:70px;
  padding-top:24px;
  border-top:1px solid var(--aft-line);
  color:var(--aft-muted);
  font-size:10px;
  line-height:1.7;
}

.ah-footer-legal{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:0;
  color:var(--aft-muted);
}

/* 구분점 · 로 legal 항목 사이 */
.ah-footer-legal a,
.ah-footer-legal span{
  color:var(--aft-muted);
  font-size:10px;
  line-height:1.7;
  text-decoration:none;
  transition:color .2s ease;
}

.ah-footer-legal a:hover{
  color:#fff;
}

.ah-footer-legal a:focus-visible{
  outline:2px solid #18d78d;
  outline-offset:2px;
  border-radius:2px;
}

.ah-footer-legal a + a,
.ah-footer-legal a + span,
.ah-footer-legal span + a,
.ah-footer-legal span + span{
  margin-left:0;
}

.ah-footer-legal a:not(:last-child)::after,
.ah-footer-legal span:not(:last-child)::after{
  content:" \00B7 ";
  color:var(--aft-muted);
  pointer-events:none;
}

.ah-footer-copy{
  flex-shrink:0;
  color:var(--aft-muted);
  font-size:10px;
  line-height:1.7;
  text-align:right;
}

/* —— responsive —— */
@media (max-width:1160px){
  .ah-footer-top{
    grid-template-columns:1fr;
    gap:48px;
  }
  .ah-footer-menus{
    grid-template-columns:repeat(4,1fr);
  }
}

@media (max-width:860px){
  .ah-footer{
    padding:64px 0 28px;
    border-radius:28px 28px 0 0;
  }
  .ah-footer-inner{
    width:min(calc(100% - 32px),1240px);
  }
  .ah-footer-menus{
    grid-template-columns:repeat(2,1fr);
    gap:28px 22px;
  }
  .ah-footer-brand strong{
    font-size:30px;
  }
}

@media (max-width:600px){
  .ah-footer{
    padding:55px 0 24px;
    border-radius:24px 24px 0 0;
    margin-top:28px;
  }
  .ah-footer-top{
    gap:36px;
  }
  .ah-footer-menus{
    grid-template-columns:1fr 1fr;
    gap:24px 16px;
  }
  .ah-footer-bottom{
    flex-direction:column;
    gap:14px;
    margin-top:48px;
  }
  .ah-footer-copy{
    text-align:left;
  }
  .ah-footer-brand strong{
    font-size:28px;
  }
}
