// Privacy Policy & Terms of Service pages

function LegalShell({ title, updated, children }) {
  return (
    <div className="page-shell">
      <section className="block">
        <div className="wrap-narrow">
          <div className="eyebrow">Legal</div>
          <h2 className="section-title" style={{marginTop:18, marginBottom:20}}>{title}</h2>
          <div className="legal-meta">{updated}</div>
          <div className="legal-body" style={{marginTop: 40}}>
            {children}
          </div>
        </div>
      </section>
    </div>
  );
}

function PrivacyPage({ t, lang }) {
  if (lang === "zh") {
    return (
      <LegalShell title={t.legal.privacy_title} updated={t.legal.privacy_updated}>
        <p>FANTULA LLC（以下简称"我们"、"本公司"或"FANTULA"）尊重并致力于保护客户、合作伙伴以及网站访问者的隐私。本《隐私政策》说明我们在 fantula.net 网站及关联服务（统称"服务"）中收集、使用、披露和保护信息的方式。</p>
        <p>本公司是一家在美国怀俄明州注册成立的有限责任公司，注册号 2026-001975679，注册地址：30 N Gould St Ste R, Sheridan, WY 82801, USA。</p>

        <h3><span className="num">1</span>适用范围</h3>
        <p>本政策适用于通过本网站、电子邮件以及商务往来中与我们建立联系的企业客户、其授权代表及网站访问者。我们仅面向企业客户开展业务，不向自然人或消费者直接提供服务。</p>

        <h3><span className="num">2</span>我们收集的信息</h3>
        <ul>
          <li><strong>您主动提供的信息：</strong>姓名、企业邮箱、电话、所在公司、职位、咨询内容等通过表单、邮件或合同流程提供的信息。</li>
          <li><strong>项目交付相关信息：</strong>在合同范围内的技术配置、架构文档、计费及账户信息。</li>
          <li><strong>自动收集的信息：</strong>访问日志（IP 地址、浏览器类型、访问时间）、必要的 Cookie 用于会话维护与基本统计。</li>
        </ul>

        <h3><span className="num">3</span>信息的使用</h3>
        <ul>
          <li>响应您的咨询、提供报价及交付合同义务；</li>
          <li>客户关系管理、发票开具及法定记录保存；</li>
          <li>网站及服务的安全保障、运营改善；</li>
          <li>履行适用的法律、监管或审计要求。</li>
        </ul>

        <h3><span className="num">4</span>信息的共享</h3>
        <p>我们不向第三方出售您的个人信息。我们仅在以下情况共享信息：（a）经您明确授权；（b）为履行合同而向必要的云平台供应商或专业服务商共享，并签订相应保密协议；（c）依法配合监管机构、司法机关的合法要求。</p>

        <h3><span className="num">5</span>数据存储与跨境传输</h3>
        <p>由于客户工作负载分布于全球，您的信息可能在美国及其他司法管辖区被存储和处理。我们采取符合行业标准的技术与组织措施保护信息安全，包括传输加密、访问控制和审计日志。</p>

        <h3><span className="num">6</span>您的权利</h3>
        <p>在适用法律范围内，您有权访问、更正、删除其个人信息，或限制/反对特定处理活动。如需行使上述权利，请发送邮件至 contact@fantula.net，我们将在合理时间内回复。</p>

        <h3><span className="num">7</span>数据保留期</h3>
        <p>我们仅在实现本政策所述目的所必需的期间内保留相关信息，并遵守适用的法律、税务及合同保留要求。</p>

        <h3><span className="num">8</span>儿童隐私</h3>
        <p>我们的服务仅面向企业客户，不面向 16 岁以下的个人。我们不会有意收集任何未成年人的个人信息。</p>

        <h3><span className="num">9</span>政策更新</h3>
        <p>本政策可能根据业务发展或法律变化进行更新。更新版本将于本页面公布，必要时我们将通过邮件通知活跃客户。</p>

        <h3><span className="num">10</span>联系方式</h3>
        <p>如对本政策有任何疑问或意见，请联系：<br/>
          邮箱：contact@fantula.net<br/>
          地址：FANTULA LLC, 30 N Gould St Ste R, Sheridan, WY 82801, USA</p>
      </LegalShell>
    );
  }

  return (
    <LegalShell title={t.legal.privacy_title} updated={t.legal.privacy_updated}>
      <p>FANTULA LLC ("FANTULA", "we", "us", or "our") respects the privacy of our clients, partners, and website visitors. This Privacy Policy describes how we collect, use, disclose, and safeguard information in connection with fantula.net and the related professional services (the "Services").</p>
      <p>FANTULA LLC is a limited liability company formed in the State of Wyoming, USA, registration number 2026-001975679, with a registered address at 30 N Gould St Ste R, Sheridan, WY 82801, USA.</p>

      <h3><span className="num">1</span>Scope</h3>
      <p>This Policy applies to business customers, their authorized representatives, and visitors who interact with us through our website, email correspondence, or engagement processes. We provide Services exclusively to business entities; we do not market or contract directly with consumers.</p>

      <h3><span className="num">2</span>Information We Collect</h3>
      <ul>
        <li><strong>Information you provide:</strong> name, business email, phone, company, role, and the content of inquiries or proposals submitted via forms, email, or contract negotiation.</li>
        <li><strong>Engagement data:</strong> technical configurations, architecture documents, billing and account information, in each case within the scope of a signed agreement.</li>
        <li><strong>Automatically collected:</strong> access logs (IP address, browser type, timestamps) and essential cookies for session management and basic analytics.</li>
      </ul>

      <h3><span className="num">3</span>How We Use Information</h3>
      <ul>
        <li>To respond to inquiries, prepare proposals, and fulfill contractual obligations;</li>
        <li>For customer relationship management, invoicing, and statutory record-keeping;</li>
        <li>To secure and improve our website and Services;</li>
        <li>To comply with applicable legal, regulatory, or audit obligations.</li>
      </ul>

      <h3><span className="num">4</span>Disclosure of Information</h3>
      <p>We do not sell your personal information. We share information only: (a) with your express authorization; (b) with cloud platform vendors or professional service providers required to deliver the engagement, under appropriate confidentiality terms; or (c) when required to comply with a lawful request from a regulatory or judicial authority.</p>

      <h3><span className="num">5</span>Data Storage & Cross-border Transfers</h3>
      <p>Because client workloads operate globally, your information may be stored or processed in the United States and other jurisdictions. We apply industry-standard technical and organizational controls, including transport encryption, access controls, and audit logging.</p>

      <h3><span className="num">6</span>Your Rights</h3>
      <p>Subject to applicable law, you may request access to, correction or deletion of your personal information, or restrict / object to certain processing. To exercise these rights, contact contact@fantula.net and we will respond within a reasonable timeframe.</p>

      <h3><span className="num">7</span>Retention</h3>
      <p>We retain information only for as long as necessary for the purposes described in this Policy and in accordance with applicable legal, tax, and contractual retention requirements.</p>

      <h3><span className="num">8</span>Children's Privacy</h3>
      <p>Our Services are directed solely to businesses and are not intended for individuals under the age of 16. We do not knowingly collect personal information from minors.</p>

      <h3><span className="num">9</span>Updates</h3>
      <p>We may update this Policy from time to time. The current version will be posted on this page; active clients will be notified by email of material changes where appropriate.</p>

      <h3><span className="num">10</span>Contact</h3>
      <p>For questions or requests regarding this Policy:<br/>
        Email: contact@fantula.net<br/>
        Mail: FANTULA LLC, 30 N Gould St Ste R, Sheridan, WY 82801, USA</p>
    </LegalShell>
  );
}

function TermsPage({ t, lang }) {
  if (lang === "zh") {
    return (
      <LegalShell title={t.legal.terms_title} updated={t.legal.terms_updated}>
        <p>本《服务条款》（以下简称"本条款"）由 FANTULA LLC（以下简称"我们"、"本公司"或"FANTULA"，一家在美国怀俄明州注册成立的有限责任公司）与访问 fantula.net 网站或使用本公司提供的咨询、云基础设施部署、企业 SaaS 采购代理等服务的企业客户（以下简称"客户"或"您"）之间订立。</p>

        <h3><span className="num">1</span>服务性质</h3>
        <p>本公司是一家面向企业的 B2B 技术咨询机构。所有正式商业服务均通过单独签署的主服务协议（MSA）或工作说明书（SOW）约定具体条款、范围、费用与交付物。本网站及本条款不构成对任何具体服务的报价或合同要约。</p>

        <h3><span className="num">2</span>资格</h3>
        <p>本服务及本网站仅面向企业及其授权代表使用。您声明并保证：（a）您具有以企业名义订立合同的法律资格；（b）您不会将服务用于个人或家庭用途。</p>

        <h3><span className="num">3</span>知识产权</h3>
        <p>本网站内容、商标、文案、视觉资产、源代码均归 FANTULA LLC 或其授权方所有，受适用知识产权法律保护。未经事先书面许可，禁止任何形式的复制、传播、再发布或商业性使用。在客户项目中产出的可交付物的知识产权归属，以双方签署的正式协议为准。</p>

        <h3><span className="num">4</span>第三方平台</h3>
        <p>本公司服务可能涉及 AWS、Microsoft Azure、Google Cloud 及其他第三方平台。客户使用这些平台须遵守相应供应商的条款与定价。本公司就第三方平台的可用性、性能或费用变化不承担直接责任。</p>

        <h3><span className="num">5</span>费用与付款</h3>
        <p>具体费用、币种、付款条款均以双方签署的 MSA 或 SOW 为准。除非另有书面约定，所有费用均以美元（USD）计价，且不含适用的税费或代扣代缴款项。</p>

        <h3><span className="num">6</span>保密</h3>
        <p>双方应对在合作过程中获取的任何标识为保密或按其性质应被视为保密的信息予以严格保密。保密义务的具体范围、期限及例外情形以双方签署的保密协议（NDA）或主合同条款为准。</p>

        <h3><span className="num">7</span>免责声明</h3>
        <p>在适用法律允许的最大范围内，本网站内容按"现状"提供，不附带任何明示或默示的保证。本公司对网站内容的准确性、完整性或时效性不作任何陈述或保证。</p>

        <h3><span className="num">8</span>责任限制</h3>
        <p>在适用法律允许的最大范围内，本公司对任何间接、附带、特殊或后果性损害不承担责任。本公司基于实际签署合同的责任上限以该合同条款明示约定为准。</p>

        <h3><span className="num">9</span>合规与出口管制</h3>
        <p>客户在使用本公司服务时应遵守适用的美国与所在司法辖区的法律法规，包括但不限于出口管制、制裁、反贿赂、反洗钱及数据保护等法律。</p>

        <h3><span className="num">10</span>适用法律与争议解决</h3>
        <p>本条款受美国怀俄明州法律管辖（不适用其法律冲突规则）。因本条款产生或与之相关的任何争议，应首先通过友好协商解决；协商不成的，提交美国怀俄明州有管辖权的法院专属管辖。</p>

        <h3><span className="num">11</span>条款变更</h3>
        <p>本公司有权随时更新本条款，更新内容自发布于本页面之时起生效。客户在更新后继续访问本网站即视为接受新条款。</p>

        <h3><span className="num">12</span>联系</h3>
        <p>关于本条款的问询，请发送邮件至 contact@fantula.net，或寄送至：FANTULA LLC, 30 N Gould St Ste R, Sheridan, WY 82801, USA。</p>
      </LegalShell>
    );
  }

  return (
    <LegalShell title={t.legal.terms_title} updated={t.legal.terms_updated}>
      <p>These Terms of Service ("Terms") govern access to fantula.net and the use of consulting, cloud infrastructure deployment, and enterprise SaaS procurement services offered by FANTULA LLC, a limited liability company formed in the State of Wyoming, USA ("FANTULA", "we", "us"). They apply to the business clients and their authorized representatives that engage with us ("Client", "you").</p>

      <h3><span className="num">1</span>Nature of Services</h3>
      <p>FANTULA is a B2B technology consultancy. All commercial engagements are governed by separately executed Master Services Agreements ("MSA") and Statements of Work ("SOW") that set out the specific scope, fees, and deliverables. Neither this website nor these Terms constitutes an offer to provide any specific service.</p>

      <h3><span className="num">2</span>Eligibility</h3>
      <p>The Services and this website are intended exclusively for business entities and their authorized representatives. You represent and warrant that (a) you have legal capacity to enter into agreements on behalf of an entity, and (b) you will not use the Services for personal, family, or household purposes.</p>

      <h3><span className="num">3</span>Intellectual Property</h3>
      <p>All content on this website — including text, marks, visual assets, and source code — is owned by FANTULA LLC or its licensors and protected under applicable intellectual property laws. No reproduction, distribution, republication, or commercial use is permitted without prior written consent. Ownership of deliverables produced under engagement shall be governed by the executed agreement.</p>

      <h3><span className="num">4</span>Third-party Platforms</h3>
      <p>Our Services may involve AWS, Microsoft Azure, Google Cloud, and other third-party platforms. Your use of those platforms is governed by the applicable vendor's own terms and pricing. We are not directly responsible for third-party platform availability, performance, or fee changes.</p>

      <h3><span className="num">5</span>Fees & Payment</h3>
      <p>Fees, currency, and payment terms are set forth in the executed MSA or SOW. Unless agreed otherwise in writing, all fees are denominated in United States Dollars (USD) and exclusive of applicable taxes and withholdings.</p>

      <h3><span className="num">6</span>Confidentiality</h3>
      <p>Each party shall protect information disclosed by the other party that is marked confidential or that should reasonably be considered confidential. The scope, duration, and exceptions are governed by the executed NDA or master agreement.</p>

      <h3><span className="num">7</span>Disclaimer</h3>
      <p>To the maximum extent permitted by law, website content is provided "AS IS" without warranties of any kind, express or implied. We make no representations regarding the accuracy, completeness, or timeliness of content.</p>

      <h3><span className="num">8</span>Limitation of Liability</h3>
      <p>To the maximum extent permitted by law, FANTULA shall not be liable for any indirect, incidental, special, or consequential damages. Our aggregate liability under any executed agreement shall be governed by the limitations expressly set out in that agreement.</p>

      <h3><span className="num">9</span>Compliance & Export Controls</h3>
      <p>You shall comply with all applicable U.S. and foreign laws and regulations, including those relating to export controls, sanctions, anti-bribery, anti-money laundering, and data protection.</p>

      <h3><span className="num">10</span>Governing Law & Disputes</h3>
      <p>These Terms are governed by the laws of the State of Wyoming, USA, without regard to its conflicts-of-law rules. Disputes shall first be resolved through good-faith negotiation; failing resolution, they shall be submitted to the exclusive jurisdiction of the competent courts of Wyoming, USA.</p>

      <h3><span className="num">11</span>Changes</h3>
      <p>We may update these Terms from time to time. Updates take effect upon publication on this page. Continued use of the website constitutes acceptance.</p>

      <h3><span className="num">12</span>Contact</h3>
      <p>For questions regarding these Terms: contact@fantula.net or FANTULA LLC, 30 N Gould St Ste R, Sheridan, WY 82801, USA.</p>
    </LegalShell>
  );
}

Object.assign(window, { PrivacyPage, TermsPage });
