// legal.jsx - privacy policy + terms of service

function PrivacyPage() {
  return (
    <div className="page">
      <section style={{ padding: "80px 0 40px" }}>
        <div className="container" style={{ maxWidth: 800 }}>
          <Label>LEGAL · LAST UPDATED APRIL 2026</Label>
          <h1 className="serif" style={{ fontSize: "clamp(42px, 5vw, 72px)", margin: "20px 0 0", lineHeight: 1.05, letterSpacing: "-0.02em" }}>
            Privacy Policy
          </h1>
        </div>
      </section>
      <section style={{ padding: "20px 0 80px" }}>
        <div className="container" style={{ maxWidth: 800, display: "flex", flexDirection: "column", gap: 36 }}>
          <LegalSection title="1. Who we are">
            Secure Sleuths is a cybersecurity services company based in Nashik, Maharashtra, India.
            This policy explains how we collect, use, and protect information when you visit our website
            or use our services. Contact: prathamesh@securesleuths.in
          </LegalSection>

          <LegalSection title="2. Information we collect">
            <strong>Website visits:</strong> We do not use cookies or third-party analytics trackers on this website.
            We do not collect personal data automatically. Note that this site loads web fonts from Google
            Fonts (fonts.googleapis.com and fonts.gstatic.com); as a technical consequence your browser's IP
            address and user-agent are visible to Google when those font files are requested.<br/><br/>
            <strong>Contact &amp; download forms:</strong> When you submit a contact, discovery-call, early-access,
            or community-download request, we collect your name, email, company, and any information you provide.
            These forms are processed via Google Forms, so the data you enter is transmitted to and stored by
            Google on our behalf, in addition to being used by us to respond to your inquiry.<br/><br/>
            <strong>Coverage check:</strong> The self-assessment tool runs entirely in your browser. No answers
            are transmitted to our servers or any third party.
          </LegalSection>

          <LegalSection title="3. How we use your information">
            Information submitted through contact forms is used to respond to your inquiry, schedule calls,
            and provide requested services. We do not sell, rent, or share your personal information with
            third parties for marketing purposes.
          </LegalSection>

          <LegalSection title="4. Service engagements">
            For managed SOC and security service clients, data handling is governed by individual service
            agreements. All client security data remains on client infrastructure. We do not store client
            alert data, logs, or security findings on our systems unless explicitly agreed upon.
          </LegalSection>

          <LegalSection title="5. AI processing">
            Our AI SOC Platform processes alerts on client infrastructure. When AI models are used for
            triage, alert data is anonymized before processing - identifiable information (hostnames, IPs,
            usernames) is replaced with deterministic tokens and restored after analysis. No client data
            is used for model training.
          </LegalSection>

          <LegalSection title="6. Data retention">
            Contact form submissions are retained for 12 months. Client engagement data is retained per
            individual service agreements. You may request deletion of your data at any time by emailing
            prathamesh@securesleuths.in.
          </LegalSection>

          <LegalSection title="7. Your rights">
            You have the right to access, correct, or delete personal information we hold about you.
            To exercise these rights, contact prathamesh@securesleuths.in.
          </LegalSection>

          <LegalSection title="8. Security">
            We implement appropriate technical and organizational measures to protect personal data.
            Communication with our team is available via encrypted channels upon request.
          </LegalSection>

          <LegalSection title="9. Changes">
            We may update this policy from time to time. Changes will be posted on this page with an
            updated date.
          </LegalSection>

          <LegalSection title="10. Contact">
            For privacy-related questions:<br/>
            Email: prathamesh@securesleuths.in<br/>
            Phone: +91-7559249171<br/>
            Location: Nashik, Maharashtra, India
          </LegalSection>
        </div>
      </section>
    </div>
  );
}

function TermsPage() {
  return (
    <div className="page">
      <section style={{ padding: "80px 0 40px" }}>
        <div className="container" style={{ maxWidth: 800 }}>
          <Label>LEGAL · LAST UPDATED APRIL 2026</Label>
          <h1 className="serif" style={{ fontSize: "clamp(42px, 5vw, 72px)", margin: "20px 0 0", lineHeight: 1.05, letterSpacing: "-0.02em" }}>
            Terms of Service
          </h1>
        </div>
      </section>
      <section style={{ padding: "20px 0 80px" }}>
        <div className="container" style={{ maxWidth: 800, display: "flex", flexDirection: "column", gap: 36 }}>
          <LegalSection title="1. Agreement">
            By accessing this website, you agree to these terms. If you do not agree, please do not use
            the site. These terms apply to the Secure Sleuths website only - service engagements are
            governed by separate agreements.
          </LegalSection>

          <LegalSection title="2. Services">
            Secure Sleuths provides cybersecurity services including SOC setup, AI-powered monitoring,
            penetration testing, ISO 27001 compliance, smart contract auditing, DevSecOps consulting,
            and SOC training. Service scope, deliverables, and pricing are defined in individual
            engagement agreements.
          </LegalSection>

          <LegalSection title="3. Website use">
            This website is provided for informational purposes. You may not use the site for any
            unlawful purpose, attempt to gain unauthorized access to our systems, or use automated
            tools to scrape content without permission.
          </LegalSection>

          <LegalSection title="4. Intellectual property">
            All content on this website - including text, design, code, and logos - is the property
            of Secure Sleuths and is protected by applicable intellectual property laws. The AI SOC
            Platform and associated tools are proprietary software.
          </LegalSection>

          <LegalSection title="5. Disclaimers">
            This website is provided "as is." While we strive for accuracy, we make no warranties
            about the completeness or reliability of information on this site. Case studies and metrics
            shown are from real engagements but individual results may vary.
          </LegalSection>

          <LegalSection title="6. Limitation of liability">
            Secure Sleuths is not liable for any indirect, incidental, or consequential damages
            arising from use of this website. Service liability is governed by individual engagement
            agreements.
          </LegalSection>

          <LegalSection title="7. Governing law">
            These terms are governed by the laws of India. Any disputes shall be subject to the
            exclusive jurisdiction of courts in Nashik, Maharashtra.
          </LegalSection>

          <LegalSection title="8. Changes">
            We reserve the right to modify these terms at any time. Continued use of the site after
            changes constitutes acceptance.
          </LegalSection>

          <LegalSection title="9. Contact">
            Questions about these terms:<br/>
            Email: prathamesh@securesleuths.in<br/>
            Phone: +91-7559249171
          </LegalSection>
        </div>
      </section>
    </div>
  );
}

function LegalSection({ title, children }) {
  return (
    <div>
      <h2 className="serif" style={{ fontSize: 24, margin: "0 0 12px", letterSpacing: "-0.01em" }}>{title}</h2>
      <p style={{ margin: 0, color: "var(--fg-mute)", fontSize: 15, lineHeight: 1.75 }}>{children}</p>
    </div>
  );
}

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