import { LEGAL_UPDATED } from "@/lib/legal/privacy";
import type { LocalizedLegal } from "@/lib/legal/types";

export const termsOfService: LocalizedLegal = {
  en: {
    title: "Terms of Service",
    updated: LEGAL_UPDATED,
    intro:
      "These Terms of Service ('Terms') govern your access to and use of the SEO Insight website, application and services (the 'Service'). The Service is operated by SBInnovate Ltd ('we', 'us', 'our'). By creating an account or using the Service, you agree to these Terms.",
    sections: [
      {
        id: "agreement",
        heading: "1. Agreement",
        blocks: [
          {
            type: "p",
            text: "SEO Insight is operated by SBInnovate Ltd, a company registered in England and Wales, registered office 2 Frederick Street, Kings Cross, London WC1X 0ND, United Kingdom. If you use the Service on behalf of an organisation, you confirm that you are authorised to bind that organisation to these Terms.",
          },
        ],
      },
      {
        id: "accounts",
        heading: "2. Eligibility and accounts",
        blocks: [
          {
            type: "p",
            text: "You must be at least 16 years old and able to form a binding contract to use the Service. You are responsible for the information you provide, for keeping your credentials secure and for all activity under your account. Notify us promptly of any unauthorised use.",
          },
        ],
      },
      {
        id: "service",
        heading: "3. The Service",
        blocks: [
          {
            type: "p",
            text: "SEO Insight provides an SEO platform that brings together a multi-source keyword reservoir, backlinks, a content pipeline, multi-site and multi-organisation management, and a built-in MCP server for AI agents. We may add, change or remove features over time. We aim for high availability but do not guarantee that the Service will be uninterrupted or error-free.",
          },
        ],
      },
      {
        id: "trial",
        heading: "4. Free trial",
        blocks: [
          {
            type: "p",
            text: "We offer a 14-day free trial that does not require a credit card. Trial usage limits may differ from paid plans. We may modify or end trials at any time. At the end of the trial, you may choose a paid plan to continue using paid features.",
          },
        ],
      },
      {
        id: "billing",
        heading: "5. Subscriptions, billing and renewals",
        blocks: [
          {
            type: "list",
            items: [
              "Paid plans are billed in advance on a monthly or annual basis through our payment processor, Stripe, at the prices shown on our pricing page at the time of purchase.",
              "Subscriptions renew automatically for the same period unless you cancel before the end of the current term.",
              "You can cancel at any time from the Stripe customer portal; cancellation takes effect at the end of the current billing period.",
              "Add-ons (such as extra seats and MCP credit packs) are charged as described at the time of purchase. One-time credit packs are non-refundable once used.",
              "Prices are exclusive of taxes unless stated otherwise; you are responsible for any applicable taxes.",
              "Except where required by law, payments are non-refundable.",
            ],
          },
        ],
      },
      {
        id: "mcp-usage",
        heading: "6. MCP requests and fair use",
        blocks: [
          {
            type: "p",
            text: "Each plan includes a monthly quota of MCP requests. You may purchase additional one-time, stackable credit packs. You agree not to exceed your quota through automated abuse, not to circumvent usage limits, and to use API keys and the MCP server in line with these Terms and our documentation.",
          },
        ],
      },
      {
        id: "your-data",
        heading: "7. Your data and content",
        blocks: [
          {
            type: "p",
            text: "You retain all rights to the data and content you import or create in the Service ('Your Data'). You grant us a limited licence to host, process and display Your Data solely to operate and provide the Service to you. You are responsible for ensuring you have the rights to import Your Data (including exports from third-party SEO tools) and that doing so complies with applicable law and the terms of those tools.",
          },
        ],
      },
      {
        id: "integrations",
        heading: "8. Third-party integrations",
        blocks: [
          {
            type: "p",
            text: "The Service integrates with third-party services such as Google Search Console and SEO data providers. Your use of those services is governed by their own terms and privacy policies. We are not responsible for third-party services, and we may suspend an integration if a provider changes or restricts access. Our use of Google user data is described in our Privacy Policy.",
          },
        ],
      },
      {
        id: "acceptable-use",
        heading: "9. Acceptable use",
        blocks: [
          {
            type: "p",
            text: "You agree not to: use the Service unlawfully or to infringe others' rights; reverse engineer, resell or sublicense the Service except as permitted; attempt to gain unauthorised access to the Service or its systems; overload, disrupt or probe the infrastructure; or use the Service in a way that breaches the terms of any search engine or data provider. We may suspend access to protect the Service or other users.",
          },
        ],
      },
      {
        id: "intellectual-property",
        heading: "10. Intellectual property",
        blocks: [
          {
            type: "p",
            text: "The Service, including its software, design, trademarks and content (excluding Your Data), is owned by SBInnovate Ltd or its licensors and is protected by intellectual property laws. These Terms do not grant you any rights in the Service except the limited right to use it in accordance with these Terms.",
          },
        ],
      },
      {
        id: "disclaimers",
        heading: "11. Disclaimers",
        blocks: [
          {
            type: "p",
            text: "The Service is provided 'as is' and 'as available' without warranties of any kind, whether express or implied, to the maximum extent permitted by law. We do not warrant any particular SEO outcome, ranking, traffic or revenue. Search engine results depend on factors outside our control.",
          },
        ],
      },
      {
        id: "liability",
        heading: "12. Limitation of liability",
        blocks: [
          {
            type: "p",
            text: "Nothing in these Terms limits liability that cannot be limited by law. Subject to that, we are not liable for indirect, incidental, special or consequential damages, or for loss of profits, revenue, data or goodwill. Our total liability arising out of or relating to the Service is limited to the amount you paid us for the Service in the 12 months before the event giving rise to the claim.",
          },
        ],
      },
      {
        id: "indemnity",
        heading: "13. Indemnity",
        blocks: [
          {
            type: "p",
            text: "You agree to indemnify and hold harmless SBInnovate Ltd from claims, damages and expenses arising from your misuse of the Service, your breach of these Terms, or Your Data infringing the rights of a third party.",
          },
        ],
      },
      {
        id: "termination",
        heading: "14. Suspension and termination",
        blocks: [
          {
            type: "p",
            text: "You may stop using the Service and close your account at any time. We may suspend or terminate your access if you breach these Terms, fail to pay, or where necessary to protect the Service or comply with law. On termination, your right to use the Service ends; sections that by their nature should survive (such as intellectual property, disclaimers, liability and governing law) will survive.",
          },
        ],
      },
      {
        id: "changes",
        heading: "15. Changes to the Service and these Terms",
        blocks: [
          {
            type: "p",
            text: "We may update these Terms from time to time. We will post the updated version on this page and change the 'Last updated' date above. For material changes, we will provide additional notice. Continued use of the Service after changes take effect constitutes acceptance of the updated Terms.",
          },
        ],
      },
      {
        id: "governing-law",
        heading: "16. Governing law and jurisdiction",
        blocks: [
          {
            type: "p",
            text: "These Terms and any dispute arising out of or in connection with them are governed by the laws of England and Wales. The courts of England and Wales have exclusive jurisdiction, save that we may seek injunctive relief in any competent court.",
          },
        ],
      },
      {
        id: "contact",
        heading: "17. Contact us",
        blocks: [
          {
            type: "p",
            text: "SBInnovate Ltd, 2 Frederick Street, Kings Cross, London WC1X 0ND, United Kingdom. Email: hello@seoinsight.app.",
          },
        ],
      },
    ],
  },

  fr: {
    title: "Conditions d'utilisation",
    updated: LEGAL_UPDATED,
    intro:
      "Les présentes Conditions d'utilisation (« Conditions ») régissent votre accès et votre utilisation du site, de l'application et des services SEO Insight (le « Service »). Le Service est exploité par SBInnovate Ltd (« nous », « notre »). En créant un compte ou en utilisant le Service, vous acceptez ces Conditions.",
    sections: [
      {
        id: "agreement",
        heading: "1. Accord",
        blocks: [
          {
            type: "p",
            text: "SEO Insight est exploité par SBInnovate Ltd, société immatriculée en Angleterre et au Pays de Galles, siège social 2 Frederick Street, Kings Cross, London WC1X 0ND, Royaume-Uni. Si vous utilisez le Service pour le compte d'une organisation, vous confirmez être autorisé à engager cette organisation au titre des présentes Conditions.",
          },
        ],
      },
      {
        id: "accounts",
        heading: "2. Éligibilité et comptes",
        blocks: [
          {
            type: "p",
            text: "Vous devez avoir au moins 16 ans et être en capacité de conclure un contrat contraignant pour utiliser le Service. Vous êtes responsable des informations que vous fournissez, de la sécurité de vos identifiants et de toute activité réalisée sous votre compte. Informez-nous sans délai de toute utilisation non autorisée.",
          },
        ],
      },
      {
        id: "service",
        heading: "3. Le Service",
        blocks: [
          {
            type: "p",
            text: "SEO Insight fournit une plateforme SEO réunissant un réservoir de mots-clés multi-sources, les backlinks, un pipeline de contenu, la gestion multi-sites et multi-organisations, et un serveur MCP intégré pour les agents IA. Nous pouvons ajouter, modifier ou retirer des fonctionnalités au fil du temps. Nous visons une haute disponibilité mais ne garantissons pas que le Service sera ininterrompu ou exempt d'erreurs.",
          },
        ],
      },
      {
        id: "trial",
        heading: "4. Essai gratuit",
        blocks: [
          {
            type: "p",
            text: "Nous proposons un essai gratuit de 14 jours sans carte bancaire. Les limites d'usage de l'essai peuvent différer des offres payantes. Nous pouvons modifier ou mettre fin aux essais à tout moment. À la fin de l'essai, vous pouvez choisir une offre payante pour continuer à utiliser les fonctionnalités payantes.",
          },
        ],
      },
      {
        id: "billing",
        heading: "5. Abonnements, facturation et renouvellements",
        blocks: [
          {
            type: "list",
            items: [
              "Les offres payantes sont facturées d'avance, sur une base mensuelle ou annuelle, via notre prestataire de paiement Stripe, aux prix affichés sur notre page de tarifs au moment de l'achat.",
              "Les abonnements se renouvellent automatiquement pour la même période, sauf annulation avant la fin de la période en cours.",
              "Vous pouvez annuler à tout moment depuis le portail client Stripe ; l'annulation prend effet à la fin de la période de facturation en cours.",
              "Les options (sièges supplémentaires, packs de crédits MCP) sont facturées comme indiqué au moment de l'achat. Les packs de crédits ponctuels ne sont pas remboursables une fois utilisés.",
              "Les prix s'entendent hors taxes sauf indication contraire ; vous êtes responsable des taxes applicables.",
              "Sauf obligation légale, les paiements ne sont pas remboursables.",
            ],
          },
        ],
      },
      {
        id: "mcp-usage",
        heading: "6. Requêtes MCP et usage raisonnable",
        blocks: [
          {
            type: "p",
            text: "Chaque offre inclut un quota mensuel de requêtes MCP. Vous pouvez acheter des packs de crédits ponctuels et cumulables. Vous vous engagez à ne pas dépasser votre quota par un usage automatisé abusif, à ne pas contourner les limites d'usage, et à utiliser les clés API et le serveur MCP conformément aux présentes Conditions et à notre documentation.",
          },
        ],
      },
      {
        id: "your-data",
        heading: "7. Vos données et contenus",
        blocks: [
          {
            type: "p",
            text: "Vous conservez l'ensemble des droits sur les données et contenus que vous importez ou créez dans le Service (« Vos Données »). Vous nous accordez une licence limitée pour héberger, traiter et afficher Vos Données aux seules fins d'exploiter et de vous fournir le Service. Vous êtes responsable de disposer des droits nécessaires pour importer Vos Données (y compris les exports d'outils SEO tiers) et de la conformité de cette importation avec la loi applicable et les conditions de ces outils.",
          },
        ],
      },
      {
        id: "integrations",
        heading: "8. Intégrations tierces",
        blocks: [
          {
            type: "p",
            text: "Le Service s'intègre à des services tiers tels que Google Search Console et des fournisseurs de données SEO. Votre utilisation de ces services est régie par leurs propres conditions et politiques de confidentialité. Nous ne sommes pas responsables des services tiers et pouvons suspendre une intégration si un fournisseur modifie ou restreint l'accès. Notre utilisation des données utilisateur Google est décrite dans notre Politique de confidentialité.",
          },
        ],
      },
      {
        id: "acceptable-use",
        heading: "9. Usage acceptable",
        blocks: [
          {
            type: "p",
            text: "Vous vous engagez à ne pas : utiliser le Service de manière illégale ou pour porter atteinte aux droits d'autrui ; faire de l'ingénierie inverse, revendre ou sous-licencier le Service en dehors de ce qui est autorisé ; tenter d'accéder sans autorisation au Service ou à ses systèmes ; surcharger, perturber ou sonder l'infrastructure ; ou utiliser le Service d'une manière qui enfreint les conditions d'un moteur de recherche ou d'un fournisseur de données. Nous pouvons suspendre l'accès pour protéger le Service ou les autres utilisateurs.",
          },
        ],
      },
      {
        id: "intellectual-property",
        heading: "10. Propriété intellectuelle",
        blocks: [
          {
            type: "p",
            text: "Le Service, y compris son logiciel, son design, ses marques et son contenu (à l'exclusion de Vos Données), appartient à SBInnovate Ltd ou à ses concédants et est protégé par le droit de la propriété intellectuelle. Les présentes Conditions ne vous confèrent aucun droit sur le Service, hormis le droit limité de l'utiliser conformément à ces Conditions.",
          },
        ],
      },
      {
        id: "disclaimers",
        heading: "11. Exclusions de garantie",
        blocks: [
          {
            type: "p",
            text: "Le Service est fourni « en l'état » et « selon disponibilité », sans garantie d'aucune sorte, expresse ou implicite, dans la mesure maximale permise par la loi. Nous ne garantissons aucun résultat SEO particulier, ni position, trafic ou chiffre d'affaires. Les résultats des moteurs de recherche dépendent de facteurs hors de notre contrôle.",
          },
        ],
      },
      {
        id: "liability",
        heading: "12. Limitation de responsabilité",
        blocks: [
          {
            type: "p",
            text: "Rien dans les présentes Conditions ne limite une responsabilité qui ne peut l'être légalement. Sous cette réserve, nous ne sommes pas responsables des dommages indirects, accessoires, spéciaux ou consécutifs, ni des pertes de profits, de revenus, de données ou de réputation. Notre responsabilité totale liée au Service est limitée au montant que vous nous avez versé pour le Service au cours des 12 mois précédant le fait générateur de la réclamation.",
          },
        ],
      },
      {
        id: "indemnity",
        heading: "13. Indemnisation",
        blocks: [
          {
            type: "p",
            text: "Vous acceptez d'indemniser et de garantir SBInnovate Ltd contre toute réclamation, dommage et frais découlant de votre usage abusif du Service, de votre violation des présentes Conditions, ou du fait que Vos Données portent atteinte aux droits d'un tiers.",
          },
        ],
      },
      {
        id: "termination",
        heading: "14. Suspension et résiliation",
        blocks: [
          {
            type: "p",
            text: "Vous pouvez cesser d'utiliser le Service et fermer votre compte à tout moment. Nous pouvons suspendre ou résilier votre accès en cas de violation des présentes Conditions, de défaut de paiement, ou lorsque cela est nécessaire pour protéger le Service ou respecter la loi. À la résiliation, votre droit d'utiliser le Service prend fin ; les clauses qui par nature doivent survivre (propriété intellectuelle, exclusions de garantie, responsabilité et droit applicable) demeurent en vigueur.",
          },
        ],
      },
      {
        id: "changes",
        heading: "15. Modifications du Service et des Conditions",
        blocks: [
          {
            type: "p",
            text: "Nous pouvons mettre à jour ces Conditions de temps à autre. Nous publierons la version mise à jour sur cette page et modifierons la date de « Dernière mise à jour » ci-dessus. En cas de changement important, nous fournirons une information complémentaire. La poursuite de l'utilisation du Service après l'entrée en vigueur des modifications vaut acceptation des Conditions mises à jour.",
          },
        ],
      },
      {
        id: "governing-law",
        heading: "16. Droit applicable et juridiction",
        blocks: [
          {
            type: "p",
            text: "Les présentes Conditions et tout litige qui en découle ou s'y rapporte sont régis par le droit d'Angleterre et du Pays de Galles. Les tribunaux d'Angleterre et du Pays de Galles ont compétence exclusive, étant entendu que nous pouvons solliciter des mesures conservatoires devant toute juridiction compétente.",
          },
        ],
      },
      {
        id: "contact",
        heading: "17. Nous contacter",
        blocks: [
          {
            type: "p",
            text: "SBInnovate Ltd, 2 Frederick Street, Kings Cross, London WC1X 0ND, Royaume-Uni. E-mail : hello@seoinsight.app.",
          },
        ],
      },
    ],
  },
};
