/* ===== FOOTER – CUBE KOREA (match mock & widened) ===== */
:root {
  --ft-bg: #d9eeee;
  --ft-text: #0f262a;
  --ft-dim: rgba(15, 38, 42, .75);
  --ft-accent: #27F5F3;
  --line: #ffffffa6;
}

.footer {
  background: var(--ft-bg);
  color: var(--ft-text);
  position: relative;
  padding: 30px 0 38px;
  font-size: 10px;
  line-height: 1.55;
}

/* 상단/가운데 얇은 라인 */
.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 18px;
  height: 1px;
  background: var(--line);
}

.footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 64px;
  height: 1px;
  background: var(--line);
}

/* ✨ 폭 ‘벌림’ — 시안보다 살짝 넉넉하게 */
.ft-wrap {
  width: min(1500px, 94vw);
  margin: 0 auto;
}

/* 상단 레이아웃: 좌 고정폭 + 우 가변 */
.ft-top {
  display: grid;
  grid-template-columns: 560px 1fr;
  /* ← 왼쪽 블록 고정폭으로 줄 길이 제어 */
  column-gap: 72px;
  /* ← 가운데와 간격 ‘확’ 벌림 */
  row-gap: 24px;
  align-items: start;
}

/* LEFT */
.ft-logo {
  width: 200px;
  height: auto;
  display: block;
  margin: 6px 0 20px;
}

.ft-left {
  max-width: 560px;
}

/* 안전망 */

/* 연락처: 세로 한 줄씩 + 라벨/구분선/내용 정렬 고정 */
.ft-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.ft-row {
  display: grid;
  grid-template-columns: auto 14px 1fr;
  /* 라벨 | 구분선 | 내용 */
  align-items: baseline;
  column-gap: 10px;
  margin: 14px 0;
  /* 행 간격 넓게 */
}

.ft-k {
  font-weight: 800;
  letter-spacing: .2px;
}

.ft-sep::before {
  content: "|";
  color: var(--ft-dim);
}

.ft-v {
  color: var(--ft-dim);
  line-height: 1.7;
  white-space: normal;
  word-break: keep-all;
}

/* CENTER: 5열 메뉴 (시안 정렬) */
.ft-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 10px 28px;
  margin-top: 5%;
}

.ft-nav-col {
  min-width: 0;
  text-align: center;
}

.ft-nav-title {
  margin: 0 0 9px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .2px;
  line-height: 1;
  position: relative;
}

.ft-nav-title::after {
  content: "";
  display: block;
  width: 86px;
  height: 3px;
  margin: 6px auto 0;
  background: var(--ft-accent);
  border-radius: 999px;
}

.ft-nav-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ft-nav-col li {
  margin: 6px 0;
}

.ft-nav-col a {
  color: var(--ft-dim);
  text-decoration: none;
  transition: color .15s ease;
}

.ft-nav-col a:hover {
  color: var(--ft-text);
  text-decoration: underline;
}

/* 하단 */
.ft-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 18px;
}

.ft-policy {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.ft-policy a {
  color: var(--ft-dim);
  text-decoration: none;
}

.ft-policy a:hover {
  text-decoration: underline;
}

.ft-copy {
  margin: 0;
  font-size: 13px;
  color: var(--ft-dim);
}

/* ↑ 버튼: 상단 라인에 딱 걸치게 (시안 위치) */
.btn-goTop {
  position: absolute;
  right: 138px;
  top: 4px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #2f3b3d;
  color: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .18);
  cursor: pointer;
  z-index: 5;
}

/* 반응형 */
@media (max-width:1180px) {
  .ft-wrap {
    width: min(1180px, 94vw);
  }

  .ft-top {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .ft-nav {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}

@media (max-width:820px) {
  .ft-nav {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width:480px) {
  .ft-nav {
    grid-template-columns: 1fr;
  }

  .ft-logo {
    width: 176px;
  }
}