<!-- Hero -->
<section class="pt-28 pb-14 px-6 relative overflow-hidden" style="background:linear-gradient(160deg,#0b1f3a 0%,#142d55 100%)">
  <div class="absolute pointer-events-none" style="width:440px;height:440px;top:-80px;right:-80px;background:radial-gradient(circle,rgba(239,68,68,.12) 0%,transparent 70%)"></div>
  <div class="absolute pointer-events-none" style="width:320px;height:320px;bottom:-60px;left:-40px;background:radial-gradient(circle,rgba(19,179,180,.1) 0%,transparent 70%)"></div>

  <div class="max-w-4xl mx-auto relative">
    <nav class="flex items-center gap-2 text-xs mb-6 flex-wrap" style="color:rgba(255,255,255,.4)">
      <a href="/" class="hover:text-white transition-colors">Home</a>
      <svg class="w-3 h-3 shrink-0" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
      <span style="color:rgba(255,255,255,.7)">Legal</span>
      <svg class="w-3 h-3 shrink-0" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
      <span style="color:rgba(255,255,255,.7)">Data Deletion Request</span>
    </nav>

    <div class="flex flex-col md:flex-row md:flex-nowrap md:items-start md:justify-between gap-6">
      <div class="flex-1 min-w-0">
        <div class="flex items-center gap-3 mb-4">
          <div class="w-10 h-10 rounded-xl flex items-center justify-center shrink-0" style="background:rgba(239,68,68,.2)">
            <svg class="w-5 h-5" fill="none" stroke="#fca5a5" stroke-width="1.5" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"/>
            </svg>
          </div>
          <span class="text-xs font-bold uppercase tracking-widest px-3 py-1.5 rounded-full" style="background:rgba(239,68,68,.2);color:#fca5a5">Your data rights</span>
        </div>
        <h1 class="text-3xl md:text-4xl font-black text-white mb-3 leading-tight">
          Data Deletion <span class="grad-text">Request</span>
        </h1>
        <p class="text-sm max-w-xl" style="color:rgba(255,255,255,.55);line-height:1.7">
          Request permanent removal of your Analytics Grade account and all associated personal data, metrics, and configurations.
        </p>
      </div>

      <div class="shrink-0 w-full md:w-auto rounded-2xl px-6 py-4 space-y-3" style="background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);min-width:220px">
        <div>
          <p class="text-[10px] font-bold uppercase tracking-wider" style="color:rgba(255,255,255,.35)">Processing time</p>
          <p class="text-sm font-bold text-white mt-0.5">Up to 7 business days</p>
        </div>
        <div class="border-t" style="border-color:rgba(255,255,255,.08)"></div>
        <div>
          <p class="text-[10px] font-bold uppercase tracking-wider" style="color:rgba(255,255,255,.35)">Recommended method</p>
          <p class="text-sm font-bold text-white mt-0.5">Email request</p>
        </div>
        <div class="border-t" style="border-color:rgba(255,255,255,.08)"></div>
        <div>
          <p class="text-[10px] font-bold uppercase tracking-wider" style="color:rgba(255,255,255,.35)">Support email</p>
          <a href="mailto:support@analyticsgrade.com" class="text-sm font-bold mt-0.5 block hover:underline" style="color:#5eead4">support@analyticsgrade.com</a>
        </div>
        <div class="border-t" style="border-color:rgba(255,255,255,.08)"></div>
        <div class="flex items-center gap-2">
          <span class="pulse-dot w-1.5 h-1.5 rounded-full inline-block" style="background:#13b3b4"></span>
          <p class="text-xs font-semibold" style="color:#13b3b4">~3 min read</p>
        </div>
      </div>
    </div>
  </div>
</section>

<!-- Notice banner -->
<div class="px-6 py-3.5" style="background:rgba(239,68,68,.06);border-bottom:1px solid rgba(239,68,68,.15)">
  <div class="max-w-5xl mx-auto flex items-center gap-3">
    <svg class="w-4 h-4 shrink-0" fill="none" stroke="#ef4444" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"/></svg>
    <p class="text-xs text-gray-600">
      <strong style="color:#0b1f3a">Permanent action.</strong> Data deletion cannot be undone once completed.
      <a href="#s3" class="font-semibold" style="color:#ef4444">See what happens &rarr;</a>
    </p>
  </div>
</div>

<!-- Content + sidebar -->
<section class="max-w-6xl mx-auto px-6 py-12">
  <div class="flex gap-10 items-start flex-col lg:flex-row">

    <article class="flex-1 min-w-0 bg-white rounded-2xl border border-gray-100 shadow-sm p-8 md:p-12 w-full">

      <div class="prose-legal">

        <p>
          At Analytics Grade, we respect your data privacy and believe you should have full control over your personal information. If you use our platform, connected your data sources, or have an account with us, you can request the permanent deletion of your data at any time.
        </p>

        <h2 id="s1">How to Request Data Deletion</h2>
        <p>
          To permanently delete your Analytics Grade account and purge all associated metrics, configurations, reports, and personal information from our databases, please use one of the following methods:
        </p>

        <h3 id="s1-1">Method 1: Email Request (Recommended)</h3>
        <div class="not-prose my-5 grid sm:grid-cols-1 gap-4" style="font-family:'Inter',sans-serif">
          <div class="rounded-xl p-5 border border-gray-100 bg-gray-50">
            <div class="flex items-center gap-2.5 mb-3">
              <div class="w-8 h-8 rounded-lg flex items-center justify-center" style="background:rgba(19,179,180,.1)">
                <svg class="w-4 h-4" fill="none" stroke="#13b3b4" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/></svg>
              </div>
              <p class="font-bold text-navy text-sm">Email us</p>
            </div>
            <p class="text-xs text-gray-500 leading-relaxed mb-3">
              Send your request to <a href="mailto:support@analyticsgrade.com" class="font-semibold" style="color:#8065f8">support@analyticsgrade.com</a>.
            </p>
            <ul class="text-xs text-gray-600 space-y-2 leading-relaxed">
              <li><strong>Subject line:</strong> Data Deletion Request</li>
              <li><strong>What to include:</strong> Please send the email from the address associated with your Analytics Grade account, or provide your account username/ID so we can verify your identity.</li>
            </ul>
            <a href="mailto:support@analyticsgrade.com?subject=Data%20Deletion%20Request" class="inline-flex items-center gap-1.5 mt-4 text-xs font-semibold px-4 py-2.5 rounded-xl text-white"
               style="background:linear-gradient(135deg,#8065f8,#4490d3)">
              Send deletion request
              <svg class="w-3 h-3" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M13 7l5 5-5 5M6 12h12"/></svg>
            </a>
          </div>
        </div>

        <h3 id="s1-2">Method 2: Support Contact</h3>
        <div class="not-prose my-5" style="font-family:'Inter',sans-serif">
          <div class="rounded-xl p-5 border border-gray-100 bg-gray-50">
            <div class="flex items-center gap-2.5 mb-3">
              <div class="w-8 h-8 rounded-lg flex items-center justify-center" style="background:rgba(128,101,248,.1)">
                <svg class="w-4 h-4" fill="none" stroke="#8065f8" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"/></svg>
              </div>
              <p class="font-bold text-navy text-sm">Contact page</p>
            </div>
            <p class="text-xs text-gray-500 leading-relaxed">
              You can also submit a request via our main contact form. Include your account email or username so we can verify your identity.
            </p>
            <a href="/contact" class="inline-flex items-center gap-1.5 mt-4 text-xs font-semibold" style="color:#13b3b4">
              Go to contact form
              <svg class="w-3 h-3" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M13 7l5 5-5 5M6 12h12"/></svg>
            </a>
          </div>
        </div>

        <div class="callout-teal not-prose">
          <div class="flex gap-3 items-start">
            <svg class="w-4 h-4 shrink-0 mt-0.5" fill="none" stroke="#13b3b4" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75L11.25 15 15 9.75m-3-7.036A11.959 11.959 0 013.598 6 11.99 11.99 0 003 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285z"/></svg>
            <p class="text-sm" style="font-family:'Inter',sans-serif;color:#0e7a7a;line-height:1.65">
              <strong>Identity verification:</strong> For your security, we may ask you to confirm account ownership before processing a deletion request.
            </p>
          </div>
        </div>

        <h2 id="s2">What Happens When You Request Deletion?</h2>

        <h3 id="s2-1">Data Purge</h3>
        <p>
          Upon receiving and verifying your request, our team will permanently remove your user profile, account settings, connected API integrations, and stored historical metrics from our active databases and backup servers.
        </p>

        <h3 id="s2-2">Processing Time</h3>
        <p>
          The deletion process is typically completed within <strong>7 business days</strong>. We will send a confirmation email to you once the process is finalized.
        </p>

        <h3 id="s3">Irreversible Action</h3>
        <p>
          Please note that this action is permanent and irreversible. Once your data is deleted, Analytics Grade cannot recover your custom dashboards, report histories, or account configurations.
        </p>

        <div class="callout-navy not-prose">
          <div class="flex gap-3 items-start">
            <svg class="w-4 h-4 shrink-0 mt-0.5" fill="none" stroke="#0b1f3a" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"/></svg>
            <p class="text-sm" style="font-family:'Inter',sans-serif;color:#1e293b;line-height:1.65">
              <strong>Before you proceed:</strong> Export any reports or data you may need before submitting a deletion request. After deletion, recovery is not possible.
            </p>
          </div>
        </div>

        <p>
          For more information about how we handle personal data, see our <a href="/privacy">Privacy Policy</a>. For general account or billing questions, visit our <a href="/contact">contact page</a>.
        </p>

      </div>

      <div class="mt-10 pt-6 border-t border-gray-100 flex flex-wrap items-center justify-between gap-4">
        <div class="flex items-center gap-3">
          <svg class="w-4 h-4 text-gray-400" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"/></svg>
          <span class="text-xs text-gray-400">Last updated: June 4, 2026</span>
        </div>
        <button type="button" id="copy-btn" class="flex items-center gap-2 px-4 py-2 rounded-xl border border-gray-200 text-xs font-semibold text-gray-500 hover:border-purple hover:text-purple transition-colors">
          <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"/></svg>
          Copy link
        </button>
      </div>

    </article>

    <aside class="hidden lg:block shrink-0 w-full lg:w-auto" style="width:240px">
      <div class="sidebar-sticky space-y-5">

        <div class="bg-white rounded-2xl border border-gray-100 shadow-sm p-5">
          <h4 class="text-[10px] font-bold uppercase tracking-widest text-gray-400 mb-4">Contents</h4>
          <nav class="space-y-0.5" id="toc">
            <a href="#s1" class="toc-link flex items-center gap-2 py-1.5 px-3 rounded-lg border-l-2 border-transparent text-xs font-semibold text-gray-600 hover:text-purple hover:bg-purple/5">How to Request</a>
            <a href="#s1-1" class="toc-link flex items-center gap-2 py-1.5 px-3 rounded-lg border-l-2 border-transparent text-xs font-semibold text-gray-600 hover:text-purple hover:bg-purple/5 pl-6">Method 1: Email</a>
            <a href="#s1-2" class="toc-link flex items-center gap-2 py-1.5 px-3 rounded-lg border-l-2 border-transparent text-xs font-semibold text-gray-600 hover:text-purple hover:bg-purple/5 pl-6">Method 2: Contact</a>
            <a href="#s2" class="toc-link flex items-center gap-2 py-1.5 px-3 rounded-lg border-l-2 border-transparent text-xs font-semibold text-gray-600 hover:text-purple hover:bg-purple/5">What Happens</a>
            <a href="#s2-1" class="toc-link flex items-center gap-2 py-1.5 px-3 rounded-lg border-l-2 border-transparent text-xs font-semibold text-gray-600 hover:text-purple hover:bg-purple/5 pl-6">Data Purge</a>
            <a href="#s2-2" class="toc-link flex items-center gap-2 py-1.5 px-3 rounded-lg border-l-2 border-transparent text-xs font-semibold text-gray-600 hover:text-purple hover:bg-purple/5 pl-6">Processing Time</a>
            <a href="#s3" class="toc-link flex items-center gap-2 py-1.5 px-3 rounded-lg border-l-2 border-transparent text-xs font-semibold text-gray-600 hover:text-purple hover:bg-purple/5">Irreversible Action</a>
          </nav>
        </div>

        <div class="bg-white rounded-2xl border border-gray-100 shadow-sm p-5">
          <div class="flex items-center justify-between mb-2.5">
            <h4 class="text-[10px] font-bold uppercase tracking-widest text-gray-400">Progress</h4>
            <span id="progress-pct" class="text-xs font-bold text-teal">0%</span>
          </div>
          <div class="w-full h-1.5 rounded-full bg-gray-100 overflow-hidden">
            <div id="progress-fill" class="h-full rounded-full" style="width:0%;background:linear-gradient(90deg,#8065f8,#13b3b4);transition:width .1s linear"></div>
          </div>
          <div class="flex items-center gap-2 mt-3">
            <svg class="w-3.5 h-3.5 text-teal" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/><path stroke-linecap="round" stroke-linejoin="round" d="M12 6v6l4 2"/></svg>
            <span class="text-xs text-gray-500">~3 min read</span>
          </div>
        </div>

        <div class="bg-white rounded-2xl border border-gray-100 shadow-sm p-5">
          <h4 class="text-[10px] font-bold uppercase tracking-widest text-gray-400 mb-4">Quick steps</h4>
          <div class="space-y-3">
            <div class="flex items-start gap-2.5">
              <span class="w-5 h-5 rounded-full flex items-center justify-center shrink-0 text-[10px] font-bold text-white" style="background:#8065f8">1</span>
              <p class="text-[11px] text-gray-600 leading-snug">Email <strong>support@analyticsgrade.com</strong> from your account address</p>
            </div>
            <div class="flex items-start gap-2.5">
              <span class="w-5 h-5 rounded-full flex items-center justify-center shrink-0 text-[10px] font-bold text-white" style="background:#8065f8">2</span>
              <p class="text-[11px] text-gray-600 leading-snug">Use subject line: <strong>Data Deletion Request</strong></p>
            </div>
            <div class="flex items-start gap-2.5">
              <span class="w-5 h-5 rounded-full flex items-center justify-center shrink-0 text-[10px] font-bold text-white" style="background:#8065f8">3</span>
              <p class="text-[11px] text-gray-600 leading-snug">We verify identity and confirm within <strong>7 business days</strong></p>
            </div>
          </div>
        </div>

        <div class="bg-white rounded-2xl border border-gray-100 shadow-sm p-5">
          <h4 class="text-[10px] font-bold uppercase tracking-widest text-gray-400 mb-4">Related legal</h4>
          <div class="space-y-1">
            <a href="/privacy" class="flex items-center justify-between group py-2 px-3 rounded-xl hover:bg-gray-50 transition-colors">
              <span class="text-xs font-semibold text-gray-600 group-hover:text-navy">Privacy Policy</span>
              <svg class="w-3 h-3 text-gray-300 group-hover:text-purple" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M13 7l5 5-5 5M6 12h12"/></svg>
            </a>
            <a href="/terms" class="flex items-center justify-between group py-2 px-3 rounded-xl hover:bg-gray-50 transition-colors">
              <span class="text-xs font-semibold text-gray-600 group-hover:text-navy">Terms of Service</span>
              <svg class="w-3 h-3 text-gray-300 group-hover:text-purple" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M13 7l5 5-5 5M6 12h12"/></svg>
            </a>
          </div>
        </div>

        <div class="rounded-2xl p-5" style="background:linear-gradient(160deg,#0b1f3a,#1a3560)">
          <div class="w-8 h-8 rounded-lg flex items-center justify-center mb-3" style="background:rgba(19,179,180,.25)">
            <svg class="w-4 h-4" fill="none" stroke="#5eead4" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/></svg>
          </div>
          <p class="text-sm font-extrabold text-white mb-1">Ready to submit?</p>
          <p class="text-[10px] mb-4" style="color:rgba(255,255,255,.5)">Send your deletion request and our team will process it after identity verification.</p>
          <a href="mailto:support@analyticsgrade.com?subject=Data%20Deletion%20Request" class="block w-full py-2.5 rounded-xl text-xs font-bold text-white text-center"
             style="background:linear-gradient(135deg,#8065f8,#4490d3)">Email support →</a>
        </div>

      </div>
    </aside>

  </div>
</section>
