@charset "utf-8";

/* ================================================================
   공통 푸터 — 회색 배경은 화면 전체 폭, 내용은 .inner(1440) 안
   MO : 세로 배치, "서비스" 묶음, 정책 링크가 저작권 위
   PC : 윗줄(브랜드 | 카테고리) / 구분선 / 아랫줄(저작권 | 정책)  (1024px 부터)
   ================================================================ */
.site-footer {
  margin-top: var(--footer-mt);
  background: var(--fill-elevated);
  color: var(--gray-a3);
  font-size: var(--fs-body2);
  line-height: 1.5;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  padding: clamp(32px, calc(32px + 16 * var(--fluid)), 48px) max(var(--gutter), clamp(20px, calc(20px + 12 * var(--fluid)), 32px)) 32px;
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer__logo img {
  width: 108px;
  height: 28px;
}

.site-footer__menus {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.site-footer__label {
  margin-bottom: 16px;
  color: var(--gray-a2);
  font-weight: 700;
}

.site-footer__cate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(var(--cate-rows, 3), auto); /* 세로 방향으로 채움 (시안 순서) */
  grid-auto-flow: column;
  gap: 12px 24px;
}

.site-footer__links,
.site-footer__policy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.site-footer a {
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--gray-a2);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column-reverse;
  gap: 16px;
  margin-top: 56px;
}

.site-footer__policy a.is-strong {
  color: var(--gray-a2);
  font-weight: 500;
}

.site-footer__copy {
  font-size: var(--fs-caption);
}

/* ---------- PC ---------- */
@media (min-width: 1024px) {
  .site-footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
  }

  .site-footer__brand {
    gap: 20px;
    max-width: 480px;
  }

  .site-footer__group--service {
    display: none;
  }

  .site-footer__cate {
    grid-template-columns: 152px 152px;
    column-gap: 32px;
  }

  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-a5);
  }
}
