<!-- 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(128,101,248,.14) 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)">Terms of Service</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(128,101,248,.2)">
            <svg class="w-5 h-5" fill="none" stroke="#c4b5fd" stroke-width="1.5" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
            </svg>
          </div>
          <span class="text-xs font-bold uppercase tracking-widest px-3 py-1.5 rounded-full" style="background:rgba(128,101,248,.2);color:#c4b5fd">Legal document</span>
        </div>
        <h1 class="text-3xl md:text-4xl font-black text-white mb-3 leading-tight">
          Terms of <span class="grad-text">Service</span>
        </h1>
        <p class="text-sm max-w-xl" style="color:rgba(255,255,255,.55);line-height:1.7">
          These Terms govern your use of Analytics Grade's marketing dashboard platform and services provided by Analytics Grade.
        </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)">Effective date</p>
          <p class="text-sm font-bold text-white mt-0.5">January 1, 2026</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)">Last updated</p>
          <p class="text-sm font-bold text-white mt-0.5">May 1, 2026</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)">Governing law</p>
          <p class="text-sm font-bold text-white mt-0.5">British Columbia, Canada</p>
        </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">5 min read</p>
        </div>
      </div>
    </div>
  </div>
</section>

<!-- Legal notice -->
<div class="px-6 py-3.5" style="background:rgba(128,101,248,.08);border-bottom:1px solid rgba(128,101,248,.15)">
  <div class="max-w-5xl mx-auto flex items-center gap-3">
    <svg class="w-4 h-4 shrink-0" fill="none" stroke="#8065f8" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/></svg>
    <p class="text-xs text-gray-600">
      <strong style="color:#0b1f3a">Important:</strong> By accessing or using Analytics Grade's platform, you agree to be bound by these Terms. Please read them carefully before use.
      Questions? <a href="/contact" class="font-semibold" style="color:#8065f8">Contact us</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>
          These Terms of Service (<strong>"Terms"</strong>) govern the use of Analytics Grade's services provided by Analytics Grade (<strong>"Analytics Grade," "we," "our,"</strong> or <strong>"us"</strong>). By accessing or using our platform, you agree to be bound by these Terms. If you do not agree, you must not use the platform.
        </p>

        <h2 id="s1">1. Services</h2>
        <p>
          Analytics Grade provides marketing dashboards and analytics services by integrating data from third-party platforms including, but not limited to, Google Analytics, Microsoft Clarity, Search Console, WordPress, and CallRail. We reserve the right to add, modify, or discontinue integrations and features at any time with reasonable notice.
        </p>

        <h2 id="s2">2. Data Ownership</h2>
        <ul>
          <li><strong>Client data:</strong> Clients retain ownership of their original source data as provided by or collected from third-party platforms.</li>
          <li><strong>Platform outputs:</strong> Analytics Grade owns the dashboards, analytics outputs, visualizations, and derivative works generated within the platform.</li>
          <li><strong>License grant:</strong> By using the platform you grant Analytics Grade a limited, non-exclusive license to process your data solely for the purpose of delivering the services.</li>
        </ul>

        <h2 id="s3">3. Use of Services</h2>
        <p>You agree to use Analytics Grade's services only for lawful purposes and in accordance with these Terms. You agree not to misuse Analytics Grade's services, including but not limited to:</p>
        <ul>
          <li>Attempting unauthorized access to systems, accounts, or data.</li>
          <li>Reverse engineering, decompiling, reselling, or redistributing our platform or its outputs.</li>
          <li>Uploading, transmitting, or storing unlawful, malicious, or harmful content.</li>
          <li>Using the platform to violate any applicable law or third-party right.</li>
          <li>Interfering with or disrupting the integrity or performance of the platform.</li>
        </ul>

        <h2 id="s4">4. Third-Party Services</h2>
        <p>
          Analytics Grade relies on third-party platforms and APIs for data integration. We make no guarantees regarding the accuracy, completeness, timeliness, or availability of third-party data, and we disclaim all liability for errors, delays, or outages originating from those platforms. Your use of any integrated third-party service is also subject to that service's own terms and privacy policies.
        </p>

        <div class="not-prose my-6 rounded-xl px-5 py-4 flex gap-3 items-start" style="background:rgba(68,144,211,.06);border-left:3px solid #4490d3">
          <svg class="w-4 h-4 shrink-0 mt-0.5" fill="none" stroke="#4490d3" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/></svg>
          <p class="text-sm text-gray-600" style="font-family:'Inter',sans-serif;line-height:1.65">
            <strong style="color:#0b1f3a">Note on third-party outages:</strong> If a connected platform (e.g. Google Analytics) experiences an outage, some dashboard data may be delayed or unavailable. Analytics Grade is not responsible for such interruptions and will not issue credits solely due to third-party platform downtime.
          </p>
        </div>

        <h2 id="s5">5. Fees and Refunds</h2>
        <ul>
          <li>Subscription fees and pricing are as set out on our pricing page or in your order confirmation.</li>
          <li>All fees are billed in advance and are non-refundable, except in cases where Analytics Grade is proven to be at fault for a material service failure.</li>
          <li>Where a refund is warranted, it will be issued in the form of service credits applied toward future use, unless otherwise required by applicable law.</li>
          <li>You are responsible for all applicable taxes arising from your purchase.</li>
        </ul>

        <h2 id="s6">6. Termination</h2>
        <p>
          Either party may terminate access to the platform at any time. Analytics Grade may suspend or terminate your account immediately, with or without notice, if:
        </p>
        <ul>
          <li>You fail to pay fees when due and the failure continues for more than 7 days after written notice.</li>
          <li>You misuse the platform or materially violate these Terms.</li>
          <li>You engage in unlawful, fraudulent, or abusive activity.</li>
        </ul>
        <p>
          Upon termination, your access to dashboards, reports, and platform outputs will end. You may export your source data prior to termination; Analytics Grade will retain data for 30 days following termination, after which it may be permanently deleted.
        </p>

        <h2 id="s7">7. Disclaimers and Liability</h2>

        <div class="not-prose my-6 rounded-xl px-5 py-4 flex gap-3 items-start" style="background:rgba(11,31,58,.04);border-left:3px solid #0b1f3a">
          <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 text-gray-600" style="font-family:'Inter',sans-serif;line-height:1.65">
            <strong style="color:#0b1f3a">Please read this section carefully.</strong> It contains important limitations on Analytics Grade's liability to you.
          </p>
        </div>

        <ul>
          <li>Analytics Grade provides services <strong>"as is"</strong> and <strong>"as available"</strong> without warranty of any kind.</li>
          <li>We disclaim all warranties, express or implied, including warranties of merchantability, fitness for a particular purpose, and non-infringement.</li>
          <li>Analytics Grade shall not be liable for any indirect, incidental, special, punitive, or consequential damages, including loss of profits, data, or goodwill.</li>
          <li>Our total liability to you for any claim arising out of or related to these Terms or the services, regardless of the form of action, is limited to the total fees paid by you to Analytics Grade in the twelve (12) months immediately preceding the claim.</li>
          <li>Some jurisdictions do not allow certain limitations on liability; in such jurisdictions, our liability is limited to the maximum extent permitted by law.</li>
        </ul>

        <h2 id="s8">8. Governing Law</h2>
        <p>
          These Terms are governed by and construed in accordance with the laws of the Province of British Columbia, Canada, without regard to its conflict of law provisions. This is subject to any mandatory consumer protection laws that apply in your jurisdiction, including those applicable in the United States, Canada, and the European Union.
        </p>
        <p>
          Any dispute arising from these Terms shall first be subject to good-faith negotiation. If unresolved, disputes shall be submitted to binding arbitration in Vancouver, British Columbia, unless otherwise required by applicable law.
        </p>

        <h2 id="s9">9. Changes to Terms</h2>
        <p>
          We may modify these Terms at any time by posting an updated version on our website. We will provide reasonable advance notice of material changes — typically at least 14 days — via email or an in-platform notification. Continued use of the service after the effective date of changes constitutes your acceptance of the revised Terms.
        </p>
        <p>
          If you do not agree with a change, you may terminate your account before the change takes effect.
        </p>

        <h2 id="s10">10. Contact</h2>
        <p>If you have any questions about these Terms, please contact us:</p>

        <div class="not-prose my-6">
          <div class="grid sm:grid-cols-2 gap-4" style="font-family:'Inter',sans-serif">
            <div class="rounded-xl p-5 border border-gray-100" style="background:#f9fafb">
              <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="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"/></svg>
                </div>
                <p class="font-bold text-navy text-sm">Analytics Grade</p>
              </div>
              <p class="text-xs text-gray-500 leading-relaxed">703 – 1600 Hornby Street<br/>Vancouver, BC, Canada<br/>V6Z 2S4</p>
            </div>
            <div class="rounded-xl p-5 border border-gray-100" style="background:#f9fafb">
              <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</p>
              </div>
              <a href="mailto:info@analyticsgrade.com" class="text-sm font-semibold" style="color:#8065f8">info@analyticsgrade.com</a>
              <p class="text-xs text-gray-400 mt-1.5">We respond within 2 business days.</p>
              <a href="/contact" class="inline-flex items-center gap-1.5 mt-3 text-xs font-semibold" style="color:#13b3b4">
                Use our 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>

      </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: May 1, 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">1. Services</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">2. Data Ownership</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">3. Use of Services</a>
            <a href="#s4" 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">4. Third-Party Services</a>
            <a href="#s5" 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">5. Fees and Refunds</a>
            <a href="#s6" 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">6. Termination</a>
            <a href="#s7" 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">7. Disclaimers &amp; Liability</a>
            <a href="#s8" 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">8. Governing Law</a>
            <a href="#s9" 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">9. Changes to Terms</a>
            <a href="#s10" 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">10. Contact</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-purple">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">~5 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">Related legal</h4>
          <div class="space-y-2">
            <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="/data-deletion" 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">Data Deletion Request</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="#" 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">Cookie 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="#" 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">Data Processing Agreement</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="#" 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">Security Overview</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(128,101,248,.25)">
            <svg class="w-4 h-4" fill="none" stroke="#c4b5fd" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/></svg>
          </div>
          <p class="text-sm font-extrabold text-white mb-1">Have a question?</p>
          <p class="text-[10px] mb-4" style="color:rgba(255,255,255,.5)">Our team is happy to explain any part of these Terms in plain language.</p>
          <a href="/contact" class="block w-full py-2.5 rounded-xl text-xs font-bold text-white text-center"
             style="background:linear-gradient(135deg,#8065f8,#4490d3)">Contact us →</a>
        </div>

      </div>
    </aside>

  </div>
</section>
