<script setup lang="ts">
// 공통 푸터 — 모든 페이지에서 동일하게 사용
</script>

<template>
  <footer>
    <div class="wrap">
      <NuxtLink to="/" class="foot-logo" aria-label="이너탭 홈">
        <img src="/images/img-itab.png" alt="innertab" >
      </NuxtLink>

      <div class="foot-company">
        <p class="foot-name"><span class="dot" /> 이너탭</p>
        <!-- 이메일 라벨+주소를 한 묶음(nowrap)으로 두어, 줄바꿈은 라벨 앞에서만 일어나도록 -->
        <p>사업자등록번호: 883-81-03100&nbsp;| <span class="foot-email">이메일: <a href="mailto:innertab@gmail.com">innertab@gmail.com</a></span></p>
        <p>주소: 서울특별시 강남구 삼성동 121-38, 304호</p>
      </div>

      <div class="foot-divider" />

      <div class="foot-bottom">
        <NuxtLink to="/privacy" class="foot-policy">개인정보처리방침</NuxtLink>
      </div>
    </div>
  </footer>
</template>

<style scoped>
footer {
  border-top: 0.0625rem solid var(--line);
  padding: clamp(3rem, 6vw, 4.75rem) 0 clamp(2.5rem, 5vw, 4rem); /* 48~76px / 40~64px */
}

.foot-logo {
  display: inline-block;
}

.foot-logo img {
  height: 1.875rem; /* 30px */
  display: block;
}

.foot-company {
  margin-top: 1.625rem; /* 26px */
}

.foot-company .foot-name {
  font-size: 0.9375rem; /* 15px */
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.4375rem; /* 7px */
}

.foot-company .foot-name .dot {
  width: 0.5rem;
  height: 0.5rem; /* 8px */
  border-radius: 50%;
  background: var(--brand);
}

.foot-company p {
  font-size: 0.875rem; /* 14px */
  color: var(--ink-soft);
  line-height: 1.7;
}

/* 이메일 라벨+주소 — 한 줄로 묶어 라벨과 주소가 분리되지 않도록 */
.foot-company .foot-email {
  white-space: nowrap;
}

.foot-company p a {
  color: inherit;
  text-decoration: none;
}

.foot-company p a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.foot-company p + p {
  margin-top: 0.5rem; /* 8px */
}

.foot-company .foot-name + p {
  margin-top: 0.875rem; /* 14px */
}

.foot-divider {
  height: 0.0625rem; /* 1px */
  background: var(--line);
  margin: clamp(1.75rem, 3.5vw, 2.75rem) 0 clamp(1.5rem, 3vw, 2.25rem);
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem; /* 20px */
}

.foot-policy {
  font-size: 0.875rem; /* 14px */
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.foot-policy:hover {
  color: var(--brand);
}
</style>
