import { Layout } from "@/components/layout/Layout";
import { Section } from "@/components/ui/Section";
import { SEO } from "@/components/SEO";
import { useForceLanguage } from "@/hooks/useForceLanguage";

type Lang = "sv" | "en";

const SV_URL = "https://sutekistudios.com/integritetspolicy";
const EN_URL = "https://sutekistudios.com/en/privacy-policy";

const meta = {
  sv: {
    title: "Integritetspolicy | Suteki Studios",
    description:
      "Så behandlar Suteki Studios Inc. personuppgifter på sutekistudios.com: ändamål, rättsliga grunder, lagringstider, leverantörer och dina rättigheter.",
  },
  en: {
    title: "Privacy Policy | Suteki Studios",
    description:
      "How Suteki Studios Inc. processes personal data on sutekistudios.com: purposes, legal bases, retention periods, service providers and your rights.",
  },
} as const;

type Block =
  | { h2: string }
  | { h3: string }
  | { p: string }
  | { ul: string[] };

const sv: { updated: string; intro: string; blocks: Block[] } = {
  updated: "Senast uppdaterad: 14 augusti 2026",
  intro: "",
  blocks: [
    { h2: "1. Om denna integritetspolicy" },
    { p: "Suteki Studios respekterar din integritet och behandlar personuppgifter på ett ansvarsfullt och transparent sätt." },
    { p: "Denna integritetspolicy beskriver vilka personuppgifter vi samlar in när du besöker sutekistudios.com, kontaktar oss, begär material, inleder en affärsdialog eller använder någon av webbplatsens funktioner." },
    { p: "Policyn beskriver även varför uppgifterna behandlas, hur länge de sparas, vilka de kan delas med och vilka rättigheter du har." },

    { h2: "2. Personuppgiftsansvarig" },
    { p: "Suteki Studios Inc. är personuppgiftsansvarig för behandlingen av personuppgifter som samlas in genom sutekistudios.com." },
    { p: "Suteki Studios Inc.\nRegistered office: Wilmington, Delaware, USA\nE-post: hello@sutekistudios.com\nWebbplats: https://sutekistudios.com" },
    { p: "Frågor om denna policy, vår behandling av personuppgifter eller en begäran om att använda dina rättigheter kan skickas till hello@sutekistudios.com." },

    { h2: "3. Vilka personuppgifter vi behandlar" },
    { p: "Vilka uppgifter vi behandlar beror på hur du använder webbplatsen och vilka uppgifter du själv väljer att lämna." },
    { h3: "Kontakt- och projektförfrågningar" },
    { p: "När du kontaktar oss eller skickar en projektförfrågan kan vi behandla:" },
    { ul: ["namn", "företagsnamn", "e-postadress", "telefonnummer om det anges", "roll eller titel", "önskad kontaktregion", "information om projekt, mål, tidsplan och budget", "innehållet i meddelanden och fortsatt korrespondens", "andra uppgifter som du själv väljer att lämna"] },
    { h3: "Nedladdning av guider och material" },
    { p: "När du begär en guide via e-post kan vi behandla:" },
    { ul: ["e-postadress", "vald språkversion", "vilken guide som begärdes", "datum och tid för begäran", "sidan som begäran skickades från", "relevanta kampanj- och UTM-parametrar", "information om huruvida mejlet kunde levereras"] },
    { p: "Du registreras inte automatiskt för nyhetsbrev eller återkommande marknadsföring när du begär en guide." },
    { h3: "Teknisk information" },
    { p: "När du besöker webbplatsen kan viss teknisk information behandlas automatiskt:" },
    { ul: ["IP-adress", "typ av enhet, webbläsare och operativsystem", "besökta sidor och tidpunkt för besöket", "hänvisande webbplats", "tekniska loggar och felmeddelanden", "cookieidentifierare eller liknande tekniska identifierare om cookies används"] },
    { p: "Teknisk information kan användas för säkerhet, felsökning, statistik och skydd mot missbruk." },
    { h3: "Affärsrelationer" },
    { p: "Om du blir kund, leverantör eller samarbetspartner kan vi även behandla:" },
    { ul: ["kontakt- och företagsuppgifter", "avtal och projektinformation", "beställningar och leveranser", "fakturerings- och betalningsuppgifter", "mötesanteckningar", "affärskorrespondens", "information som krävs för att genomföra och följa upp uppdraget"] },
    { p: "Lämna inte känsliga personuppgifter genom webbplatsens vanliga kontaktformulär." },

    { h2: "4. Ändamål och rättsliga grunder" },
    { h3: "Besvara förfrågningar" },
    { p: "Vi behandlar personuppgifter för att kunna besvara frågor, förstå ditt behov och kommunicera om ett möjligt projekt." },
    { p: "Den rättsliga grunden är att vidta åtgärder på din begäran innan ett avtal ingås eller vårt berättigade intresse av att besvara affärsförfrågningar." },
    { h3: "Leverera guider och efterfrågat material" },
    { p: "När du begär en guide använder vi din e-postadress för att skicka materialet och hantera eventuella leveransfel." },
    { p: "Den rättsliga grunden är att fullgöra den tjänst som du uttryckligen har begärt." },
    { p: "Din e-postadress används inte automatiskt för nyhetsbrev eller återkommande marknadsföring." },
    { h3: "Genomföra avtal och projekt" },
    { p: "Vi behandlar uppgifter som behövs för att planera, leverera, administrera och följa upp kunduppdrag och samarbeten." },
    { p: "Den rättsliga grunden är att fullgöra ett avtal eller vårt berättigade intresse av att hantera affärsrelationen när avtalet har ingåtts med organisationen du representerar." },
    { h3: "Säkerhet och förebyggande av missbruk" },
    { p: "Teknisk information kan behandlas för att skydda webbplatsen, begränsa automatiserade utskick, upptäcka missbruk, felsöka och upprätthålla säker drift." },
    { p: "Den rättsliga grunden är vårt berättigade intresse av att skydda webbplatsen, våra användare och våra system." },
    { h3: "Analys och förbättring" },
    { p: "Om du har lämnat samtycke till icke-nödvändiga cookies kan vi använda analysverktyg för att förstå hur webbplatsen används och förbättra innehåll, struktur och funktion." },
    { p: "Den rättsliga grunden är ditt samtycke. Du ska kunna återkalla eller ändra samtycket genom webbplatsens cookieinställningar." },
    { p: "Icke-nödvändiga analysverktyg får inte aktiveras innan besökaren har lämnat samtycke." },
    { h3: "Marknadsföring" },
    { p: "Vi skickar endast nyhetsbrev eller återkommande marknadsföring när det finns en giltig rättslig grund." },
    { p: "Om behandlingen bygger på samtycke kan samtycket återkallas när som helst." },
    { p: "En begäran om att få en guide räknas inte i sig som ett samtycke till nyhetsbrev." },
    { h3: "Rättsliga skyldigheter och anspråk" },
    { p: "Vi kan behandla personuppgifter för att följa tillämplig bokförings-, skatte- och annan lagstiftning eller för att fastställa, göra gällande eller försvara rättsliga anspråk." },
    { p: "Den rättsliga grunden är rättslig förpliktelse eller vårt berättigade intresse av att skydda våra juridiska rättigheter." },

    { h2: "5. Cookies och liknande teknik" },
    { p: "Webbplatsen kan använda cookies och liknande teknik." },
    { p: "Nödvändiga cookies kan användas för säkerhet, språkval, formulär och teknisk drift. De kräver normalt inte samtycke när de är nödvändiga för att webbplatsen ska fungera." },
    { p: "Analys-, marknadsförings- och andra icke-nödvändiga cookies får endast aktiveras efter att besökaren har gjort ett aktivt val." },
    { p: "Om webbplatsen använder icke-nödvändiga cookies ska det finnas en fungerande cookiepanel där besökaren kan:" },
    { ul: ["acceptera eller avvisa icke-nödvändiga cookies", "välja olika kategorier", "ändra eller återkalla sitt val", "se vilka cookies som används", "se syftet med varje cookie", "se hur länge varje cookie lagras"] },
    { p: "Endast cookies och spårning som faktiskt används på webbplatsen beskrivs i denna policy. I dag används Google Analytics 4 (gtag.js) för besöksstatistik, samt teknisk lagring i webbläsaren (local storage) för sparade formulärutkast och inloggad session i vårt interna system. Inbäddat innehåll från YouTube kan sätta cookies hos Google när du spelar upp en video." },

    { h2: "6. Leverantörer och mottagare" },
    { p: "Vi kan dela personuppgifter med leverantörer som behandlar uppgifterna för vår räkning och enligt våra instruktioner." },
    { p: "Det kan vara leverantörer av:" },
    { ul: ["webbhotell och teknisk infrastruktur", "databaser och serverfunktioner", "transaktionsmejl", "säkerhet och felsökning", "analysverktyg efter samtycke", "redovisning och juridisk rådgivning"] },
    { p: "För formuläret som skickar field guiden The Experience Advantage används Supabase för backend och databehandling samt Resend för leverans av e-post." },
    { p: "De leverantörer som faktiskt behandlar personuppgifter genom webbplatsen i dag är:" },
    { ul: [
      "Webbhotell och driftleverantör — hosting och drift av webbplatsen samt tekniska serverloggar.",
      "Supabase — databas, serverfunktioner och lagring av kontaktförfrågningar, guideförfrågningar och interna affärsuppgifter.",
      "Resend — utskick av transaktionsmejl, till exempel field guiden The Experience Advantage och interna leadsnotiser.",
      "Google (Google Analytics 4) — besöksstatistik via gtag.js.",
      "Google (YouTube) — inbäddade videoklipp på vissa sidor.",
      "Slack — intern notis om nya förfrågningar när funktionen är aktiverad.",
      "Calendly — bokning av möten när du väljer att använda bokningslänken.",
    ] },
    { p: "Vi kan även lämna ut personuppgifter när det krävs enligt lag, myndighetsbeslut eller för att skydda våra rättigheter." },
    { p: "Vi säljer inte personuppgifter." },

    { h2: "7. Behandling utanför EU och EES" },
    { p: "Suteki Studios Inc. är etablerat i USA och vissa leverantörer eller operativa resurser kan finnas utanför EU och EES." },
    { p: "När personuppgifter överförs från EU eller EES till ett land som saknar beslut om adekvat skyddsnivå ska överföringen ske med en giltig överföringsmekanism. Det kan exempelvis vara EU-kommissionens standardavtalsklausuler eller andra tillämpliga skyddsåtgärder." },
    { p: "När en leverantör omfattas av ett tillämpligt beslut om adekvat skyddsnivå kan överföringen grundas på detta." },
    { p: "Du kan kontakta oss på hello@sutekistudios.com om du vill ha mer information om de skyddsåtgärder som används." },

    { h2: "8. Hur länge uppgifterna sparas" },
    { p: "Vi sparar inte personuppgifter längre än vad som är nödvändigt för respektive ändamål." },
    { p: "Följande utgångspunkter gäller:" },
    { ul: [
      "Uppgifter för leverans av en guide raderas eller anonymiseras normalt senast 90 dagar efter utskicket om de inte behöver sparas för att hantera ett leveransfel eller en rättslig skyldighet.",
      "Projekt- och kontaktförfrågningar som inte leder till en affärsrelation sparas normalt i högst 24 månader efter den senaste relevanta kontakten.",
      "Uppgifter som hör till ett aktivt kund-, leverantörs- eller samarbetsförhållande sparas under relationen och därefter så länge de behövs för avtal, garanti, rättsliga anspråk eller lagkrav.",
      "Bokföringsunderlag sparas så länge tillämplig bokförings- och skattelagstiftning kräver det.",
      "Tekniska säkerhetsloggar sparas normalt i högst 90 dagar om de inte behöver bevaras längre för att utreda ett säkerhetsproblem.",
      "Uppgifter som behandlas med stöd av samtycke behandlas tills samtycket återkallas eller ändamålet upphör.",
    ] },
    { p: "Uppgifter kan anonymiseras och därefter användas för statistik eftersom anonym information inte längre kan kopplas till en person." },

    { h2: "9. Säkerhet" },
    { p: "Vi använder tekniska och organisatoriska säkerhetsåtgärder för att skydda personuppgifter mot obehörig åtkomst, förändring, förlust och missbruk." },
    { p: "Åtgärderna kan omfatta åtkomstkontroll, krypterad överföring, begränsade behörigheter, säker lagring, loggning och regelbunden kontroll av system och leverantörer." },
    { p: "Ingen elektronisk överföring eller lagring kan garanteras vara helt riskfri. Om en personuppgiftsincident inträffar hanterar vi den enligt tillämplig lag." },

    { h2: "10. Dina rättigheter" },
    { p: "Beroende på tillämplig dataskyddslagstiftning kan du ha rätt att:" },
    { ul: ["få information om hur dina personuppgifter behandlas", "begära tillgång till dina personuppgifter", "få felaktiga uppgifter rättade", "begära att uppgifter raderas", "begära att behandlingen begränsas", "invända mot behandling som grundas på berättigat intresse", "få ut vissa uppgifter i ett strukturerat och maskinläsbart format", "återkalla ett samtycke", "invända mot direktmarknadsföring"] },
    { p: "Ett återkallat samtycke påverkar inte lagligheten av behandling som redan har genomförts innan samtycket återkallades." },
    { p: "Skicka din begäran till hello@sutekistudios.com. Vi kan behöva kontrollera din identitet innan en begäran genomförs." },

    { h2: "11. Klagomål" },
    { p: "Om du anser att dina personuppgifter behandlas felaktigt är du välkommen att kontakta oss." },
    { p: "Du har även rätt att lämna klagomål till ansvarig dataskyddsmyndighet." },
    { p: "I Sverige är ansvarig myndighet:" },
    { p: "Integritetsskyddsmyndigheten\nhttps://www.imy.se" },
    { p: "Om du befinner dig i ett annat land inom EU eller EES kan du även kontakta dataskyddsmyndigheten i det land där du bor eller arbetar." },

    { h2: "12. Automatiserat beslutsfattande" },
    { p: "Vi använder inte personuppgifter som samlas in genom webbplatsens vanliga kontakt- eller guideformulär för automatiserade beslut som har rättsliga eller motsvarande betydande konsekvenser för dig." },

    { h2: "13. Barn" },
    { p: "Webbplatsen och våra företagstjänster riktar sig inte till barn." },
    { p: "Vi samlar inte medvetet in personuppgifter från barn genom webbplatsens formulär. Kontakta oss om du tror att ett barn har lämnat personuppgifter till oss utan tillräckligt tillstånd." },

    { h2: "14. Externa länkar och inbäddat innehåll" },
    { p: "Webbplatsen kan innehålla länkar till andra webbplatser och inbäddat innehåll från externa tjänster." },
    { p: "När du använder en extern tjänst kan leverantören behandla teknisk information och personuppgifter enligt sin egen integritetspolicy." },
    { p: "Suteki Studios ansvarar inte för hur självständiga externa webbplatser behandlar personuppgifter." },
    { p: "Inbäddade externa tjänster som inte är nödvändiga ska inte aktiveras innan det finns en giltig rättslig grund." },

    { h2: "15. Ändringar i policyn" },
    { p: "Vi kan uppdatera denna integritetspolicy när verksamheten, webbplatsens funktioner eller tillämpliga regler förändras." },
    { p: "Den senaste versionen finns alltid på denna sida. Datumet högst upp visar när policyn senast uppdaterades." },
    { p: "Vid väsentliga förändringar kan vi lämna ytterligare information på webbplatsen eller genom andra lämpliga kanaler." },

    { h2: "16. Kontakt" },
    { p: "Frågor om integritet eller en begäran om att använda dina rättigheter skickas till:" },
    { p: "Suteki Studios Inc.\nE-post: hello@sutekistudios.com\nWebbplats: https://sutekistudios.com" },
  ],
};

const en: { updated: string; intro: string; blocks: Block[] } = {
  updated: "Last updated: 14 August 2026",
  intro: "",
  blocks: [
    { h2: "1. About this privacy policy" },
    { p: "Suteki Studios respects your privacy and processes personal data in a responsible and transparent manner." },
    { p: "This privacy policy describes the personal data we collect when you visit sutekistudios.com, contact us, request materials, enter into a business dialogue or use any of the functions on the website." },
    { p: "The policy also explains why the data is processed, how long it is retained, who it may be shared with and what rights you have." },

    { h2: "2. Data controller" },
    { p: "Suteki Studios Inc. is the data controller for the processing of personal data collected through sutekistudios.com." },
    { p: "Suteki Studios Inc.\nRegistered office: Wilmington, Delaware, USA\nEmail: hello@sutekistudios.com\nWebsite: https://sutekistudios.com" },
    { p: "Questions about this policy, our processing of personal data or a request to exercise your rights can be sent to hello@sutekistudios.com." },

    { h2: "3. Personal data we process" },
    { p: "The data we process depends on how you use the website and what information you choose to provide." },
    { h3: "Contact and project enquiries" },
    { p: "When you contact us or submit a project enquiry, we may process:" },
    { ul: ["name", "company name", "email address", "phone number, if provided", "role or job title", "preferred contact region", "information about the project, objectives, timeline and budget", "the content of messages and any subsequent correspondence", "any other information you choose to provide"] },
    { h3: "Downloading guides and materials" },
    { p: "When you request a guide by email, we may process:" },
    { ul: ["email address", "the language version selected", "which guide was requested", "the date and time of the request", "the page the request was submitted from", "relevant campaign and UTM parameters", "information on whether the email could be delivered"] },
    { p: "You are not automatically subscribed to newsletters or recurring marketing when you request a guide." },
    { h3: "Technical information" },
    { p: "When you visit the website, certain technical information may be processed automatically:" },
    { ul: ["IP address", "device type, browser and operating system", "pages visited and the time of the visit", "referring website", "technical logs and error messages", "cookie identifiers or similar technical identifiers where cookies are used"] },
    { p: "Technical information may be used for security, troubleshooting, statistics and protection against misuse." },
    { h3: "Business relationships" },
    { p: "If you become a client, supplier or partner, we may also process:" },
    { ul: ["contact and company details", "agreements and project information", "orders and deliveries", "invoicing and payment details", "meeting notes", "business correspondence", "information required to carry out and follow up on the engagement"] },
    { p: "Please do not submit sensitive personal data through the website's standard contact forms." },

    { h2: "4. Purposes and legal bases" },
    { h3: "Responding to enquiries" },
    { p: "We process personal data in order to answer questions, understand your needs and communicate about a possible project." },
    { p: "The legal basis is taking steps at your request prior to entering into a contract, or our legitimate interest in responding to business enquiries." },
    { h3: "Delivering guides and requested materials" },
    { p: "When you request a guide, we use your email address to send the material and to handle any delivery failures." },
    { p: "The legal basis is the performance of the service you have expressly requested." },
    { p: "Your email address is not automatically used for newsletters or recurring marketing." },
    { h3: "Performing contracts and projects" },
    { p: "We process the data required to plan, deliver, administer and follow up on client engagements and collaborations." },
    { p: "The legal basis is performance of a contract, or our legitimate interest in managing the business relationship where the contract has been entered into with the organisation you represent." },
    { h3: "Security and prevention of misuse" },
    { p: "Technical information may be processed to protect the website, limit automated submissions, detect misuse, troubleshoot and maintain secure operations." },
    { p: "The legal basis is our legitimate interest in protecting the website, our users and our systems." },
    { h3: "Analytics and improvement" },
    { p: "Where you have given consent to non-essential cookies, we may use analytics tools to understand how the website is used and to improve its content, structure and functionality." },
    { p: "The legal basis is your consent. You must be able to withdraw or change your consent through the website's cookie settings." },
    { p: "Non-essential analytics tools must not be activated before the visitor has given consent." },
    { h3: "Marketing" },
    { p: "We only send newsletters or recurring marketing where there is a valid legal basis." },
    { p: "Where the processing is based on consent, that consent can be withdrawn at any time." },
    { p: "A request for a guide does not in itself constitute consent to receive newsletters." },
    { h3: "Legal obligations and claims" },
    { p: "We may process personal data in order to comply with applicable accounting, tax and other legislation, or to establish, exercise or defend legal claims." },
    { p: "The legal basis is a legal obligation, or our legitimate interest in protecting our legal rights." },

    { h2: "5. Cookies and similar technologies" },
    { p: "The website may use cookies and similar technologies." },
    { p: "Essential cookies may be used for security, language selection, forms and technical operation. Where they are necessary for the website to function, they generally do not require consent." },
    { p: "Analytics, marketing and other non-essential cookies may only be activated after the visitor has made an active choice." },
    { p: "Where the website uses non-essential cookies, a functioning cookie panel must be available in which the visitor can:" },
    { ul: ["accept or reject non-essential cookies", "select different categories", "change or withdraw their choice", "see which cookies are used", "see the purpose of each cookie", "see how long each cookie is stored"] },
    { p: "Only cookies and tracking actually used on the website are described in this policy. Today the website uses Google Analytics 4 (gtag.js) for visitor statistics, together with technical browser storage (local storage) for saved form drafts and the signed-in session of our internal system. Embedded YouTube content may set Google cookies when you play a video." },

    { h2: "6. Service providers and recipients" },
    { p: "We may share personal data with providers that process the data on our behalf and in accordance with our instructions." },
    { p: "These may be providers of:" },
    { ul: ["web hosting and technical infrastructure", "databases and server functions", "transactional email", "security and troubleshooting", "analytics tools subject to consent", "accounting and legal advice"] },
    { p: "For the form that delivers the field guide The Experience Advantage, Supabase is used for the backend and data processing, and Resend is used for email delivery." },
    { p: "The providers that actually process personal data through the website today are:" },
    { ul: [
      "Hosting and operations provider — hosting and operation of the website, including technical server logs.",
      "Supabase — database, server functions and storage of contact enquiries, guide requests and internal business data.",
      "Resend — delivery of transactional email, such as the field guide The Experience Advantage and internal lead notifications.",
      "Google (Google Analytics 4) — visitor statistics via gtag.js.",
      "Google (YouTube) — embedded video content on certain pages.",
      "Slack — internal notification of new enquiries where the function is enabled.",
      "Calendly — meeting bookings where you choose to use the booking link.",
    ] },
    { p: "We may also disclose personal data where required by law, by a decision of a public authority, or to protect our rights." },
    { p: "We do not sell personal data." },

    { h2: "7. Processing outside the EU and EEA" },
    { p: "Suteki Studios Inc. is established in the United States, and certain providers or operational resources may be located outside the EU and EEA." },
    { p: "Where personal data is transferred from the EU or EEA to a country without an adequacy decision, the transfer must be made using a valid transfer mechanism. This may, for example, be the European Commission's standard contractual clauses or other applicable safeguards." },
    { p: "Where a provider is covered by an applicable adequacy decision, the transfer may be based on that decision." },
    { p: "You can contact us at hello@sutekistudios.com if you would like more information about the safeguards used." },

    { h2: "8. Retention periods" },
    { p: "We do not retain personal data for longer than is necessary for the relevant purpose." },
    { p: "The following principles apply:" },
    { ul: [
      "Data used to deliver a guide is normally deleted or anonymised no later than 90 days after the guide has been sent, unless it needs to be retained to handle a delivery failure or a legal obligation.",
      "Project and contact enquiries that do not lead to a business relationship are normally retained for a maximum of 24 months after the most recent relevant contact.",
      "Data relating to an active client, supplier or partner relationship is retained for the duration of the relationship, and thereafter for as long as it is needed for contractual, warranty, legal claim or statutory purposes.",
      "Accounting records are retained for as long as applicable accounting and tax legislation requires.",
      "Technical security logs are normally retained for a maximum of 90 days, unless they need to be kept longer to investigate a security issue.",
      "Data processed on the basis of consent is processed until the consent is withdrawn or the purpose ceases to apply.",
    ] },
    { p: "Data may be anonymised and thereafter used for statistics, as anonymous information can no longer be linked to an individual." },

    { h2: "9. Security" },
    { p: "We use technical and organisational security measures to protect personal data against unauthorised access, alteration, loss and misuse." },
    { p: "These measures may include access control, encrypted transmission, restricted permissions, secure storage, logging and regular review of systems and providers." },
    { p: "No electronic transmission or storage can be guaranteed to be entirely free of risk. If a personal data breach occurs, we handle it in accordance with applicable law." },

    { h2: "10. Your rights" },
    { p: "Depending on applicable data protection legislation, you may have the right to:" },
    { ul: ["receive information about how your personal data is processed", "request access to your personal data", "have inaccurate data corrected", "request erasure of data", "request restriction of processing", "object to processing based on legitimate interests", "receive certain data in a structured, machine-readable format", "withdraw a consent", "object to direct marketing"] },
    { p: "Withdrawing consent does not affect the lawfulness of processing already carried out before the consent was withdrawn." },
    { p: "Send your request to hello@sutekistudios.com. We may need to verify your identity before a request is carried out." },

    { h2: "11. Complaints" },
    { p: "If you believe that your personal data is being processed incorrectly, you are welcome to contact us." },
    { p: "You also have the right to lodge a complaint with the competent data protection authority." },
    { p: "In Sweden, the competent authority is:" },
    { p: "Integritetsskyddsmyndigheten (the Swedish Authority for Privacy Protection)\nhttps://www.imy.se" },
    { p: "If you are located in another country within the EU or EEA, you may also contact the data protection authority in the country where you live or work." },

    { h2: "12. Automated decision-making" },
    { p: "We do not use personal data collected through the website's standard contact or guide forms for automated decisions that produce legal effects concerning you or similarly significantly affect you." },

    { h2: "13. Children" },
    { p: "The website and our corporate services are not directed at children." },
    { p: "We do not knowingly collect personal data from children through the website's forms. Please contact us if you believe that a child has provided personal data to us without sufficient authorisation." },

    { h2: "14. External links and embedded content" },
    { p: "The website may contain links to other websites and embedded content from external services." },
    { p: "When you use an external service, that provider may process technical information and personal data in accordance with its own privacy policy." },
    { p: "Suteki Studios is not responsible for how independent external websites process personal data." },
    { p: "Embedded external services that are not necessary must not be activated before there is a valid legal basis." },

    { h2: "15. Changes to this policy" },
    { p: "We may update this privacy policy when our business, the website's functionality or applicable rules change." },
    { p: "The latest version is always available on this page. The date at the top shows when the policy was last updated." },
    { p: "In the event of material changes, we may provide additional information on the website or through other appropriate channels." },

    { h2: "16. Contact" },
    { p: "Questions about privacy or requests to exercise your rights should be sent to:" },
    { p: "Suteki Studios Inc.\nEmail: hello@sutekistudios.com\nWebsite: https://sutekistudios.com" },
  ],
};

const content = { sv, en };

export default function PrivacyPolicy({ lang }: { lang: Lang }) {
  useForceLanguage(lang);
  const t = content[lang];
  const m = meta[lang];

  return (
    <Layout>
      <SEO
        title={m.title}
        description={m.description}
        lang={lang}
        canonicalUrl={lang === "sv" ? SV_URL : EN_URL}
        alternateSv={SV_URL}
        alternateEn={EN_URL}
      />

      <Section className="section-white">
        <div className="max-w-3xl mx-auto pt-24 pb-4">
          <h1 className="text-3xl md:text-4xl font-semibold text-foreground mb-4">
            {lang === "sv" ? "Integritetspolicy" : "Privacy Policy"}
          </h1>
          <p className="text-sm text-muted-foreground mb-12">{t.updated}</p>

          <div className="space-y-5">
            {t.blocks.map((block, i) => {
              if ("h2" in block) {
                return (
                  <h2 key={i} className="text-xl md:text-2xl font-semibold text-foreground pt-8">
                    {block.h2}
                  </h2>
                );
              }
              if ("h3" in block) {
                return (
                  <h3 key={i} className="text-base md:text-lg font-semibold text-foreground pt-4">
                    {block.h3}
                  </h3>
                );
              }
              if ("ul" in block) {
                return (
                  <ul key={i} className="list-disc pl-6 space-y-2 text-muted-foreground leading-relaxed">
                    {block.ul.map((item) => (
                      <li key={item}>{item}</li>
                    ))}
                  </ul>
                );
              }
              return (
                <p key={i} className="text-muted-foreground leading-relaxed whitespace-pre-line break-words">
                  {block.p}
                </p>
              );
            })}
          </div>
        </div>
      </Section>
    </Layout>
  );
}
