import { PublicInfoPage } from "@/components/auth/public-info-page";
import { getCurrentLocale } from "@/lib/i18n-server";

export default async function PrivacyPolicyPage() {
  const locale = await getCurrentLocale();

  return (
    <PublicInfoPage
      title={locale === "id" ? "Kebijakan Privasi" : "Privacy Policy"}
      description={
        locale === "id"
          ? "Halaman ini menjelaskan bagaimana data akun dan data operasional dipakai di dalam aplikasi AbelBirdnest Stock."
          : "This page explains how account data and operational data are used within the AbelBirdnest Stock application."
      }
      sections={[
        {
          title: locale === "id" ? "Data yang digunakan" : "Data in use",
          paragraphs:
            locale === "id"
              ? [
                  "Aplikasi menyimpan data akun, email, role, serta jejak transaksi yang dibutuhkan untuk operasional inventory dan audit internal.",
                  "Data yang dimasukkan pengguna seperti purchase, receipt, lot, penjualan, dan adjustment dipakai untuk pelacakan stok dan costing."
                ]
              : [
                  "The application stores account data, email, roles, and transaction logs required for inventory operations and internal audits.",
                  "User-entered data such as purchases, receipts, lots, sales, and adjustments are used for stock traceability and costing."
                ]
        },
        {
          title: locale === "id" ? "Keamanan akses" : "Access security",
          paragraphs:
            locale === "id"
              ? [
                  "Hak akses ditentukan berdasarkan role user dan setiap perubahan penting dapat tercatat di audit trail sistem.",
                  "Pengguna bertanggung jawab menjaga kerahasiaan password dan tidak membagikan sesi login kepada pihak lain."
                ]
              : [
                  "Access rights are determined by user role, and important changes may be recorded in the system audit trail.",
                  "Users are responsible for keeping passwords confidential and must not share active login sessions with others."
                ]
        },
        {
          title: locale === "id" ? "Kontak bantuan" : "Support contact",
          paragraphs:
            locale === "id"
              ? [
                  "Jika ada pertanyaan tentang akses data atau bantuan akun, gunakan form Hubungi Admin yang tersedia di halaman login."
                ]
              : [
                  "If you have questions about data access or account assistance, use the Contact Admin form available on the login page."
                ]
        }
      ]}
    />
  );
}
