<?php
declare(strict_types=1);
$domain = (string)($_SERVER['HTTP_HOST'] ?? '');
$domain = preg_replace('/^www\\./i', '', strtok($domain, ':') ?: '');
if (!preg_match('/^(?=.{1,253}$)[A-Za-z0-9](?:[A-Za-z0-9.-]*[A-Za-z0-9])?$/', $domain)) {
    $domain = '';
}
$businessName = 'Decoupage & Decors Studio' . ($domain !== '' ? ' | ' . $domain : '');
$contactEmail = $domain !== '' ? 'info@' . $domain : 'support.decoupagestudio@gmail.com';
function e(string $value): string { return htmlspecialchars($value, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8'); }
?><!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Privacy Policy | <?= e($businessName) ?></title><meta name="description" content="Learn how <?= e($businessName) ?> handles information submitted through the pumpkin decoupage workshop enquiry form."><meta name="robots" content="index,follow"><link rel="stylesheet" href="css/style.css"><script src="js/script.js" defer></script></head>
<body><a class="skip-link" href="#main">Skip to content</a><header class="site-header"><div class="container header-inner"><a class="brand" href="/"><span class="brand-mark" aria-hidden="true">✿</span><span><?= e($businessName) ?></span></a><nav aria-label="Main navigation"><a href="/">Home</a><a href="/#materials">Materials</a><a href="/#steps">Tutorial Steps</a><a href="/#contact">Contact</a><a href="/privacy.php" aria-current="page">Privacy Policy</a></nav></div></header>
<main id="main" class="policy-page"><div class="container policy-container"><p class="eyebrow">Your information matters</p><h1>Privacy Policy</h1><p class="policy-updated">Last updated: October 27, 2026</p><p>This policy explains how <strong><?= e($businessName) ?></strong> (“we”, “us”) handles personal information when you visit this website or send an enquiry about a pumpkin decoupage workshop or DIY guide. Before publishing, the site owner must replace setup placeholders with the real legal business identity, address, contact details, applicable jurisdiction and actual data practices.</p>
<section><h2>1. Who is responsible?</h2><p>Data controller: <?= e($businessName) ?>. Contact: <a href="mailto:<?= e($contactEmail) ?>"><?= e($contactEmail) ?></a>. Business address: the operator must add its actual postal address and applicable registration details here. Do not publish this page as complete until these details have been verified.</p></section>
<section><h2>2. Information we collect</h2><p>If you use the enquiry form, we collect the name and email address you provide, and optionally your phone number, along with your selected interest (in-person workshop, online workshop or digital guide). The form also records the time of submission in the server’s mail handling process. Do not submit sensitive personal information.</p><p>Our hosting provider may process technical information such as IP address, browser details and server logs to operate and secure the website. The exact log retention and hosting arrangements must be confirmed by the site operator.</p></section>
<section><h2>3. Why we use your information</h2><p>We use enquiry information to respond to your request, provide relevant details, and protect the form against abuse. We do not use this form to enroll you in promotional mailing lists. Any future marketing use requires a separate, optional choice and a clear explanation. Submissions are appended to a CSV file on the website server; they are not automatically emailed or sent to a third party by this form.</p><p>Our lawful basis and retention practices depend on the operator’s location and applicable law. The operator must document an appropriate legal basis (for example, responding to a request or taking pre-contractual steps) and choose and disclose a retention period before launch. Access to the CSV must be restricted to authorized people, and records deleted when no longer needed, subject to legal requirements.</p></section>
<section><h2>4. Sharing and transfers</h2><p>We do not sell form information. It may be processed by authorized service providers needed to operate the website, such as the hosting or email provider. The operator must identify actual providers, locations, safeguards for international transfers, and any other recipients before launch. Access should be limited to people who need the information to handle your enquiry.</p></section>
<section id="cookies"><h2>5. Cookies and local storage</h2><p>Essential session cookies may be used for security and form request verification. The cookie notice stores your choice in your browser’s local storage. This implementation does not load analytics or advertising trackers by default. If optional analytics or advertising technologies are later added, disclose their providers, purposes, data, retention, and controls here and obtain legally required consent before activating them. Clearing local storage or browser data resets your choice.</p></section>
<section><h2>6. Security and retention</h2><p>We take reasonable steps to protect submitted data, but no internet transmission or storage method can be guaranteed secure. By default, the CSV is saved in a <code>private-data</code> directory next to (not inside) the website’s document root. The server process needs permission to create and write to this directory. File permissions are restricted where the server supports it. The operator must back up and delete the file securely, restrict server access, and verify that the configured storage path is not publicly downloadable. Submissions are not emailed by this implementation.</p></section>
<section><h2>7. Your rights and choices</h2><p>Depending on your location, you may have rights to access, correct, delete, restrict or object to processing, and to withdraw consent where processing relies on consent. To make a request, contact <a href="mailto:<?= e($contactEmail) ?>"><?= e($contactEmail) ?></a>. You may also complain to your local data protection authority. The operator must tailor these statements to applicable law.</p></section>
<section><h2>8. Children</h2><p>This website is intended for a general audience and is not directed at children. A parent or guardian should supervise children using craft tools and should not submit a child’s personal data through this form.</p></section>
<section><h2>9. Changes to this policy</h2><p>We may update this policy to reflect changes in our service or legal requirements. The date above will be revised when changes are made. Material changes should be communicated as required by applicable law.</p></section>
<section><h2>10. Contact</h2><p>Questions about this policy or your information: <a href="mailto:<?= e($contactEmail) ?>"><?= e($contactEmail) ?></a>. Add the operator’s real postal contact information before launch.</p></section>
<p class="policy-back"><a class="button button-primary" href="/">Return to the tutorial</a></p></div></main>
<footer class="site-footer"><div class="container footer-inner"><div><a class="brand footer-brand" href="/"><span class="brand-mark" aria-hidden="true">✿</span><span><?= e($businessName) ?></span></a><p>Creative ideas for making something your own.</p></div><div class="footer-links"><a href="/">Home</a><a href="/#contact">Contact</a><a href="/privacy.php">Privacy Policy</a></div><p class="copyright">&copy; <?= date('Y') ?> <?= e($businessName) ?>. All rights reserved.</p></div></footer>
<aside class="cookie-banner" id="cookie-banner" role="region" aria-label="Cookie notice" hidden><div class="cookie-content"><p><strong>Cookie notice</strong> — This site uses essential cookies for security and, if enabled, optional analytics cookies to understand site use. You can choose whether to allow optional cookies. See our <a href="/privacy.php#cookies">Privacy Policy</a>.</p><div class="cookie-actions"><button class="button button-small button-outline" type="button" data-cookie-choice="necessary">Essential only</button><button class="button button-small button-primary" type="button" data-cookie-choice="all">Accept optional cookies</button></div></div></aside></body></html>
