1import{$ as n,j as e,L as c,H as i,s as m}from"./index-BBmhd2fr.js";import{S as t}from"./skeleton-8CcIZutv.js";import p from"./purify.es-C5KSVp3G.js";import{f as x}from"./format-DwiE_hab.js";import"./en-US-DVlPbiiU.js";import"./constructFrom-rJN6zrQ_.js";function f(){const{data:a,isLoading:s,error:r}=n({queryKey:["legal-document","privacy_policy"],queryFn:async()=>{const{data:o,error:l}=await m.from("legal_documents").select("*").eq("document_type","privacy_policy").single();if(l)throw l;return o}});return e.jsxs(c,{children:[e.jsxs(i,{children:[e.jsx("title",{children:"Privacy Policy | AVIALTA"}),e.jsx("meta",{name:"description",content:"AVIALTA Privacy Policy â how we collect, use, and protect your personal information."}),e.jsx("link",{rel:"canonical",href:"https://avialta.lovable.app/privacy"}),e.jsx("meta",{property:"og:title",content:"Privacy Policy | AVIALTA"}),e.jsx("meta",{property:"og:description",content:"AVIALTA Privacy Policy â how we collect, use, and protect your personal information."}),e.jsx("meta",{property:"og:url",content:"https://avialta.lovable.app/privacy"}),e.jsx("meta",{property:"og:type",content:"article"})]}),e.jsxs("article",{className:"min-h-screen bg-background",children:[e.jsx("section",{className:"bg-slate-800 py-16 lg:py-24",children:e.jsxs("div",{className:"container mx-auto text-center",children:[e.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-white mb-4",children:"Privacy Policy"}),a&&e.jsxs("p",{className:"text-slate-300 text-sm",children:["Last updated: ",x(new Date(a.updated_at),"MMMM d, yyyy")]})]})}),e.jsx("section",{className:"py-12 lg:py-16",children:e.jsx("div",{className:"container mx-auto max-w-4xl px-4",children:s?e.jsxs("div",{className:"space-y-4",children:[e.jsx(t,{className:"h-8 w-3/4"}),e.jsx(t,{className:"h-4 w-full"}),e.jsx(t,{className:"h-4 w-full"}),e.jsx(t,{className:"h-4 w-2/3"}),e.jsx(t,{className:"h-8 w-3/4 mt-8"}),e.jsx(t,{className:"h-4 w-full"}),e.jsx(t,{className:"h-4 w-full"})]}):r?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-muted-foreground",children:"Unable to load the Privacy Policy. Please try again later."})}):a?e.jsx("div",{className:`prose prose-slate dark:prose-invert max-w-none 2 [&_h1]:text-2xl [&_h1]:font-bold [&_h1]:mb-4 [&_h1]:mt-8 3 [&_h2]:text-xl [&_h2]:font-semibold [&_h2]:mb-3 [&_h2]:mt-8 [&_h2]:text-foreground 4 [&_h3]:text-lg [&_h3]:font-semibold [&_h3]:mb-2 [&_h3]:mt-6 5 [&_p]:mb-4 [&_p]:leading-relaxed [&_p]:text-muted-foreground 6 [&_ul]:list-disc [&_ul]:pl-6 [&_ul]:space-y-2 [&_ul]:mb-4 7 [&_ol]:list-decimal [&_ol]:pl-6 [&_ol]:space-y-2 [&_ol]:mb-4 8 [&_li]:leading-relaxed [&_li]:text-muted-foreground 9 [&_a]:text-primary [&_a]:hover:underline`,dangerouslySetInnerHTML:{__html:p.sanitize(a.content,{ALLOWED_TAGS:["p","h1","h2","h3","ul","ol","li","strong","em","a","br","span"],ALLOWED_ATTR:["href","title","class","target","rel"],ALLOW_DATA_ATTR:!1})}}):null})})]})]})}export{f 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.