<?php
require_once 'config.php';
$canonical = 'https://danangbeachfront.com/cookie-policy';
$title     = 'Cookie Policy – DaNangBeachfront.com';
$desc      = 'How DaNangBeachfront.com uses cookies. Learn which cookies we set, what they do, and how to control them.';
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title><?= htmlspecialchars($title) ?></title>
  <meta name="description" content="<?= htmlspecialchars($desc) ?>">
  <link rel="canonical" href="<?= $canonical ?>">
  <link rel="icon" href="/assets/favicon-dnb.svg" type="image/svg+xml">
  <link rel="stylesheet" href="/assets/style.css">
  <style>
    body { font-family: 'Be Vietnam Pro', system-ui, sans-serif; background: #f0f2f5; color: #1a2535; margin: 0; }
    .legal-wrap { max-width: 860px; margin: 0 auto; padding: 36px 20px 60px; }
    .legal-wrap h1 { font-size: 2rem; font-weight: 800; color: #0d1b2a; margin: 0 0 6px; }
    .legal-updated { font-size: .82rem; color: #9ca3af; margin-bottom: 32px; }
    .legal-wrap h2 { font-size: 1.1rem; font-weight: 800; color: #0d1b2a; margin: 32px 0 10px; padding-bottom: 6px; border-bottom: 2px solid #e5e7eb; }
    .legal-wrap p, .legal-wrap li { font-size: .95rem; line-height: 1.8; color: #374151; margin-bottom: 12px; }
    .legal-wrap ul { padding-left: 20px; margin-bottom: 12px; }
    .legal-wrap li { margin-bottom: 6px; }
    .legal-highlight { background: #f0fdfb; border-left: 4px solid #0369a1; padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 18px 0; }
    .legal-highlight p { margin: 0; font-size: .9rem; color: #134e4a; }
    .cookie-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .88rem; }
    .cookie-table th { background: #f1f5f9; text-align: left; padding: 10px 12px; font-weight: 700; color: #374151; border-bottom: 2px solid #e2e8f0; }
    .cookie-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: top; color: #374151; line-height: 1.6; }
    .cookie-table tr:last-child td { border-bottom: none; }
    .breadcrumb { font-size: .82rem; color: #64748b; padding: 12px 24px; max-width: 860px; margin: 0 auto; }
    .breadcrumb a { color: #0369a1; text-decoration: none; }
  </style>
</head>
<body>
<?php include_once 'includes/header.php'; renderHeader(['enable_top_bar'=>false,'enable_logo_bar'=>true,'enable_search'=>false]); ?>

<div class="breadcrumb"><a href="/">Home</a> › Cookie Policy</div>

<div class="legal-wrap">
  <h1>Cookie Policy</h1>
  <p class="legal-updated">Last updated: 1 July 2026</p>

  <div class="legal-highlight"><p>This policy explains which cookies DaNangBeachfront.com sets, what each one does, and how you can control or disable them. We aim to be transparent about every cookie on this site.</p></div>

  <h2>1. What Are Cookies?</h2>
  <p>Cookies are small text files placed on your device when you visit a website. They allow the website to remember information about your visit — such as your preferred language or filter settings — so that you don't have to re-enter it each time.</p>
  <p>Cookies cannot run programs, deliver viruses, or read files stored on your computer. They contain only the information you provide, or information recorded about your interaction with the site.</p>

  <h2>2. Types of Cookies We Use</h2>

  <h3 style="font-size:.95rem;font-weight:700;color:#374151;margin:20px 0 8px;">2a. Strictly Necessary Cookies</h3>
  <p>These cookies are required for the website to function. You cannot opt out of these.</p>
  <table class="cookie-table">
    <thead><tr><th>Cookie name</th><th>Set by</th><th>Purpose</th><th>Duration</th></tr></thead>
    <tbody>
      <tr><td>PHPSESSID</td><td>DaNangBeachfront.com</td><td>Maintains your session (saved searches, contact form state). No personal data stored.</td><td>Session</td></tr>
    </tbody>
  </table>

  <h3 style="font-size:.95rem;font-weight:700;color:#374151;margin:20px 0 8px;">2b. Analytics Cookies</h3>
  <p>These cookies help us understand how visitors use the site so we can improve it. No personally identifiable information is collected.</p>
  <table class="cookie-table">
    <thead><tr><th>Cookie name</th><th>Set by</th><th>Purpose</th><th>Duration</th></tr></thead>
    <tbody>
      <tr><td>_umami_*</td><td>Umami Analytics</td><td>Privacy-friendly analytics. Records page views and referrers without tracking individuals. No personal data is shared with Umami.</td><td>1 year</td></tr>
    </tbody>
  </table>

  <h3 style="font-size:.95rem;font-weight:700;color:#374151;margin:20px 0 8px;">2c. Advertising Cookies</h3>
  <p>These cookies are set by Google AdSense to serve contextually relevant advertisements. They may collect data about your browsing habits across other websites.</p>
  <table class="cookie-table">
    <thead><tr><th>Cookie name</th><th>Set by</th><th>Purpose</th><th>Duration</th></tr></thead>
    <tbody>
      <tr><td>IDE, DSID, 1P_JAR</td><td>Google (DoubleClick)</td><td>Used by Google AdSense to serve interest-based advertisements.</td><td>Up to 13 months</td></tr>
      <tr><td>NID</td><td>Google</td><td>Stores user preferences for Google services.</td><td>6 months</td></tr>
    </tbody>
  </table>

  <h3 style="font-size:.95rem;font-weight:700;color:#374151;margin:20px 0 8px;">2d. Affiliate Tracking Cookies</h3>
  <p>When you click a hotel booking link (Agoda, Booking.com, or Trip.com), the respective platform sets a cookie to track whether a booking is made. This allows us to receive an affiliate commission. These cookies are set by the third-party platform, not by DaNangBeachfront.com.</p>
  <table class="cookie-table">
    <thead><tr><th>Cookie name</th><th>Set by</th><th>Purpose</th><th>Duration</th></tr></thead>
    <tbody>
      <tr><td>AgodaSIN, agoda_uid</td><td>Agoda</td><td>Tracks referrals from DaNangBeachfront.com for affiliate commission purposes.</td><td>30 days</td></tr>
      <tr><td>pcm_data, BID</td><td>Booking.com</td><td>Tracks referrals for affiliate commission attribution.</td><td>30 days</td></tr>
    </tbody>
  </table>

  <h2>3. How to Control Cookies</h2>
  <p>You can control and delete cookies through your browser settings. Instructions for the most common browsers:</p>
  <ul>
    <li><strong>Google Chrome:</strong> Settings → Privacy and security → Cookies and other site data</li>
    <li><strong>Mozilla Firefox:</strong> Options → Privacy &amp; Security → Cookies and Site Data</li>
    <li><strong>Apple Safari:</strong> Preferences → Privacy → Manage Website Data</li>
    <li><strong>Microsoft Edge:</strong> Settings → Cookies and site permissions</li>
  </ul>
  <p>Note that disabling cookies may affect the functionality of some parts of this site (for example, saving search preferences).</p>

  <h2>4. Third-Party Opt-Outs</h2>
  <ul>
    <li><strong>Google advertising:</strong> <a href="https://adssettings.google.com/" target="_blank" rel="noopener">adssettings.google.com</a></li>
    <li><strong>Network Advertising Initiative:</strong> <a href="https://optout.networkadvertising.org/" target="_blank" rel="noopener">optout.networkadvertising.org</a></li>
    <li><strong>European Interactive Digital Advertising Alliance:</strong> <a href="https://www.youronlinechoices.eu/" target="_blank" rel="noopener">youronlinechoices.eu</a></li>
  </ul>

  <h2>5. Changes to This Policy</h2>
  <p>We may update this Cookie Policy when we add new features or advertising relationships. The "Last updated" date at the top of this page will reflect any changes. Significant changes will be flagged on the homepage.</p>

  <h2>6. Contact</h2>
  <p>Questions about this policy? <a href="/contact">Contact us</a>.</p>
</div>

<?php include_once 'includes/footer.php'; ?>
</body>
</html>
