<script setup lang="ts">
const { t, tm } = useI18n();

const items = computed(
  () => (tm("privacyPolicyPage.items") as unknown[]) || [],
);

useSeoMeta({
  title: computed(() => t("privacyPolicySeo.title")),
  description: computed(() => t("privacyPolicySeo.description")),
  ogTitle: computed(() => t("privacyPolicySeo.ogTitle")),
  ogDescription: computed(() => t("privacyPolicySeo.ogDescription")),
  keywords: computed(() => t("privacyPolicySeo.keywords")),
});
</script>

<template>
  <main>
    <InternalHeaderSection
      :pages="[{ name: t('privacyPolicy') }]"
      video-url="/videos/about-header.mp4"
    >
      <template #title>
        <h1>{{ t("privacyPolicyPage.heroTitle") }}</h1>
      </template>
    </InternalHeaderSection>

    <section class="bg-gradient-odd py-12">
      <div class="container mx-auto max-w-4xl px-4">
        <p
          v-if="t('privacyPolicyPage.lastUpdated')"
          class="text-muted-foreground mb-4 text-sm"
        >
          {{ t("privacyPolicyPage.lastUpdated") }}
        </p>
        <p class="mb-10 text-base leading-relaxed md:text-lg">
          {{ t("privacyPolicyPage.intro") }}
        </p>

        <div class="space-y-8">
          <article
            v-for="(_, idx) in items"
            :key="idx"
            class="text-card-foreground border-surface-border bg-surface-background rounded-xl border p-6 shadow-sm"
          >
            <h2 class="text-primary mb-3 text-xl font-semibold">
              {{ t(`privacyPolicyPage.items.${idx}.title`) }}
            </h2>
            <p class="text-foreground/90 text-base leading-relaxed">
              {{ t(`privacyPolicyPage.items.${idx}.text`) }}
            </p>
          </article>
        </div>
      </div>
    </section>

    <!-- <LazyContactMainSection
      :form-title="t('contactSection.title')"
      section-background="bg-gradient-even"
    /> -->
  </main>
</template>

<style scoped></style>
