1import{r as l,u as k,j as e,c as w,Y as C,d as S,$ as A,am as b,_ as h,aF as I,ab as E,ar as F,o as R,bk as T,M as $,ac as L,s as u}from"./index-DrUUimuw.js";import{C as O,c as P}from"./card-BhrJjpXp.js";import{C as U}from"./circle-check-big-Dn-XNYzg.js";import{U as q}from"./user-x-neUVSEoA.js";import{R as B}from"./refresh-cw-B9MHLCH7.js";const i=({id:a,icon:n,title:d,children:o})=>e.jsxs("section",{id:a,className:"scroll-mt-32 space-y-4 mb-14 border-b border-border/40 pb-14 last:border-0 last:mb-0 last:pb-0",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"p-2 bg-primary/10 rounded-lg text-primary shrink-0",children:e.jsx(n,{className:"h-6 w-6"})}),e.jsx("h2",{className:"text-xl md:text-2xl font-bold text-foreground",children:d})]}),e.jsx("div",{className:"pl-0 md:pl-11 text-muted-foreground text-sm md:text-base leading-relaxed",children:o})]}),V=({hideHeader:a=!1})=>{const[n,d]=l.useState(!1),[o,j]=l.useState(0),[x,v]=l.useState("preamble"),{t:s,language:p}=k(),y=e.jsx(w,{title:s("seo.privacy.title"),description:s("seo.privacy.description")}),g=t=>{const r=s(t,{returnObjects:!0});return typeof r=="object"&&r!==null?r:{}},c=t=>{const r=s(t,{returnObjects:!0});return Array.isArray(r)?r:[]},N=[{id:"preamble",label:s("privacy.sections.0_preamble.title")},{id:"controller",label:s("privacy.sections.1_controller.title")},{id:"collected",label:s("privacy.sections.2_collected.title")},{id:"basis",label:s("privacy.sections.3_legal_basis.title")},{id:"recipients",label:s("privacy.sections.4_recipients.title")},{id:"transfers",label:s("privacy.sections.5_transfers.title")},{id:"retention",label:s("privacy.sections.6_retention.title")},{id:"security",label:s("privacy.sections.7_security.title")},{id:"rights",label:s("privacy.sections.8_rights.title")},{id:"cookies",label:s("privacy.sections.9_cookies.title")},{id:"minors",label:s("privacy.sections.10_minors.title")},{id:"changes",label:s("privacy.sections.11_changes.title")},{id:"contact",label:s("privacy.sections.12_contact.title")}];l.useEffect(()=>{(async()=>{const{data:{session:r}}=await u.auth.getSession();if(d(!!r),r){const{data:m}=await u.from("user_credits").select("credits_remaining, purchased_credits").eq("user_id",r.user.id).maybeSingle();m&&j((m.credits_remaining||0)+(m.purchased_credits||0))}})()},[]);const f=t=>{const r=document.getElementById(t);r&&(r.scrollIntoView({behavior:"smooth"}),v(t))},_=()=>{typeof window<"u"&&window.CookieConsent&&window.CookieConsent.showPreferences()};return e.jsxs("div",{className:"min-h-screen bg-background font-sans",children:[y,!a&&e.jsx(C,{isLoggedIn:n,totalCredits:o}),e.jsxs("main",{className:"container mx-auto px-4 pt-24 md:pt-28 pb-10 md:pb-16",children:[e.jsxs("div",{className:"text-center space-y-4 mb-12 border-b border-border pb-8 max-w-4xl mx-auto",children:[e.jsx("h1",{className:"text-3xl md:text-5xl font-extrabold tracking-tight text-foreground",children:s("privacy.title")}),e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-blue-100 text-blue-800 text-xs font-medium border border-blue-200 dark:bg-blue-900/30 dark:text-blue-200 dark:border-blue-800",children:[e.jsx(S,{className:"h-3 w-3"}),s("privacy.badge")]}),e.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:s("privacy.subtitle")}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[s("privacy.lastUpdate"),": ",s("privacy.effectiveDate")]})]}),p==="en"&&e.jsx("div",{className:"max-w-4xl mx-auto mb-8 bg-blue-50 dark:bg-blue-950/20 border-l-4 border-blue-500 p-4 rounded-r",children:e.jsx("p",{className:"text-blue-800 dark:text-blue-200 text-sm",children:"These legal documents are available in French and Dutch only, as required under Belgian law. The French version is displayed below."})}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8 items-start max-w-7xl mx-auto",children:[e.jsx("aside",{className:"hidden lg:block lg:col-span-3 sticky top-28",children:e.jsxs("nav",{className:"space-y-1",children:[e.jsx("p",{className:"font-semibold mb-4 px-3 text-xs uppercase tracking-widest text-muted-foreground
1/50",children:p==="nl"?"Inhoud":"Sommaire"}),N.map(t=>e.jsxs("button",{onClick:()=>f(t.id),className:`group flex items-center w-full px-3 py-2 text-sm font-medium rounded-md transition-colors text-left ${x===t.id?"bg-primary/10 text-primary":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:[e.jsx(A,{className:`mr-2 h-4 w-4 shrink-0 transition-transform ${x===t.id?"translate-x-1":"opacity-0 -ml-6"}`}),e.jsx("span",{className:"truncate",children:t.label})]},t.id))]})}),e.jsx("div",{className:"lg:col-span-9",children:e.jsx(O,{className:"border-none shadow-none md:border md:shadow-sm bg-transparent md:bg-card",children:e.jsxs(P,{className:"p-0 md:p-8 lg:p-12",children:[e.jsxs(i,{id:"preamble",icon:b,title:s("privacy.sections.0_preamble.title"),children:[e.jsx("p",{className:"whitespace-pre-line mb-4",children:s("privacy.sections.0_preamble.text")}),e.jsx("div",{className:"bg-blue-50 dark:bg-blue-950/20 border-l-4 border-blue-500 p-4 rounded-r",children:e.jsx("p",{className:"text-blue-800 dark:text-blue-200 text-sm font-medium",children:s("privacy.sections.0_preamble.note")})})]}),e.jsxs(i,{id:"controller",icon:h,title:s("privacy.sections.1_controller.title"),children:[e.jsx("p",{className:"mb-4",children:s("privacy.sections.1_controller.intro")}),e.jsxs("div",{className:"bg-muted/30 p-5 rounded-lg border border-border/50 mb-6",children:[e.jsx("p",{className:"font-bold text-foreground mb-1",children:s("privacy.sections.1_controller.info.name")}),e.jsx("p",{className:"mb-1 text-sm",children:s("privacy.sections.1_controller.info.form")}),e.jsx("p",{className:"mb-1 text-sm",children:s("privacy.sections.1_controller.info.address")}),e.jsx("p",{className:"mb-1 text-sm",children:s("privacy.sections.1_controller.info.bce")}),e.jsx("p",{className:"mb-1 text-sm",children:s("privacy.sections.1_controller.info.vat")}),e.jsx("p",{className:"mb-1 text-sm",children:s("privacy.sections.1_controller.info.email")})]}),e.jsx("h3",{className:"font-bold text-foreground mb-2",children:s("privacy.sections.1_controller.dpo_title")}),e.jsx("p",{className:"whitespace-pre-line",children:s("privacy.sections.1_controller.dpo_text")})]}),e.jsxs(i,{id:"collected",icon:I,title:s("privacy.sections.2_collected.title"),children:[e.jsx("p",{className:"mb-6",children:s("privacy.sections.2_collected.intro")}),[1,2,3,4,5,6,7,8].map(t=>{const r=g(`privacy.sections.2_collected.sub_${t}`);return!r||!r.title?null:e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-bold text-foreground mb-2",children:r.title}),e.jsx("p",{className:"whitespace-pre-line pl-4 border-l-2 border-primary/20",children:r.list||r.text}),r.alert&&e.jsx("div",{className:"mt-2 bg-green-50 dark:bg-green-950/20 border-l-4 border-green-500 p-3 rounded-r text-sm text-green-800 dark:text-green-200",children:r.alert})]},t)})]}),e.jsxs(i,{id:"basis",icon:b,title:s("privacy.sections.3_legal_basis.title"),children:[e.jsx("p",{className:"mb-4",children:s("privacy.sections.3_legal_basis.intro")}),e.jsx("div",{className:"overflow-x-auto border border-border rounded-lg mb-4",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{className:"bg-muted",children:e.jsx("tr",{children:c("privacy.sections.3_legal_basis.table_headers").map((t,r)=>e.jsx("th",{className:"p-3 text-left font-semibold",children:t},r))})}),e.jsx("tbody",{className:"divide-y divide-border",children:c("privacy.sections.3_legal_basis.table_rows").map((t,r)=>e.jsxs("tr",{children:[e.jsx("td",{className:"p-3 whitespace-pre-line font-medium",children:t.purpose}),e.jsx("td",{className:"p-3 whitespace-pre-line text-xs",children:e.jsx("span",{className:"inline-block bg-primary/10 text-primary px-2 py-1 rounded",children:t.basis})}),e.jsx("td",{className:"p-3 text-xs text-muted-foreground",children:t.data})]},r))})]})}),e.jsx("p",{className:"text-sm italic text-muted-foreground",children:s("privacy.sections.3_legal_basis.note")})]}),e.jsxs(i,{id:"recipients",icon:h,title:s("privacy.sections.4_recipients.title"),children:[e.jsx("p",{className:"mb-4",children:s("privacy.sections.4_recipients.intro")}),e.jsx("h3",{className:"font-bold text-foreground mt-6 mb-2",children:s("privacy.sections.4_recipients.sub_1.title")}),e.jsx("p",{className:"whitespace-pre-line pl-4 border-l-2 border-border",children:s("privacy.sections.4_recipients.sub_1.list")}),e.jsx("h3",{className:"font-bold text-foreground mt-6 mb-2",children:s("privacy.sections.4_recipients.sub_2.title")}),e.jsx("p",{className:"mb-2",children:s("privacy.sections.4_recipients.sub_2.intro")}),e.jsx("div",{className:"overflow-x-auto border border-border rounded-lg mb-4",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{className:"bg-muted",children:e.jsx("tr",{children:c("privacy.sections.4_recipients.table_headers").map((t,r)=>e.jsx("th",{className:"p-3 text-left font-semibold",children:t},r))})}),e.jsx("tbody",{className:"divide-y divide-border",children:c("privacy.sections.4_recipients.table_rows").map((t,r)=>e.jsxs("tr",{children:[e.jsx("td",{className:"p-3 font-bold",children:t.name}),e.jsx("td",{className:"p-3 text-xs",children:t.service}),e.jsx("td",{className:"p-3 text-xs",children:t.loc}),e.jsx("td",{className:"p-3 text-xs text-green-600 dark:text-green-400",children:t.guarantee})]},r))})]})}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("privacy.sections.4_recipients.note")}),e.jsx("h3",{className:"font-bold text-foreground mt-6 mb-2",children:s("privacy.sections.4_recipients.sub_3.title")}),e.jsx("p",{className:"whitespace-pre-line pl-4 border-l-2 border-border",children:s("privacy.sections.4_recipients.sub_3.list")}),e.jsx("h3",{className:"font-bold text-foreground mt-6 mb-2",children:s("privacy.sections.4_recipients.sub_4.title")}),e.jsx("div",{className:"bg-red-50 dark:bg-red-950/20 border-l-4 border-red-500 p-4 rounded-r",children:e.jsx("p",{className:"whitespace-pre-line text-red-800 dark:text-red-200 text-sm",children:s("privacy.sections.4_recipients.sub_4.alert")})})]}),e.jsxs(i,{id:"transfers",icon:E,title:s("privacy.sections.5_transfers.title"),children:[e.jsx("p",{className:"mb-4",children:s("privacy.sections.5_transfers.intro")}),e.jsx("h3",{className:"font-bold text-foreground mb-2",children:s("privacy.sections.5_transfers.sub_1.title")}),e.jsx("p",{className:"whitespace-pre-line pl-4 border-l-2 border-border mb-4",children:s("privacy.sections.5_transfers.sub_1.list")}),e.jsx("p",{className:"text-sm italic mb-4",children:s("privacy.sections.5_transfers.info")}),e.jsx("div",{className:"bg-blue-50 dark:bg-blue-950/20 border-l-4 border-blue-500 p-4 rounded-r",children:e.jsx("p",{className:"text-blue-800 dark:text-blue-200 text-sm font-medium",children:s("privacy.sections.5_transfers.supa_alert")})})]}),e.jsxs(i,{id:"retention",icon:F,title:s("privacy.sections.6_retention.title"),children:[e.jsx("p",{className:"mb-4",children:s("privacy.sections.6_retention.intro")}),e.jsx("div",{className:"overflow-x-auto border border-border rounded-lg mb-4",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{className:"bg-muted",children:e.jsx("tr",{children:c("privacy.sections.6_retention.table_headers").map((t,r)=>e.jsx("th",{className:"p-3 text-left font-semibold",children:t},r))})}),e.jsx("tbody",{className:"divide-y divide-border",children:c("privacy.sections.6_retention.table_rows").map((t,r)=>e.jsxs("tr",{children:[e.jsx("td",{className:"p-3 font-medium",children:t.cat}),e.jsx("td",{className:"p-3 text-xs",children:t.duration}),e.jsx("td",{className:"p-3 text-xs text-muted-foreground",children:t.basis})]},r))})]})}),e.jsx("p",{className:"text-sm italic",children:s("privacy.sections.6_retention.footer")})]}),e.jsxs(i,{id:"security",icon:R,title:s("privacy.sections.7_security.title"),children:[e.jsx("p",{className:"mb-6",children:s("privacy.sections.7_security.intro")}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-foreground mb-2",children:s("privacy.sections.7_security.tech.title")}),e.jsx("p",{className:"whitespace-pre-line text-sm pl-4 border-l-2 border-primary/20",children:s("privacy.sections.7_security.tech.list")})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-foreground mb-2",children:s("privacy.sections.7_security.org.title")}),e.jsx("p",{className:"whitespace-pre-line text-sm pl-4 border-l-2 border-primary/20",children:s("privacy.sections.7_security.org.list")})]})]}),e.jsxs("div",{className:"mt-6 bg-muted/30 p-4 rounded border border-border/50",children:[e.jsx("h3",{className:"font-bold text-foreground mb-1",children:s("privacy.sections.7_security.breach.title")}),e.jsx("p",{className:"whitespace-pre-line text-sm",children:s("privacy.sections.7_security.breach.text")})]})]}),e.jsxs(i,{id:"rights",icon:U,title:s("privacy.sections.8_rights.title"),children:[e.jsx("p",{className:"mb-4",children:s("privacy.sections.8_rights.intro")}),e.jsx("div",{className:"grid md:grid-cols-2 gap-4 mb-6",children:c("privacy.sections.8_rights.list").map((t,r)=>e.jsxs("div",{className:"p-4 rounded-lg bg-background border border-border/50 shadow-sm",children:[e.jsx("h4",{className:"font-bold text-foreground text-sm mb-1",children:t.title}),e.jsx("p",{className:"text-xs text-muted-foreground",children:t.desc})]},r))}),e.jsx("div",{className:"bg-muted/30 p-4 rounded border border-border/50 mb-4",children:e.jsx("p",{className:"whitespace-pre-line text-sm font-medium",children:s("privacy.sections.8_rights.apd_info")})}),e.jsx("p",{className:"text-sm",children:s("privacy.sections.8_rights.exercise")})]}),e.jsxs(i,{id:"cookies",icon:T,title:s("privacy.sections.9_cookies.title"),children:[e.jsx("p",{className:"mb-2",children:s("privacy.sections.9_cookies.text")}),e.jsx("p",{className:"whitespace-pre-line text-sm mb-4 pl-4 border-l-2 border-border",children:s("privacy.sections.9_cookies.types")}),e.jsx("div",{className:"overflow-x-auto border border-border rounded-lg mb-4",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{className:"bg-muted",children:e.jsx("tr",{children:c("privacy.sections.9_cookies.cookie_table_headers").map((t,r)=>e.jsx("th",{className:"p-3 text-left font-semibold",children:t},r))})}),e.jsx("tbody",{className:"divide-y divide-border",children:c("privacy.sections.9_cookies.cookie_table_rows").map((t,r)=>e.jsxs("tr",{children:[e.jsx("td",{className:"p-3 font-mono text-xs font-bold",children:t.name}),e.jsx("td",{className:"p-3 text-xs",children:e.jsx("span",{className:`inline-block px-2 py-1 rounded ${t.type==="Nécessaire"||t.type==="Noodzakelijk"||t.type==="Required"?"bg-green-100 text-green-800 dark:bg-green-950/30 dark:text-green-300":"bg-amber-100 text-amber-800 dark:bg-amber-950/30 dark:text-amber-300"}`,children:t.type})}),e.jsx("td",{className:"p-3 text-xs text-muted-foreground",children:t.purpose}),e.jsx("td",{className:"p-3 text-xs",children:t.duration}),e.jsx("td",{className:"p-3 text-xs text-muted-foreground",children:t.provider})]},r))})]})}),e.jsx("div",{className:"bg-amber-50 dark:bg-amber-950/20 border-l-4 border-amber-500 p-3 rounded-r text-sm text-amber-800 dark:text-amber-200",children:s("privacy.sections.9_cookies.alert")})]}),e.jsx(i,{id:"minors",icon:q,title:s("privacy.sections.10_minors.title"),children:e.jsx("p",{className:"whitespace-pre-line",children:s("privacy.sections.10_minors.text")})}),e.jsx(i,{id:"changes",icon:B,title:s("privacy.sections.11_changes.title"),children:e.jsx("p",{className:"whitespace-pre-line",children:s("privacy.sections.11_changes.text")})}),e.jsx(i,{id:"contact",icon:$,title:s("privacy.sections.12_contact.title"),children:e.jsx("p",{className:"whitespace-pre-line",children:s("privacy.sections.12_contact.text")})}),e.jsx("div",{className:"pt-8 text-center border-t border-border mt-8 space-y-3",children:e.jsxs("div",{className:"flex flex-wrap justify-center gap-4 text-sm text-primary mt-4",children:[e.jsx("a",{href:"/terms",className:"hover:underline",children:s("privacy.footer_links.terms")}),e.jsx("span",{className:"text-muted-foreground",children:"â¢"}),e.jsx("a",{href:"/legal",className:"hover:underline",children:s("privacy.footer_links.legal")}),e.jsx("span",{className:"text-muted-foreground",children:"â¢"}),e.jsx("button",{onClick:_,className:"hover:underline",children:s("privacy.footer_links.cookies")})]})})]})})})]})]}),!a&&e.jsx(L,{})]})};export{V as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.