<?php declare(strict_types=1);

$allowed = ['privacy-policy', 'terms-of-service'];
$slug    = in_array($slug, $allowed, true) ? $slug : 'privacy-policy';

$content = [
  'privacy-policy' => [
    'title'       => 'Privacy Policy',
    'description' => 'How Big Breath collects, uses, and protects your personal information.',
    'body'        => '<h2>Information We Collect</h2><p>We collect information you provide directly: name, email address, and message content when you submit a contact form. We do not collect payment information directly. Payment processing is handled by third-party providers subject to their own privacy policies.</p><h2>How We Use Your Information</h2><p>We use your information solely to respond to your inquiry and, with your explicit consent, to send you updates about Big Breath programs and offerings. We do not sell, trade, or rent your personal information to third parties.</p><h2>Cookies</h2><p>This site uses minimal cookies for basic analytics only. No third-party advertising cookies are used. You may disable cookies in your browser without affecting your ability to use the site.</p><h2>Data Retention</h2><p>Contact form submissions are retained for up to 24 months for the purpose of managing ongoing client relationships. You may request deletion of your data at any time by emailing hello@bigbreath.co.</p><h2>Contact</h2><p>Questions about this policy may be directed to hello@bigbreath.co.</p>',
  ],
  'terms-of-service' => [
    'title'       => 'Terms of Service',
    'description' => 'Terms governing your use of the Big Breath website and services.',
    'body'        => '<h2>Acceptance of Terms</h2><p>By accessing this website you agree to be bound by these terms. If you do not agree, please do not use the site.</p><h2>Use of the Site</h2><p>This site is provided for informational purposes and to facilitate inquiries about Big Breath services. You agree not to use the site for any unlawful purpose or in any way that could damage, disable, or impair the site.</p><h2>Health Disclaimer</h2><p>Breathwork is a physical practice. Consult a qualified medical professional before beginning any new practice, particularly if you have cardiovascular conditions, respiratory conditions, a history of seizures, or are pregnant. Big Breath programs are not a substitute for medical care.</p><h2>Intellectual Property</h2><p>All content on this site including text, images, and program materials is the intellectual property of Big Breath and may not be reproduced without written permission.</p><h2>Limitation of Liability</h2><p>Big Breath shall not be liable for any indirect, incidental, or consequential damages arising from your use of this site or participation in any Big Breath program.</p><h2>Changes to These Terms</h2><p>We may update these terms at any time. Continued use of the site following any changes constitutes your acceptance of the revised terms.</p><h2>Contact</h2><p>Questions may be directed to hello@bigbreath.co.</p>',
  ],
];

$c = $content[$slug];
$page_title       = $c['title'] . ' | Big Breath';
$page_description = $c['description'];
$page_canonical   = 'https://bigbreath.co/' . $slug . '/';
require __DIR__ . '/../components/_header.php';
?>

<section class="bb-section" style="padding-top:calc(var(--pad-section) + 4rem);">
  <div class="bb-container bb-container--narrow">
    <span class="bb-label bb-reveal">Legal</span>
    <hr class="bb-rule">
    <h1 class="bb-display bb-reveal" style="margin-bottom:var(--s-12);"><?= htmlspecialchars($c['title']) ?></h1>
    <div class="bb-reveal" style="font-size:var(--t-base);line-height:1.9;color:var(--bb-ink);font-weight:var(--w-light);">
      <?= $c['body'] ?>
    </div>
  </div>
</section>

<style>
.bb-container--narrow h2 { font-size:var(--t-lg);font-weight:var(--w-med);color:var(--bb-charcoal);margin:var(--s-10) 0 var(--s-3); }
.bb-container--narrow p  { margin-bottom:var(--s-5); }
</style>

<?php require __DIR__ . '/../components/_footer.php'; ?>
