<script setup lang="ts">
import { RouterLink } from 'vue-router'
</script>

<template>
  <footer class="app-footer">
    <div class="app-footer__inner">
      <p class="app-footer__tagline">
        Bilhej hjälper dig att skicka brev till bilägare via
        registreringsnummer.
      </p>
      <nav class="app-footer__links">
        <RouterLink to="/om" class="app-footer__link">Om oss</RouterLink>
        <RouterLink to="/kontakt" class="app-footer__link">Kontakt</RouterLink>
        <RouterLink to="/integritetspolicy" class="app-footer__link"
          >Integritetspolicy</RouterLink
        >
        <RouterLink to="/villkor" class="app-footer__link">Villkor</RouterLink>
      </nav>
      <p class="app-footer__copy">
        &copy; {{ new Date().getFullYear() }} Bilhej
      </p>
    </div>
  </footer>
</template>

<style scoped>
.app-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.app-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}

.app-footer__tagline {
  color: var(--color-muted);
  font-size: 0.875rem;
  margin: 0 0 var(--space-lg) 0;
}

.app-footer__links {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.app-footer__link {
  color: var(--color-soft);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color var(--transition-fast);
}

.app-footer__link:hover {
  color: var(--color-ink);
}

.app-footer__copy {
  color: var(--color-soft);
  font-size: 0.75rem;
  margin: 0;
}
</style>
