<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>
        <p>사업자등록번호: 883-81-03100 &nbsp;|&nbsp; 이메일: <a href="mailto:innertab@gmail.com">innertab@gmail.com</a></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 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>
