<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Privacy Policy - {{businessName}}</title>
  <script src="https://cdn.tailwindcss.com"></script>
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
  <style>
    body { font-family: 'Inter', sans-serif; }
    .gradient-bg {
      background: linear-gradient(135deg, {{brandColor}}15 0%, {{brandColor}}05 100%);
    }
    .brand-accent { color: {{brandColor}}; }
  </style>
</head>
<body class="bg-gray-50 min-h-screen gradient-bg">
  <div class="max-w-4xl mx-auto px-4 py-12 sm:px-6 lg:px-8">
    
    <!-- Header -->
    <div class="mb-8">
      <a href="./" class="inline-flex items-center text-sm brand-accent hover:underline mb-4">
        ← Back to Opt-In
      </a>
      <h1 class="text-4xl font-bold text-gray-900 mb-2">Privacy Policy</h1>
      <p class="text-gray-600">{{businessName}} SMS Messaging Program</p>
      <p class="text-sm text-gray-500 mt-2">Last Updated: {{currentDate}}</p>
    </div>

    <!-- Content -->
    <div class="bg-white rounded-2xl shadow-xl p-8 sm:p-12 space-y-8">
      
      <section>
        <h2 class="text-2xl font-semibold text-gray-900 mb-4">1. Overview</h2>
        <p class="text-gray-700 leading-relaxed">
          This Privacy Policy describes how {{businessName}} ("we," "us," or "our") collects, uses, and protects 
          your personal information when you participate in our SMS messaging program. We are committed to protecting 
          your privacy and complying with applicable laws, including the Telephone Consumer Protection Act (TCPA) 
          and CTIA Messaging Principles and Best Practices.
        </p>
      </section>

      <section>
        <h2 class="text-2xl font-semibold text-gray-900 mb-4">2. Information We Collect</h2>
        <p class="text-gray-700 leading-relaxed mb-4">
          When you opt in to our SMS program, we collect:
        </p>
        <ul class="list-disc list-inside text-gray-700 space-y-2 ml-4">
          <li><strong>Mobile phone number:</strong> Used to send you SMS messages</li>
          <li><strong>Opt-in timestamp:</strong> Records when you consented to receive messages</li>
          <li><strong>Message interaction data:</strong> Delivery status, opt-out requests, and responses to HELP/STOP commands</li>
          <li><strong>Device and carrier information:</strong> Automatically collected for message delivery</li>
        </ul>
      </section>

      <section>
        <h2 class="text-2xl font-semibold text-gray-900 mb-4">3. How We Use Your Information</h2>
        <p class="text-gray-700 leading-relaxed mb-4">
          We use your information solely for the following purposes:
        </p>
        <ul class="list-disc list-inside text-gray-700 space-y-2 ml-4">
          <li>Send you SMS messages for {{useCase}}</li>
          <li>Process your opt-in consent and opt-out requests</li>
          <li>Provide customer support through the HELP command</li>
          <li>Maintain compliance records as required by law</li>
          <li>Improve our messaging service quality</li>
        </ul>
      </section>

      <section>
        <h2 class="text-2xl font-semibold text-gray-900 mb-4">4. Information Sharing</h2>
        <p class="text-gray-700 leading-relaxed">
          <strong>We do not sell, rent, or share your personal information with third parties for marketing purposes.</strong>
          We may share your information only with:
        </p>
        <ul class="list-disc list-inside text-gray-700 space-y-2 ml-4 mt-4">
          <li><strong>Service providers:</strong> SMS platform providers (e.g., Twilio) who help us deliver messages</li>
          <li><strong>Legal compliance:</strong> When required by law or to protect our legal rights</li>
          <li><strong>Business transfers:</strong> In the event of a merger, acquisition, or sale of assets</li>
        </ul>
      </section>

      <section>
        <h2 class="text-2xl font-semibold text-gray-900 mb-4">5. Data Security</h2>
        <p class="text-gray-700 leading-relaxed">
          We implement industry-standard security measures to protect your personal information from unauthorized 
          access, disclosure, alteration, or destruction. Your data is encrypted in transit and at rest. However, 
          no method of electronic transmission or storage is 100% secure.
        </p>
      </section>

      <section>
        <h2 class="text-2xl font-semibold text-gray-900 mb-4">6. Your Rights and Choices</h2>
        <p class="text-gray-700 leading-relaxed mb-4">
          You have the following rights regarding your personal information:
        </p>
        <ul class="list-disc list-inside text-gray-700 space-y-2 ml-4">
          <li><strong>Opt-out:</strong> Reply <strong>STOP</strong> to any message to unsubscribe immediately</li>
          <li><strong>Help:</strong> Reply <strong>HELP</strong> for assistance or contact information</li>
          <li><strong>Access:</strong> Request a copy of your data by contacting us</li>
          <li><strong>Deletion:</strong> Request deletion of your data (opt-out will automatically remove your number from our active list)</li>
          <li><strong>Correction:</strong> Request correction of inaccurate information</li>
        </ul>
      </section>

      <section>
        <h2 class="text-2xl font-semibold text-gray-900 mb-4">7. Data Retention</h2>
        <p class="text-gray-700 leading-relaxed">
          We retain your mobile phone number and consent records for as long as you remain subscribed to our SMS program. 
          After you opt out, we retain minimal records for compliance purposes (proof of opt-out) for up to 4 years 
          as required by TCPA regulations.
        </p>
      </section>

      <section>
        <h2 class="text-2xl font-semibold text-gray-900 mb-4">8. Compliance with TCPA and CTIA Guidelines</h2>
        <p class="text-gray-700 leading-relaxed">
          Our SMS program complies with:
        </p>
        <ul class="list-disc list-inside text-gray-700 space-y-2 ml-4 mt-4">
          <li>Telephone Consumer Protection Act (TCPA) — Prior express written consent required</li>
          <li>CTIA Messaging Principles and Best Practices</li>
          <li>Cellular Telecommunications Industry Association (CTIA) Short Code Monitoring Handbook</li>
          <li>Mobile Marketing Association (MMA) Consumer Best Practices</li>
        </ul>
      </section>

      <section>
        <h2 class="text-2xl font-semibold text-gray-900 mb-4">9. Changes to This Policy</h2>
        <p class="text-gray-700 leading-relaxed">
          We may update this Privacy Policy from time to time. The "Last Updated" date at the top will reflect any changes. 
          We encourage you to review this policy periodically. Continued participation in our SMS program after changes 
          constitutes acceptance of the updated policy.
        </p>
      </section>

      <section>
        <h2 class="text-2xl font-semibold text-gray-900 mb-4">10. Contact Us</h2>
        <p class="text-gray-700 leading-relaxed">
          If you have questions about this Privacy Policy or our SMS program, please contact us:
        </p>
        <div class="mt-4 p-6 bg-gray-50 rounded-lg">
          <p class="text-gray-800"><strong>{{businessName}}</strong></p>
          <p class="text-gray-700 mt-2">Email: <a href="mailto:{{contactEmail}}" class="brand-accent hover:underline">{{contactEmail}}</a></p>
          <p class="text-gray-700">Phone: <a href="tel:{{contactPhone}}" class="brand-accent hover:underline">{{contactPhone}}</a></p>
        </div>
      </section>

    </div>

    <!-- Footer -->
    <div class="text-center mt-8 text-sm text-gray-500">
      <p>&copy; {{currentYear}} {{businessName}}. All rights reserved.</p>
    </div>

  </div>
</body>
</html>
