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

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

  return (
    <PublicInfoPage
      title={locale === "id" ? "Syarat & Ketentuan" : "Terms & Conditions"}
      description={
        locale === "id"
          ? "Dengan memakai aplikasi AbelBirdnest Stock, pengguna menyetujui penggunaan sistem sesuai role, kebijakan keamanan, dan prosedur operasional perusahaan."
          : "By using the AbelBirdnest Stock application, users agree to use the system in line with their assigned role, security policy, and company operating procedures."
      }
      sections={[
        {
          title: locale === "id" ? "Penggunaan akun" : "Account usage",
          paragraphs:
            locale === "id"
              ? [
                  "Akun hanya boleh digunakan oleh personel yang diberi wewenang oleh perusahaan.",
                  "Pengguna wajib memastikan data transaksi yang dimasukkan benar dan dapat dipertanggungjawabkan."
                ]
              : [
                  "Accounts may only be used by personnel authorized by the company.",
                  "Users must ensure that submitted transaction data is accurate and accountable."
                ]
        },
        {
          title: locale === "id" ? "Tanggung jawab operasional" : "Operational responsibility",
          paragraphs:
            locale === "id"
              ? [
                  "Setiap input purchase, receipt, lot, penjualan, washing, atau adjustment harus mengikuti proses bisnis internal yang berlaku.",
                  "Penyalahgunaan akses, manipulasi data, atau penggunaan akun bersama tanpa izin dapat menyebabkan pembatasan akses."
                ]
              : [
                  "Every purchase, receipt, lot, sales, washing, or adjustment entry must follow the applicable internal business process.",
                  "Access abuse, data manipulation, or unauthorized shared-account usage may result in access restrictions."
                ]
        },
        {
          title: locale === "id" ? "Keamanan dan bantuan" : "Security and support",
          paragraphs:
            locale === "id"
              ? [
                  "Untuk kendala login, reset password, atau pembaruan hak akses, gunakan kanal bantuan resmi melalui form Hubungi Admin di halaman login."
                ]
              : [
                  "For login issues, password reset requests, or access-right updates, use the official support channel through the Contact Admin form on the login page."
                ]
        }
      ]}
    />
  );
}
