---
import LocaleCopy from "../components/LocaleCopy.astro";
import BaseLayout from "../layouts/BaseLayout.astro";
---

<BaseLayout
  title="Cookie Desk | Dave Gilligan"
  description="Draft cookie notice for the localhost multilingual build, covering essential cookies, optional analytics, and future embedded media consent."
>
  <main class="policy-page">
    <section class="policy-hero container">
      <p class="eyebrow eyebrow--cover">
        <LocaleCopy
          copy={{
            en: "Cookie desk / consent before ornament",
            fr: "Cahier cookies / consentement avant l'ornement",
            nb: "Cookiedesk / samtykke for pynt",
          }}
        />
      </p>
      <h1>
        <LocaleCopy
          copy={{
            en: "Essential first. Optional later.",
            fr: "Essentiel d'abord. Optionnel ensuite.",
            nb: "Nodvendig forst. Valgfritt senere.",
          }}
        />
      </h1>
      <p class="policy-hero__lede">
        <LocaleCopy
          copy={{
            en: "The local build now uses a consent pattern meant for a proper EU launch: essential cookies can run immediately, while analytics and third-party embeds stay off until a visitor chooses otherwise.",
            fr: "La version locale utilise desormais un schema de consentement pense pour un vrai lancement europeen : les cookies essentiels peuvent fonctionner immediatement, tandis que les analyses et les integrations tierces restent desactivees tant que le visiteur ne choisit pas autre chose.",
            nb: "Den lokale byggen bruker na et samtykkemonster laget for en ordentlig EU-lansering: essensielle cookies kan kjore med en gang, mens analyse og tredjepartsinnbygginger forblir av til en besokende velger noe annet.",
          }}
        />
      </p>
    </section>

    <section class="container policy-grid">
      <article class="policy-block">
        <h2><LocaleCopy copy={{ en: "What runs without asking", fr: "Ce qui fonctionne sans demander", nb: "Hva som kan kjore uten a sporre" }} /></h2>
        <p><LocaleCopy copy={{
          en: "Only the minimum needed for the site to function: sign-in state, role-protected family access, and remembered interface language. These are first-party functions tied to operating the service.",
          fr: "Seulement le minimum necessaire au fonctionnement du site : etat de connexion, acces familial protege par role et langue d'interface memorisee. Ce sont des fonctions de premiere main liees au service lui-meme.",
          nb: "Bare minimumet som trengs for at nettstedet skal fungere: innloggingsstatus, rollebeskyttet familieadgang og husket grensesnittsprak. Dette er forstepartsfunksjoner knyttet til selve tjenesten.",
        }} /></p>
      </article>

      <article class="policy-block">
        <h2><LocaleCopy copy={{ en: "What stays off by default", fr: "Ce qui reste desactive par defaut", nb: "Hva som forblir avslatt som standard" }} /></h2>
        <ul>
          <li><LocaleCopy copy={{
            en: "Anonymous analytics, until the visitor actively accepts them.",
            fr: "Les analyses anonymes, jusqu'a acceptation active du visiteur.",
            nb: "Anonym analyse, til besokende aktivt godtar det.",
          }} /></li>
          <li><LocaleCopy copy={{
            en: "Third-party media embeds such as external players, maps, or social widgets.",
            fr: "Les integrations medias tierces comme les lecteurs externes, cartes ou widgets sociaux.",
            nb: "Tredjeparts medieinnbygginger som eksterne spillere, kart eller sosiale widgets.",
          }} /></li>
        </ul>
      </article>

      <article class="policy-block">
        <h2><LocaleCopy copy={{ en: "Current cookie model", fr: "Modele actuel de cookies", nb: "Dagens cookiemodell" }} /></h2>
        <ul>
          <li><strong>`dg_ui_lang`</strong>: <LocaleCopy copy={{
            en: "stores the preferred interface language for up to 180 days.",
            fr: "memorise la langue d'interface preferee pendant 180 jours maximum.",
            nb: "lagrer foretrukket grensesnittsprak i opptil 180 dager.",
          }} /></li>
          <li><strong>`dg_cookie_preferences`</strong>: <LocaleCopy copy={{
            en: "stores the visitor's consent choices for up to 180 days.",
            fr: "memorise les choix de consentement du visiteur pendant 180 jours maximum.",
            nb: "lagrer besokendes samtykkevalg i opptil 180 dager.",
          }} /></li>
        </ul>
      </article>

      <article class="policy-block">
        <h2><LocaleCopy copy={{ en: "How the controls should behave", fr: "Comment les controles doivent se comporter", nb: "Hvordan kontrollene skal oppfore seg" }} /></h2>
        <p><LocaleCopy copy={{
          en: "Refusing optional cookies should be as easy as accepting them. Optional tools should remain dormant until consent exists. The site should keep a readable record of what each category is for before anything decorative or analytical is switched on.",
          fr: "Refuser les cookies optionnels doit etre aussi simple que les accepter. Les outils optionnels doivent rester dormants tant que le consentement n'existe pas. Le site doit garder une description lisible de l'utilite de chaque categorie avant d'activer quoi que ce soit de decoratif ou analytique.",
          nb: "Det skal vaere like enkelt a avvise valgfrie cookies som a godta dem. Valgfrie verktoy skal forbli sovende til samtykke finnes. Nettstedet bor ha en lesbar forklaring pa hva hver kategori er til for for noe dekorativt eller analytisk slas pa.",
        }} /></p>
      </article>

      <article class="policy-block policy-block--full">
        <h2><LocaleCopy copy={{ en: "Before public launch", fr: "Avant lancement public", nb: "For offentlig lansering" }} /></h2>
        <p><LocaleCopy copy={{
          en: "This page is still a draft. Before deployment we should review every script, font, embed, analytics tool, and cookie lifetime against the final production stack, then update the policy and banner copy to match the exact live behavior.",
          fr: "Cette page reste un brouillon. Avant de deployer, il faudra verifier chaque script, police, integration, outil d'analyse et duree de vie des cookies par rapport a la pile de production finale, puis mettre a jour la politique et la banniere pour correspondre au comportement reel.",
          nb: "Denne siden er fortsatt et utkast. For utrulling bor vi ga gjennom hvert script, hver font, hver innbygging, hvert analyseverktoy og hver cookielevetid mot den endelige produksjonsstakken, og deretter oppdatere policyen og bannerteksten slik at de matcher den faktiske adferden.",
        }} /></p>
      </article>
    </section>
  </main>
</BaseLayout>
