"use client"; import { motion, useScroll, useSpring } from "framer-motion"; import Link from "next/link"; import Header from "@/components/Header"; import Footer from "@/components/Footer"; import type { Locale } from "@/i18n-config"; import type { PrivacyApp } from "@/data/privacy"; const easeOutExpo = [0.16, 1, 0.3, 1] as [number, number, number, number]; export default function PrivacyDetailClient({ lang, dict, app, otherApps, }: { lang: Locale; dict: any; app: PrivacyApp; otherApps: PrivacyApp[]; }) { const { scrollYProgress } = useScroll(); const scaleX = useSpring(scrollYProgress, { stiffness: 100, damping: 30, restDelta: 0.001, }); const isTr = lang === "tr"; return (
{/* Scroll indicator */}
{/* Back Link */} {isTr ? "TÜM GİZLİLİK POLİTİKALARI" : "ALL PRIVACY POLICIES"} {/* Hero Header */}
{app.icon}
{app.category[lang]} {app.version}

{app.name}

{app.platforms.map((p) => ( {p} ))}
{isTr ? "Yürürlük / Güncelleme:" : "Effective / Last Updated:"} {app.lastUpdated[lang]}

{app.summary[lang]}

{/* Key Highlights */}
{app.highlights[lang].map((h, i) => (
{h.label}
{h.value}
))}
{/* Content Layout: Sticky Sidebar + Main Sections */}
{/* Sidebar Navigation */} {/* Main Legal Content */}
{/* System Permissions (if applicable) */} {app.permissions.length > 0 && (

{isTr ? "Cihaz İzinleri ve Donanım Erişimi" : "Device Permissions & Hardware Access"}

{isTr ? `${app.name} uygulaması, yalnızca temel işlevlerini kusursuz yerine getirebilmek için işletim sisteminizden (iOS / Android) aşağıdaki açık izinleri talep eder:` : `${app.name} requests explicit permissions from your operating system (iOS / Android) solely to perform core functionality:`}

{app.permissions.map((perm, idx) => (
{perm.name[lang]} {perm.required ? isTr ? "ZORUNLU" : "REQUIRED" : isTr ? "İSTEĞE BAĞLI" : "OPTIONAL"}

{perm.reason[lang]}

))}
)} {/* Sections */} {app.sections.map((section, idx) => (
#{String(idx + 1).padStart(2, "0")}

{section.title[lang]}

{section.content[lang]}

{section.bullets && (
    {section.bullets[lang].map((bullet, bIdx) => (
  • {bullet}
  • ))}
)}
))} {/* Data Deletion and Erasure Request Section */}
{isTr ? "KULLANICI VERİ KONTROLÜ" : "USER DATA CONTROL"}

{isTr ? `${app.name} Verilerinizi Kalıcı Olarak Silin` : `Permanently Erase Your ${app.name} Data`}

{isTr ? "Uygulama içerisinden hesabınızı silebilir veya aşağıdaki buton aracılığıyla doğrudan veri silme ve KVKK hak talebinde bulunabilirsiniz. Talebiniz en geç 72 saat içinde işleme alınır." : "You can delete your account within the app or trigger a formal GDPR/KVKK erasure request by emailing our automated privacy handler. All records are purged within 72 hours."}

{isTr ? "VERİ SİLME TALEBİ OLUŞTUR" : "REQUEST DATA DELETION"}
{/* Other Applications Footer Switcher */} {otherApps.length > 0 && (
{isTr ? "DİĞER UYGULAMA GİZLİLİK POLİTİKALARI" : "OTHER APPLICATION POLICIES"}
{otherApps.map((other) => (
{other.icon}
{other.name}
{other.category[lang]}
))}
)}
); }