All files / components/legal PrivacyPolicy.tsx

100% Statements 3/3
100% Branches 4/4
100% Functions 1/1
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126      1x         1x         4x                                                                                                                                                                                                                                
import React from "react";
import type { LegalBodyProps } from "./types";
 
const LAST_UPDATED = "4 October 2026";
 
/** The Privacy Policy text, once for both apps: fe-public publishes it and
 *  fe-core serves it to signed-in users at the same path. Each app wraps it
 *  in its own page chrome. */
export const PrivacyPolicyBody: React.FC<LegalBodyProps> = ({
  appName,
  contactEmail,
  linkColor,
}) => (
  <div className="max-w-3xl space-y-8">
    <p className="text-sm text-gray-400">Last updated: {LAST_UPDATED}</p>
 
    <p className="text-gray-500 leading-relaxed">
      {appName} ("we", "us", "our") provides a privacy and sovereignty
      focused platform for managing, customising, and connecting
      AI agents, tools, and workflows. This Privacy Policy explains what
      data we collect, why we collect it, and how it is protected when
      you use our platform.
    </p>
 
    <section>
      <h2 className="text-xl font-bold mb-3">1. Data We Collect</h2>
      <ul className="list-disc pl-6 space-y-1.5 text-gray-500">
        <li>
          Account data — name, email address, and organisation details
          provided when you sign up or are invited to a workspace.
        </li>
        <li>
          Platform content — prompts, agent configurations, knowledge
          base documents, and other content you create or upload.
        </li>
        <li>
          Usage data — API request metadata, logs, and diagnostic
          information used to operate and secure the platform.
        </li>
        <li>
          Billing data — processed by our payment providers; we do not
          store full payment card details ourselves.
        </li>
      </ul>
    </section>
 
    <section>
      <h2 className="text-xl font-bold mb-3">2. How We Use Data</h2>
      <p className="text-gray-500 leading-relaxed">
        We use your data to operate, secure, and improve the platform:
        authenticating requests, routing them to the AI providers you
        configure, monitoring for abuse and security incidents,
        generating audit trails, and providing customer support. We do
        not sell your data, and we do not use your platform content to
        train third-party models without your explicit consent.
      </p>
    </section>
 
    <section>
      <h2 className="text-xl font-bold mb-3">3. Data Protection</h2>
      <p className="text-gray-500 leading-relaxed">
        Your data is encrypted at rest and in transit, including on its
        way to the AI providers you use. Access to production systems is
        restricted and logged, and every AI interaction can be attributed
        to an audit trail within your organisation. Our backend services
        are never exposed directly to the internet.
      </p>
    </section>
 
    <section>
      <h2 className="text-xl font-bold mb-3">
        4. Sharing &amp; Sub-processors
      </h2>
      <p className="text-gray-500 leading-relaxed">
        When you configure an agent to use a third-party model provider
        (for example, an LLM API), the content of that specific request
        is shared with the provider you selected in order to generate a
        response. We otherwise share data only with sub-processors that
        help us run the platform — such as hosting and infrastructure
        providers — under contracts that require them to protect your
        data to at least the standard set out in this policy.
      </p>
    </section>
 
    <section>
      <h2 className="text-xl font-bold mb-3">5. Data Retention</h2>
      <p className="text-gray-500 leading-relaxed">
        We retain account and platform content for as long as your
        account is active, plus a limited period afterwards to comply
        with legal and audit obligations. You can request deletion of
        your data at any time; deleting a knowledge base or datasource
        removes the underlying files and derived data (such as vector
        embeddings) that were generated from it.
      </p>
    </section>
 
    <section>
      <h2 className="text-xl font-bold mb-3">6. Your Rights</h2>
      <p className="text-gray-500 leading-relaxed">
        Depending on your jurisdiction, you may have rights to access,
        correct, export, or delete your personal data, and to object to
        or restrict certain processing. This is fully supported under UK
        GDPR and EU GDPR. You can download a copy of your data at any
        time from Settings → Data in {appName}. To exercise any other
        right, including deletion, contact us using the details below.
      </p>
    </section>
 
    <section>
      <h2 className="text-xl font-bold mb-3">7. Contact Us</h2>
      <p className="text-gray-500 leading-relaxed">
        If you have questions about this Privacy Policy or how your data
        is handled, contact us at{" "}
        <a
          href={`mailto:${contactEmail}`}
          style={linkColor ? { color: linkColor } : undefined}
          className={linkColor ? undefined : "underline"}
        >
          {contactEmail}
        </a>
        .
      </p>
    </section>
  </div>
);