// Terms of Service — Never Forget

const TERMS_SECTIONS = [
  {
    id: "agreement",
    title: "The agreement",
    body: (
      <>
        <p>
          By downloading or using Never Forget, you agree to these terms. They're the contract between you and <strong>Titans Boost Ltd.</strong>, the company behind the app. We've kept them as plain as we could.
        </p>
        <LegalCallout icon="i" title="If you don't agree">
          That's fine — don't use the app, or delete it from your devices. There's nothing else you need to do; we don't have an account to close.
        </LegalCallout>
      </>
    )
  },
  {
    id: "license",
    title: "Your license to use the app",
    body: (
      <>
        <p>
          We grant you a personal, non-exclusive, non-transferable license to install and use Never Forget on devices you own or control, for your own non-commercial use. Apple's App Store EULA also applies, since that's where you got the app.
        </p>
        <p>
          You can use Never Forget in a professional context — to remember work material, study for exams, prepare for talks. What you can't do is repackage it, resell it, or strip out its parts and put them in something else.
        </p>
      </>
    )
  },
  {
    id: "acceptable-use",
    title: "Acceptable use",
    body: (
      <>
        <p>The list of things you agree not to do is short and obvious:</p>
        <ul>
          <li>Don't reverse engineer, decompile, or otherwise try to extract the source code.</li>
          <li>Don't use the app to store or schedule reminders for anything illegal.</li>
          <li>Don't try to break, overload, or interfere with our infrastructure or other users' experience.</li>
          <li>Don't impersonate us, or claim affiliation with Titans Boost when you don't have one.</li>
        </ul>
        <p>
          If you find a security issue, please tell us at <a href="mailto:hello@titansboost.app">hello@titansboost.app</a> instead of exploiting it. We're a small team and we appreciate it.
        </p>
      </>
    )
  },
  {
    id: "premium",
    title: "Premium subscription",
    body: (
      <>
        <p>
          Never Forget is free to use with the Classic schedule. Premium unlocks Fast and Super-fast schedules, custom rhythms, and a few quality-of-life extras. Premium is a recurring subscription managed by Apple.
        </p>
        <ul>
          <li><strong>Billing</strong> — charged to your Apple ID at confirmation. Renews automatically at the same price unless cancelled at least 24 hours before the period ends.</li>
          <li><strong>Free trial</strong> — if a trial is offered and you don't cancel before it ends, the paid subscription begins automatically.</li>
          <li><strong>Cancellation</strong> — cancel anytime in iOS Settings → Apple ID → Subscriptions. Premium stays active through the end of the paid period.</li>
          <li><strong>Refunds</strong> — handled by Apple under their refund policy. We can't issue them directly, but we'll happily support a request.</li>
        </ul>
      </>
    )
  },
  {
    id: "your-content",
    title: "Your reps and your content",
    body: (
      <>
        <p>
          Anything you create in the app — titles, categories, notes, schedules — belongs to you. We don't claim any rights over it, we don't read it, and we don't use it to train anything.
        </p>
        <p>
          You're responsible for the content you add. If you put copyrighted material in your reps, that's between you and the rights holder — but since your reps live in your own iCloud and never reach our servers, this is mostly a reminder, not a worry.
        </p>
      </>
    )
  },
  {
    id: "warranty",
    title: "What we promise (and what we don't)",
    body: (
      <>
        <p>
          We work hard to make Never Forget reliable. We test it on real devices, we ship updates promptly, and we read every bug report. But we can't promise it will be flawless, and we'd rather be honest about that than pretend otherwise.
        </p>
        <p>
          The app is provided <strong>"as is"</strong>. To the maximum extent permitted by law, we disclaim implied warranties of merchantability, fitness for a particular purpose, and non-infringement. If a critical reminder fails to arrive — say, because Apple's push servers are down or your device was offline — we're sorry, but we can't be responsible for the consequences.
        </p>
        <LegalCallout icon="!" title="Don't bet your life on it">
          Never Forget is for learning and habit-building. Don't use it as the only safeguard for medication, safety-critical work, or anything where missing a reminder has real-world consequences.
        </LegalCallout>
      </>
    )
  },
  {
    id: "liability",
    title: "Limitation of liability",
    body: (
      <p>
        To the extent allowed by law, our total liability to you for any claim related to the app is limited to the amount you paid us in the previous 12 months (which, for free users, is zero). We're not liable for indirect, incidental, or consequential damages — lost profits, lost data, missed opportunities — even if we were warned they might happen. Some jurisdictions don't allow these limits; if you're in one, this clause applies as far as the law permits.
      </p>
    )
  },
  {
    id: "termination",
    title: "Ending the agreement",
    body: (
      <>
        <p>
          You can end this agreement at any time by deleting the app. We can end it if you breach these terms in a way that doesn't get resolved after we've asked you to fix it. If we end it, we'll cancel any active Premium subscription on a pro-rata basis.
        </p>
      </>
    )
  },
  {
    id: "changes",
    title: "Changes to these terms",
    body: (
      <p>
        We may update these terms when the law changes, when we add features, or when we realize a clause was unclear. For any change that meaningfully affects your rights, we'll show a notice in the app the next time you open it. Continuing to use Never Forget after a change means you accept the updated version.
      </p>
    )
  },
  {
    id: "law",
    title: "Governing law",
    body: (
      <p>
        These terms are governed by the laws of England & Wales. Any dispute that can't be resolved by writing to us first will go to the courts of England & Wales — except where your local consumer-protection law gives you the right to bring it locally, in which case that wins.
      </p>
    )
  },
  {
    id: "contact",
    title: "Contact",
    body: (
      <>
        <p>
          Questions about these terms? Write to <a href="mailto:hello@titansboost.app">hello@titansboost.app</a>.
        </p>
        <p>
          Titans Boost Ltd. · Registered in England & Wales · Company No. 12345678
        </p>
      </>
    )
  }
];

const TermsApp = () =>
  <LegalPage
    current="terms"
    eyebrow="Terms of Service"
    title="The deal, in plain English."
    lede="The contract between you and Titans Boost Ltd. — what you can do with the app, what we promise, and what happens if something goes sideways."
    updated="May 6, 2026"
    sections={TERMS_SECTIONS}
    cross={
      <LegalCross
        to="privacy.html"
        label="Read Privacy"
        title="Privacy Policy"
        desc="The companion document — exactly what data Never Forget collects, and what it doesn't." />
    } />;

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(<TermsApp />);
