/* global React */
// ============================================================
// LEGAL CONTENT (EN) — Privacy Notice / Terms and Conditions /
// Data Protection, translated from the Spanish originals at docs.meefi.io.
//   · Each document is client-routed at /en/legal/{slug} (its ES
//     counterpart at /es/legal/{slug}); the slug is always English.
//     Rendered together with the ES docs by the bilingual app-legal.jsx
//     (see the LegalDocsEn export).
//   · This is a reference translation — the Spanish version is the
//     legally binding original; see the notice at the top of each doc.
//   · Content subject to change — edit the *Content components below.
// ============================================================

function LegalHeadingEn({ children }) {
  return <h3 className="legal-h3">{children}</h3>;
}

function TranslationNotice() {
  return (
    <p className="legal-p" style={{ fontStyle: "italic", color: "var(--fg-3)" }}>
      This is an English translation provided for convenience. In the event of any
      discrepancy, the Spanish-language original — switch language above — governs.
    </p>
  );
}

// ---- Privacy Notice ----
function PrivacyContent() {
  return (
    <>
      <TranslationNotice/>
      <LegalHeadingEn>Purpose</LegalHeadingEn>
      <p className="legal-p">
        At VENTRAUREN SAPI DE CV, we are committed to protecting your privacy and keeping
        the personal data you provide safe when you use our accounts-receivable and
        accounts-payable invoicing and reconciliation software-as-a-service (SaaS), known
        as Meefi. This Privacy Notice describes how we collect, use, store, and disclose
        your personal information and the rights you have over that information.
      </p>

      <LegalHeadingEn>1. Information we collect</LegalHeadingEn>
      <p className="legal-p">When you use Meefi, we may collect the following personal information, directly or indirectly:</p>
      <ul className="legal-list">
        <li><strong>a)</strong> Contact information: such as your name, email address, phone number, and mailing address.</li>
        <li><strong>b)</strong> Billing information: such as your tax ID (RFC), tax address, and data related to invoicing, including details of invoices issued and received.</li>
        <li><strong>c)</strong> Company information: such as company name, public registry number, description of the company's activity, and other related data.</li>
        <li><strong>d)</strong> Usage information: such as activity logs, interactions, and transactions carried out through various banks and financial institutions.</li>
        <li><strong>e)</strong> Financial information: such as bank account data, collection information like credit or debit card numbers, and banking operation information such as transaction history, payment amounts, details of bank movements, and other data related to financial transactions carried out through Meefi.</li>
      </ul>

      <LegalHeadingEn>2. Use of information</LegalHeadingEn>
      <p className="legal-p">We use the personal information we collect for the following purposes:</p>
      <ul className="legal-list">
        <li><strong>a)</strong> Providing and improving Meefi's services.</li>
        <li><strong>b)</strong> Personalizing and tailoring your experience with Meefi.</li>
        <li><strong>c)</strong> Communicating with you and sending you notifications related to Meefi's services, such as updates, changes to the terms and conditions, or important information about your account.</li>
        <li><strong>d)</strong> Complying with our legal and regulatory obligations.</li>
        <li><strong>e)</strong> Protecting and defending our legitimate rights and interests.</li>
      </ul>

      <LegalHeadingEn>3. ARCO Rights (Access, Rectification, Cancellation, and Objection)</LegalHeadingEn>
      <p className="legal-p">You have rights over your personal data, and you may exercise your ARCO rights as follows:</p>
      <ul className="legal-list">
        <li><strong>a)</strong> Access: you may request information about the personal data we hold and how we use it.</li>
        <li><strong>b)</strong> Rectification: you have the right to correct any inaccurate or incomplete personal data.</li>
        <li><strong>c)</strong> Cancellation: you may request the deletion of your personal data under certain circumstances and in accordance with applicable law.</li>
        <li><strong>d)</strong> Objection: you may object to the processing of your personal data in certain situations.</li>
      </ul>
      <p className="legal-p">To exercise these rights or make inquiries about the privacy of your data, you may contact us through the means provided at the end of this notice.</p>

      <LegalHeadingEn>4. Data protection measures</LegalHeadingEn>
      <p className="legal-p">We have implemented technical, organizational, and security measures to protect your personal data against unauthorized access, disclosure, alteration, or improper destruction. These measures include:</p>
      <ul className="legal-list">
        <li><strong>a)</strong> Restricting access to personal information to only those employees and service providers who need it to fulfill the purposes described in this Privacy Notice.</li>
        <li><strong>b)</strong> Using industry-standard security technologies and practices to protect information in transit and at rest.</li>
        <li><strong>c)</strong> Maintaining internal procedures to respond promptly to any security incident and to notify the competent authorities and affected users, as applicable.</li>
      </ul>

      <LegalHeadingEn>5. Consent to the use of your data</LegalHeadingEn>
      <p className="legal-p">By using Meefi and providing your personal information, you accept and consent to the use, processing, and transfer of that information in accordance with the terms set out in this Privacy Notice.</p>

      <LegalHeadingEn>6. Use of personal data solely for the stated purposes</LegalHeadingEn>
      <p className="legal-p">We are committed to using and handling your personal data solely for the purposes described in this Privacy Notice and in accordance with applicable law. We will not share, sell, or disclose your personal information to third parties, except as permitted by law or when necessary to provide Meefi's services, such as payment-processing service providers, or to comply with legal obligations.</p>

      <LegalHeadingEn>7. Contact information</LegalHeadingEn>
      <dl className="legal-contact">
        <div className="legal-contact-row">
          <dt>Address:</dt>
          <dd>Av. Ejercito Nacional 843-B, interior 5A, Granada, Miguel Hidalgo, CDMX, 11520, Mexico</dd>
        </div>
        <div className="legal-contact-row">
          <dt>Email:</dt>
          <dd><a href="mailto:hola@meefi.io" className="legal-link">hola@meefi.io</a></dd>
        </div>
        <div className="legal-contact-row">
          <dt>Phone:</dt>
          <dd><a href="tel:+528124746986" className="legal-link">+52 81 2474 6986</a></dd>
        </div>
        <div className="legal-contact-row">
          <dt>ARCO Rights Request:</dt>
          <dd><a href="https://docs.google.com/document/d/1Y2gZxeDwop-CcN9ReG_osRIPH41w2B7Q0scPa4ruTLE/edit?tab=t.0" target="_blank" rel="noopener noreferrer" className="legal-link">ARCO Rights Request Form</a></dd>
        </div>
      </dl>
    </>
  );
}

// ---- Terms and Conditions ----
function TermsContent() {
  return (
    <>
      <TranslationNotice/>
      <LegalHeadingEn>Purpose</LegalHeadingEn>
      <p className="legal-p">
        Users are informed that the following Terms and Conditions apply to them by the
        mere use of or access to any of the pages, web and mobile applications, software,
        and applications in general that make up the meefi.io portal (hereinafter,
        jointly and interchangeably, the "Portal"), and we will therefore understand that
        the User accepts them and agrees to be bound by them. <strong>If you do not agree
        with these Terms and Conditions, you must refrain from accessing or using the
        Portal.</strong>
      </p>
      <p className="legal-p">VENTRAUREN S.A.P.I. DE C.V. and/or its subsidiaries, holding companies, related parties, and affiliates (hereinafter, jointly and interchangeably, the "Company") reserve the right to modify the content of the Portal at their discretion at any time, without prior notice.</p>
      <p className="legal-p">The User, understood as any person who uses or accesses the Portal by means of a computer and/or any communication device (hereinafter the "User"), agrees not to use devices, software, or any other means intended to interfere with the Portal's activities and/or operations, or with the databases and/or information contained therein.</p>

      <LegalHeadingEn>1. USE AND RESTRICTIONS</LegalHeadingEn>
      <p className="legal-p">Access to or use of the Portal expresses the User's full and unreserved adherence to these Terms and Conditions. Through the Portal, the User will make use of, contract, and/or use various services and content (the "Services and Content") made available by the Company. The Company shall have the right to deny, restrict, or condition the User's access to the Portal, in whole or in part, at its sole discretion, as well as to modify the Portal's Services and Content at any time and without prior notice.</p>
      <p className="legal-p">The User acknowledges that not all Services and Content are available in all geographic areas and that some Services and Content may only be used after the User's prior contracting, activation, or registration and/or upon payment. The Company does not guarantee the availability and continuity of the Portal's operation or of the Services and Content, nor the usefulness of the Portal or the Services and Content in relation to any specific activity, regardless of the means of access used by the User. The Company will not be liable for any damage or loss of any kind that may be caused by the lack of availability or continuity of operation of the Portal and/or the Services and Content.</p>
      <p className="legal-p">Use of the Services and Content on the Portal is the sole responsibility of the User, who must in all cases use them in accordance with the functionalities permitted on the Portal itself and the uses authorized in these Terms and Conditions. The User therefore agrees to use them in a manner that does not contravene good customs, third-party rights, internet usage and etiquette standards, the laws of the United Mexican States, and the legislation in force in the country where the User is located when accessing the Portal and using the Services and Content. The Portal is for the User's individual use, and the User may not commercialize the Services and Content in any way.</p>

      <LegalHeadingEn>2. RESTRICTIONS</LegalHeadingEn>
      <p className="legal-p">The User does not have the right to place hyperlinks within the Portal, to use the Portal's links, or the right to place or use the Services and Content on their own sites or pages or those of third parties, without the Company's prior written authorization. The User may not prevent any other User from using the Portal or the Services and Content.</p>

      <LegalHeadingEn>3. INTELLECTUAL PROPERTY</LegalHeadingEn>
      <p className="legal-p">Intellectual and industrial property rights with respect to the Services and Content, the distinctive signs and domains of the Pages or of the Portal, as well as the rights of use and exploitation thereof, including without limitation their disclosure, publication, reproduction, distribution, and transformation, are the exclusive property of the Company. The User does not acquire any intellectual and/or industrial property right by the mere use of or access to the Portal's Services and Content, and such use will never be considered an authorization or license to use the Services and Content for purposes other than those contemplated in these Terms and Conditions.</p>

      <LegalHeadingEn>4. THIRD-PARTY INTELLECTUAL PROPERTY</LegalHeadingEn>
      <p className="legal-p">The User agrees that the provisions set out in Section 3 above regarding the Company's ownership of rights are also applicable to the rights of third parties with respect to the Services and Content of the Pages, domains, or information presented or linked to the Portal.</p>

      <LegalHeadingEn>5. QUALITY OF THE SERVICES AND CONTENT AND THEIR WARRANTIES</LegalHeadingEn>
      <p className="legal-p">Neither the Company nor its suppliers or business partners will be liable for any damage or harm suffered by the User as a result of inaccuracies, inquiries made, advice given, typographical errors, or periodic changes or improvements made to the Services and Content. The recommendations and advice obtained through the Portal are of a general nature and should not be relied upon in making personal or professional decisions. For that purpose, an appropriate professional should be consulted who can advise the User according to their specific needs.</p>
      <p className="legal-p">The Company offers the Services and Content with a commercially reasonable level of skill and diligence; however, it offers no warranty of any kind with respect to them. The Portal is provided by the Company "as is" and "as available." The Company makes no representation or warranty of any kind, express or implied, regarding the operation of the Portal, or the information, content, materials, or products included therein. The User expressly agrees that use of the Portal is at their own risk. The Company reserves the right to remove or delete any information from the Portal at any time, at its sole discretion. Neither the Company nor its suppliers or distributors offer specific warranties regarding the Services and Content; the Company disclaims all warranties to the extent permitted by applicable law.</p>
      <p className="legal-p">In accordance with these Terms and Conditions, the Company does not assume and will not assume any liability toward any person arising or that may arise from the Services and Content, browsing the Portal, inquiries, clarifications, and/or any other type of response given by the Company through any means of communication.</p>
      <p className="legal-p">The User agrees to hold the Company, its shareholders, subsidiaries, affiliates, officers, directors, employees, advisors, attorneys-in-fact, representatives, and/or any person related to it harmless from any liability that may be attributed by virtue of and/or in connection with the Portal, the provision of the Services and Content, or any other matter arising from these Terms and Conditions.</p>
      <p className="legal-p">The User understands and agrees that the Company's liability of any kind will, in all cases, be limited to the amount paid as consideration for the Services and Content.</p>

      <LegalHeadingEn>5.1 RETURNS AND CANCELLATIONS</LegalHeadingEn>
      <p className="legal-p">For Users' protection, they may cancel the Services and Content acquired on the Portal at any time, at their sole discretion and without any liability, subject to compliance with the terms and conditions of the previously signed service agreement.</p>
      <p className="legal-p">The User acknowledges that charges made to debit or credit cards for the Services and Content are not eligible for refund, and that by making such payments the User is subject to the Terms and Conditions of the payment service providers involved.</p>

      <LegalHeadingEn>5.2 SUBSCRIPTIONS</LegalHeadingEn>
      <p className="legal-p">Use and/or contracting of some or all of the Services and Content may require the User to register and to have a valid automatic payment method associated with that registration, which may be modified or canceled subject to the terms and conditions of the service agreement. Where applicable, the User will be subject to the Terms and Conditions of the payment platform.</p>

      <LegalHeadingEn>6. LINKED THIRD-PARTY GOODS AND SERVICES</LegalHeadingEn>
      <p className="legal-p">The fact that information is offered on the Portal or on other linked sites does not imply the Company's recommendation, warranty, sponsorship, or approval of such information, goods, and/or services. The availability of goods and/or services offered by third parties or by linked sites is not the Company's responsibility. Accordingly, the Company will not be liable before any authority of any nature for any matter related to the sale, consumption, distribution, delivery, availability, or provision of any goods and/or services offered by third parties or by sites linked through the Portal.</p>
      <p className="legal-p">With respect to Services and Content provided by third parties within or through links to the Portal (such as links, banners, and buttons), the Company's involvement is limited exclusively, for the User's convenience, to: (i) informing the User about them, and (ii) providing a means to put the User in contact with providers or vendors. The products and/or services marketed within the Portal and/or on linked third-party sites are supplied by independent merchants and will not, under any circumstances, be understood to be the Company's responsibility. There is no employment relationship, partnership, or association of any kind between the Company and such third parties. All advice, opinions, statements, information, and content on linked third-party pages or within the Portal represent the opinions and judgments of that third party; consequently, the Company will not be liable for any damage or harm suffered by the User as a result thereof.</p>

      <LegalHeadingEn>7. CONFIDENTIALITY</LegalHeadingEn>
      <p className="legal-p">The Company agrees to keep confidential any information it receives from the User that has that character under applicable legal provisions in the United Mexican States; the Company assumes no obligation to keep confidential any other information the User provides to it.</p>

      <LegalHeadingEn>8. USE OF NON-CONFIDENTIAL INFORMATION</LegalHeadingEn>
      <p className="legal-p">By using the Portal, the User authorizes the Company, without limitation, to use, publish, reproduce, disclose, publicly communicate, and transmit non-confidential information, in accordance with the Federal Law on Protection of Personal Data Held by Private Parties, the Federal Copyright Law, the Federal Consumer Protection Law, and any other applicable law under Mexican legislation.</p>

      <LegalHeadingEn>9. COOKIES</LegalHeadingEn>
      <p className="legal-p">Users who access the Portal agree to receive files transmitted by the Company's servers. A "Cookie" is a data file stored on the User's computer hard drive when the User accesses the Portal. These files may contain information such as identification provided by the User or information to track the pages the User has visited. A Cookie cannot read data or information from the User's hard drive, nor read Cookies created by other sites or pages.</p>
      <p className="legal-p">Cookies are generally accepted automatically; the User may change their browser settings at any time. If the User chooses to reject Cookies, certain sections of the Portal may not function optimally or may not function at all.</p>

      <LegalHeadingEn>10. PERSONAL DATA PRIVACY NOTICE</LegalHeadingEn>
      <p className="legal-p">All information the Company collects from the User is treated with absolute confidentiality in accordance with applicable Mexican legislation.</p>
      <p className="legal-p">To learn more about the protection of your personal data, please see our <a href="/en/legal/privacy-notice" className="legal-link">Privacy Notice</a>.</p>

      <LegalHeadingEn>11. ACCESS CREDENTIALS</LegalHeadingEn>
      <p className="legal-p">At all times, the User is solely and ultimately responsible for keeping secret any access credentials they may have and with which they access certain Services and Content on the Portal.</p>

      <LegalHeadingEn>11.1 ACCOUNTS</LegalHeadingEn>
      <p className="legal-p">By creating an account on the Portal, the User declares, under penalty of perjury, that they are at least 18 years of age or of legal age in their jurisdiction; the User acknowledges that they are responsible for any activity carried out with or through that account, and acknowledges that they are aware of and accept the conditions set out in these Terms and Conditions and in the Privacy Notice.</p>

      <LegalHeadingEn>12. AMENDMENTS</LegalHeadingEn>
      <p className="legal-p">The Company has the right to modify these Terms and Conditions at any time, without prior notice and/or the User's consent. Consequently, the User must carefully read the Terms and Conditions each time they intend to use the Portal. Certain Services and Content offered to Users on and/or through the Portal are subject to specific particular conditions that replace, supplement, and/or modify these Terms and Conditions. Accordingly, the User must also carefully read the corresponding particular conditions before accessing any of the Services and Content.</p>

      <LegalHeadingEn>13. APPLICABLE LAW AND JURISDICTION</LegalHeadingEn>
      <p className="legal-p">For the interpretation, performance, and enforcement of these Terms and Conditions, the User agrees that the Federal laws of the United Mexican States will apply, and the courts of Miguel Hidalgo, Mexico City will have jurisdiction, expressly waiving any other venue or jurisdiction that may correspond to the User by reason of their present or future domicile or for any other cause.</p>

      <LegalHeadingEn>14. CONTACT</LegalHeadingEn>
      <p className="legal-p">Users may at any time contact Company personnel for any clarification, comment, question, and/or suggestion related to the Services and Content, the Portal, and/or these Terms and Conditions at <a href="mailto:hola@meefi.io" className="legal-link">hola@meefi.io</a>.</p>
    </>
  );
}

// ---- Data Protection Policy ----
function DataProtectionContent() {
  return (
    <>
      <TranslationNotice/>
      <LegalHeadingEn>Purpose</LegalHeadingEn>
      <p className="legal-p">
        This document contains the Personal Data Protection Policy of Ventrauren
        S.A.P.I. de C.V. (the "Policy"). The purpose of the Policy is to ensure that
        the business activities of Ventrauren S.A.P.I. de C.V. ("Meefi") are conducted
        within the framework of Mexican legislation on the protection of personal data,
        particularly regarding the handling of such information. This includes applying
        the purpose limitation principle in the use of personal data, obtaining the
        consent of data subjects, and implementing procedures for the exercise of
        information, rectification, and deletion rights over personal data. It also
        contemplates the implementation of audits and the review of new products or
        services.
      </p>

      <LegalHeadingEn>1. Applicable Legal Framework</LegalHeadingEn>
      <p className="legal-p">For purposes of this Policy, the following are considered the relevant legal standards:</p>
      <ul className="legal-list">
        <li><strong>1.</strong> The Federal Law on Protection of Personal Data Held by Private Parties, published July 5, 2010, which regulates the legitimate, controlled, and informed processing of personal data to guarantee individuals' privacy and right to informational self-determination (the "Personal Data Protection Law"); and</li>
        <li><strong>2.</strong> The Regulations to the Federal Law on Protection of Personal Data Held by Private Parties, published December 21, 2011, which establish the provisions for implementing the law referenced above (the "Regulations to the Personal Data Protection Law").</li>
      </ul>
      <p className="legal-p">Meefi states that it fully complies with the legal framework indicated above.</p>

      <LegalHeadingEn>2. Key Concepts</LegalHeadingEn>
      <p className="legal-p">The following concepts are essential to understanding the Policy and have been prepared in accordance with the Federal Law on Protection of Personal Data Held by Private Parties:</p>
      <ul className="legal-list">
        <li><strong>1. Data Storage:</strong> The preservation or custody of data in a record or database.</li>
        <li><strong>2. Expired Data:</strong> Data that has lost currency by operation of law, upon fulfillment of a condition or expiration of the term set for its validity, or, absent an express rule, due to a change in the facts or circumstances it records.</li>
        <li><strong>3. Personal Data:</strong> Information concerning identified or identifiable individuals.</li>
        <li><strong>4. Deletion or Cancellation of Data:</strong> The destruction of data stored in records or databases, regardless of the procedure used to accomplish it.</li>
        <li><strong>5. Publicly Accessible Sources:</strong> Records or compilations of personal data, public or private, that are not subject to restricted or reserved access.</li>
        <li><strong>6. Data Modification:</strong> Any change to the content of data stored in records or databases.</li>
        <li><strong>7. Data Record or Database:</strong> The organized set of personal data, whether automated or not, and regardless of the form or manner of its creation or organization, that allows data to be related to one another and to be processed in any way.</li>
        <li><strong>8. Data Controller:</strong> The private individual or legal entity, or the corresponding public body, responsible for decisions related to the processing of personal data.</li>
        <li><strong>9. Data Subject:</strong> The individual to whom the personal data refers.</li>
        <li><strong>10. Data Processing:</strong> Any operation or set of operations or technical procedures, automated or not, that allow personal data to be collected, stored, recorded, organized, prepared, selected, extracted, compared, interconnected, dissociated, communicated, assigned, transferred, transmitted, or canceled, or otherwise used.</li>
      </ul>

      <LegalHeadingEn>3. Sources of Access to Personal Data</LegalHeadingEn>
      <p className="legal-p">Meefi develops specialized financial software. Meefi obtains information from various public and private sources to facilitate the customer onboarding process. This data is obtained in accordance with the Federal Law on Protection of Personal Data Held by Private Parties and its Regulations.</p>

      <LegalHeadingEn>4. Purpose of the Use of Personal Data</LegalHeadingEn>
      <p className="legal-p">Meefi uses personal data exclusively for the commercial evaluation of potential customers and suppliers, strictly complying with the purpose-limitation principle established in the Personal Data Protection Law.</p>

      <LegalHeadingEn>5. Obtaining Consent</LegalHeadingEn>
      <p className="legal-p">Meefi will obtain the consent of Data Subjects as required by applicable law, formally recording the Data Subject's express consent after informing them in advance of the use that will be made of their data.</p>

      <LegalHeadingEn>6. Deletion or Modification of Expired Data</LegalHeadingEn>
      <p className="legal-p">In accordance with the Personal Data Protection Law, personal data that has expired will be deleted or modified, ensuring that information remains current and relevant.</p>

      <LegalHeadingEn>7. Rights of Information, Modification, and Deletion</LegalHeadingEn>
      <p className="legal-p">Meefi implements procedures to guarantee Data Subjects' rights, including receiving and responding to requests for access, modification, and deletion of personal data.</p>

      <LegalHeadingEn>8. Audits</LegalHeadingEn>
      <p className="legal-p">Meefi undergoes annual audits to verify compliance with personal data protection legislation, adopting measures to keep its services adequate and up to date.</p>

      <LegalHeadingEn>9. Review of New Products or Services</LegalHeadingEn>
      <p className="legal-p">Before launching a new product or service, Meefi evaluates its compliance with personal data protection legislation, ensuring it fits within the legal framework.</p>

      <LegalHeadingEn>10. Responsible Personnel</LegalHeadingEn>
      <p className="legal-p">The Data Controller is Alan Said (General Manager of Meefi), who is responsible for implementing the Policy in accordance with the Personal Data Protection Law and its Regulations.</p>
    </>
  );
}

// ---- Registry: one entry per client-routed doc (see app-legal-en.jsx) ----
const LegalDocs = {
  privacy: {
    key: "privacy", slug: "privacy-notice", esSlug: "aviso-de-privacidad",
    label: "Privacy notice", title: "Privacy Notice",
    updated: "February 14, 2024", Content: PrivacyContent,
  },
  terms: {
    key: "terms", slug: "terms-and-conditions", esSlug: "terminos-y-condiciones",
    label: "Terms and conditions", title: "Terms and Conditions",
    updated: "June 25, 2024", Content: TermsContent,
  },
  dataProtection: {
    key: "dataProtection", slug: "data-protection", esSlug: "proteccion-de-datos",
    label: "Data protection", title: "Personal Data Protection Policy",
    updated: "June 25, 2024", Content: DataProtectionContent,
  },
};
window.LegalDocs = LegalDocs;
window.LegalDocsEn = LegalDocs;
