All files / components/legal TermsOfService.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 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143      1x         1x         3x                                                                                                                                                                                                                                                                  
import React from "react";
import type { LegalBodyProps } from "./types";
 
const LAST_UPDATED = "8 September 2026";
 
/** The Terms of Service 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 TermsOfServiceBody: 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">
      These Terms of Service ("Terms") govern your access to and use of
      {" "}{appName} (the "Platform"). By creating an account or using the
      Platform, you agree to be bound by these Terms. If you are using
      the Platform on behalf of an organisation, you confirm you have
      authority to bind that organisation to these Terms.
    </p>
 
    <section>
      <h2 className="text-xl font-bold mb-3">1. Using the Platform</h2>
      <p className="text-gray-500 leading-relaxed">
        You may use {appName} to build, configure, and operate AI
        agents, tools, and workflows for lawful business and personal
        purposes. You are responsible for the content you submit,
        configurations you create, and how you use any outputs produced
        by agents you configure.
      </p>
    </section>
 
    <section>
      <h2 className="text-xl font-bold mb-3">2. Accounts &amp; API Keys</h2>
      <p className="text-gray-500 leading-relaxed">
        You are responsible for maintaining the security of your account
        credentials and API keys. Notify us immediately if you suspect
        unauthorised access to your account. You may create, rotate, and
        revoke API keys at any time from your dashboard.
      </p>
    </section>
 
    <section>
      <h2 className="text-xl font-bold mb-3">3. Acceptable Use</h2>
      <ul className="list-disc pl-6 space-y-1.5 text-gray-500">
        <li>
          Do not use the Platform to generate or distribute unlawful,
          infringing, or harmful content.
        </li>
        <li>
          Do not attempt to circumvent rate limits, security controls,
          or access restrictions configured on the Platform.
        </li>
        <li>
          Do not use the Platform to build systems that violate
          applicable data protection or export control laws.
        </li>
        <li>
          Do not reverse engineer or attempt to extract the underlying
          models or infrastructure powering the Platform.
        </li>
      </ul>
    </section>
 
    <section>
      <h2 className="text-xl font-bold mb-3">
        4. Third-Party AI Providers
      </h2>
      <p className="text-gray-500 leading-relaxed">
        When you configure an agent to use a third-party model provider,
        your request is routed to that provider subject to their own
        terms and acceptable use policies. We are not responsible for
        the outputs generated by third-party models, though we provide
        policy and routing controls to help you govern how they are
        used.
      </p>
    </section>
 
    <section>
      <h2 className="text-xl font-bold mb-3">
        5. Intellectual Property
      </h2>
      <p className="text-gray-500 leading-relaxed">
        You retain ownership of the content, configurations, and
        knowledge bases you create on the Platform. We retain ownership
        of the Platform itself, including its software, design, and
        documentation. Nothing in these Terms transfers ownership of our
        intellectual property to you.
      </p>
    </section>
 
    <section>
      <h2 className="text-xl font-bold mb-3">
        6. Service Availability
      </h2>
      <p className="text-gray-500 leading-relaxed">
        We aim to keep the Platform available and secure, but we do not
        guarantee uninterrupted access. We may suspend or restrict
        access to protect the security or integrity of the Platform, or
        to comply with legal obligations, and will notify you where
        reasonably possible.
      </p>
    </section>
 
    <section>
      <h2 className="text-xl font-bold mb-3">7. Termination</h2>
      <p className="text-gray-500 leading-relaxed">
        You may stop using the Platform and close your account at any
        time. We may suspend or terminate your access if you materially
        breach these Terms. Upon termination, your data will be handled
        in accordance with our Privacy Policy.
      </p>
    </section>
 
    <section>
      <h2 className="text-xl font-bold mb-3">8. Changes to These Terms</h2>
      <p className="text-gray-500 leading-relaxed">
        We may update these Terms from time to time. We will notify you
        of material changes, and continued use of the Platform after
        changes take effect constitutes acceptance of the updated Terms.
      </p>
    </section>
 
    <section>
      <h2 className="text-xl font-bold mb-3">9. Contact Us</h2>
      <p className="text-gray-500 leading-relaxed">
        Questions about these Terms can be sent to{" "}
        <a
          href={`mailto:${contactEmail}`}
          style={linkColor ? { color: linkColor } : undefined}
          className={linkColor ? undefined : "underline"}
        >
          {contactEmail}
        </a>
        .
      </p>
    </section>
  </div>
);