import Link from "next/link";

import { PageHead } from "~/components/PageHead";
import Layout from "../home/components/Layout";

export default function PrivacyView() {
  const SubHeading = ({ children }: { children: React.ReactNode }) => (
    <h3 className="mb-4 text-2xl font-bold text-light-1000 dark:text-dark-950">
      {children}
    </h3>
  );

  const Text = ({ children }: { children: React.ReactNode }) => (
    <p className="line-height text-md mb-4 text-light-1000 dark:text-dark-900">
      {children}
    </p>
  );

  const UnorderedList = ({ children }: { children: React.ReactNode }) => (
    <ul className="list-disc pl-6">{children}</ul>
  );

  const ListItem = ({ children }: { children: React.ReactNode }) => (
    <li className="line-height text-md mb-4 text-light-1000 dark:text-dark-900">
      {children}
    </li>
  );

  const NAME = "Open Engineering";

  return (
    <Layout>
      <PageHead title="Privacy Policy | kan.bn" />
      <div className="flex flex-col items-center">
        <div className="mb-20 flex h-full w-full max-w-[800px] flex-col lg:pt-[5rem]">
          <div className="flex items-center justify-center py-36 text-4xl font-bold tracking-tight text-light-1000 dark:text-dark-1000">
            <h2>Privacy Policy</h2>
          </div>
          <p className="mb-6 text-sm text-light-1000 dark:text-dark-900">
            Last updated: 23rd Feb 2025
          </p>
          <div className="mb-6">
            <SubHeading>Introduction</SubHeading>
            <Text>
              Your privacy is important to us. It is our policy to respect your
              privacy and comply with any applicable law and regulation
              regarding any personal information we may collect about you,
              including across our website, {NAME}, and other sites we own and
              operate.
            </Text>
          </div>

          <div className="mb-6">
            <SubHeading>Information We Collect</SubHeading>
            <Text>
              Information we collect includes both information you knowingly and
              actively provide us when using or participating in any of our
              services and promotions, and any information automatically sent by
              your devices in the course of accessing our products and services.
            </Text>
          </div>

          <div className="mb-6">
            <SubHeading>Log Data</SubHeading>
            <Text>
              When you visit our website, our servers may automatically log the
              standard data provided by your web browser. It may include your
              device’s Internet Protocol (IP) address, your browser type and
              version, the pages you visit, the time and date of your visit, the
              time spent on each page, other details about your visit, and
              technical details that occur in conjunction with any errors you
              may encounter.
            </Text>
            <Text>
              Please be aware that while this information may not be personally
              identifying by itself, it may be possible to combine it with other
              data to personally identify individual persons.
            </Text>
          </div>

          <div className="mb-6">
            <SubHeading>Personal Information</SubHeading>
            <Text>
              We may ask for personal information which may include one or more
              of the following:
            </Text>
            <UnorderedList>
              <ListItem>Name</ListItem>
              <ListItem>Email</ListItem>
            </UnorderedList>
          </div>

          <div className="mb-6">
            <SubHeading>
              Legitimate Reasons for Processing Your Personal Information
            </SubHeading>
            <Text>
              We only collect and use your personal information when we have a
              legitimate reason for doing so. In which instance, we only collect
              personal information that is reasonably necessary to provide our
              services to you.
            </Text>
          </div>

          <div className="mb-6">
            <SubHeading>Collection and Use of Information</SubHeading>
            <Text>
              We may collect personal information from you when you do any of
              the following on our website:
            </Text>
            <UnorderedList>
              <ListItem>
                Sign up to receive updates from us via email or social media
                channels
              </ListItem>
              <ListItem>
                Use a mobile device or web browser to access our content
              </ListItem>
              <ListItem>
                Contact us via email, social media, or on any similar
                technologies
              </ListItem>
              <ListItem>When you mention us on social media</ListItem>
            </UnorderedList>
            <Text>
              We may collect, hold, use, and disclose information for the
              following purposes, and personal information will not be further
              processed in a manner that is incompatible with these purposes:
            </Text>
            <UnorderedList>
              <ListItem>to contact and communicate with you</ListItem>
              <ListItem>
                for analytics, market research, and business development,
                including to operate and improve our website, associated
                applications, and associated social media platforms
              </ListItem>
              <ListItem>
                to enable you to access and use our website, associated
                applications, and associated social media platforms
              </ListItem>
            </UnorderedList>
            <Text>
              Please be aware that we may combine information we collect about
              you with general information or research data we receive from
              other trusted sources.
            </Text>
          </div>

          <div className="mb-6">
            <SubHeading>Security of Your Personal Information</SubHeading>
            <Text>
              When we collect and process personal information, and while we
              retain this information, we will protect it within commercially
              acceptable means to prevent loss and theft, as well as
              unauthorized access, disclosure, copying, use, or modification.
            </Text>

            <Text>
              Although we will do our best to protect the personal information
              you provide to us, we advise that no method of electronic
              transmission or storage is 100% secure, and no one can guarantee
              absolute data security. We will comply with laws applicable to us
              in respect of any data breach.
            </Text>
            <Text>
              You are responsible for selecting any password and its overall
              security strength, ensuring the security of your own information
              within the bounds of our services.
            </Text>
          </div>

          <div className="mb-6">
            <SubHeading>How Long We Keep Your Personal Information</SubHeading>
            <Text>
              We keep your personal information only for as long as we need to.
              This time period may depend on what we are using your information
              for, in accordance with this privacy policy. If your personal
              information is no longer required, we will delete it or make it
              anonymous by removing all details that identify you.
            </Text>

            <Text>
              However, if necessary, we may retain your personal information for
              our compliance with a legal, accounting, or reporting obligation
              or for archiving purposes in the public interest, scientific, or
              historical research purposes or statistical purposes.
            </Text>
          </div>

          <div className="mb-6">
            <SubHeading>Children’s Privacy</SubHeading>
            <Text>
              We do not aim any of our products or services directly at children
              under the age of 13, and we do not knowingly collect personal
              information about children under 13.
            </Text>
          </div>

          <div className="mb-6">
            <SubHeading>
              Disclosure of Personal Information to Third Parties
            </SubHeading>
            <Text>We may disclose personal information to</Text>
            <UnorderedList>
              <ListItem>
                a parent, subsidiary, or affiliate of our company
              </ListItem>
              <ListItem>
                third party service providers for the purpose of enabling them
                to provide their services, for example, IT service providers,
                data storage, hosting and server providers, advertisers, or
                analytics platforms
              </ListItem>
              <ListItem>
                our employees, contractors, and/or related entities
              </ListItem>
              <ListItem>
                our existing or potential agents or business partners
              </ListItem>
              <ListItem>
                sponsors or promoters of any competition, sweepstakes, or
                promotion we run
              </ListItem>
              <ListItem>
                courts, tribunals, regulatory authorities, and law enforcement
                officers, as required by law, in connection with any actual or
                prospective legal proceedings, or in order to establish,
                exercise, or defend our legal rights
              </ListItem>
              <ListItem>
                third parties, including agents or sub-contractors, who assist
                us in providing information, products, services, or direct
                marketing to you third parties to collect and process data
              </ListItem>
            </UnorderedList>
          </div>

          <div className="mb-6">
            <SubHeading>
              International Transfers of Personal Information
            </SubHeading>
            <Text>
              The personal information we collect is stored and/or processed
              where we or our partners, affiliates, and third-party providers
              maintain facilities. Please be aware that the locations to which
              we store, process, or transfer your personal information may not
              have the same data protection laws as the country in which you
              initially provided the information. If we transfer your personal
              information to third parties in other countries: (i) we will
              perform those transfers in accordance with the requirements of
              applicable law; and (ii) we will protect the transferred personal
              information in accordance with this privacy policy.
            </Text>
          </div>

          <div className="mb-6">
            <SubHeading>
              Your Rights and Controlling Your Personal Information
            </SubHeading>
            <Text>
              You always retain the right to withhold personal information from
              us, with the understanding that your experience of our website may
              be affected. We will not discriminate against you for exercising
              any of your rights over your personal information. If you do
              provide us with personal information you understand that we will
              collect, hold, use and disclose it in accordance with this privacy
              policy. You retain the right to request details of any personal
              information we hold about you.
            </Text>
            <Text>
              If we receive personal information about you from a third party,
              we will protect it as set out in this privacy policy. If you are a
              third party providing personal information about somebody else,
              you represent and warrant that you have such person’s consent to
              provide the personal information to us.
            </Text>
            <Text>
              If you have previously agreed to us using your personal
              information for direct marketing purposes, you may change your
              mind at any time. We will provide you with the ability to
              unsubscribe from our email-database or opt out of communications.
              Please be aware we may need to request specific information from
              you to help us confirm your identity.
            </Text>
            <Text>
              If you believe that any information we hold about you is
              inaccurate, out of date, incomplete, irrelevant, or misleading,
              please contact us using the details provided in this privacy
              policy. We will take reasonable steps to correct any information
              found to be inaccurate, incomplete, misleading, or out of date.
            </Text>
            <Text>
              If you believe that we have breached a relevant data protection
              law and wish to make a complaint, please contact us using the
              details below and provide us with full details of the alleged
              breach. We will promptly investigate your complaint and respond to
              you, in writing, setting out the outcome of our investigation and
              the steps we will take to deal with your complaint. You also have
              the right to contact a regulatory body or data protection
              authority in relation to your complaint.
            </Text>
          </div>

          <div className="mb-6">
            <SubHeading>Limits of Our Policy</SubHeading>
            <Text>
              Our website may link to external sites that are not operated by
              us. Please be aware that we have no control over the content and
              policies of those sites, and cannot accept responsibility or
              liability for their respective privacy practices.
            </Text>
          </div>

          <div className="mb-6">
            <SubHeading>Changes to This Policy</SubHeading>
            <Text>
              At our discretion, we may change our privacy policy to reflect
              updates to our business processes, current acceptable practices,
              or legislative or regulatory changes. If we decide to change this
              privacy policy, we will post the changes here at the same link by
              which you are accessing this privacy policy.
            </Text>
            <Text>
              If required by law, we will get your permission or give you the
              opportunity to opt in to or opt out of, as applicable, any new
              uses of your personal information.
            </Text>
          </div>

          <div className="mb-6">
            <SubHeading>Contact Us</SubHeading>
            <Text>
              For any questions or concerns regarding your privacy, you may
              contact us using the following details:
            </Text>
            <Link
              className="line-height text-md mb-4 text-light-1000 dark:text-dark-900"
              href="mailto:support@kan.bn"
            >
              support@kan.bn
            </Link>
          </div>
        </div>
      </div>
    </Layout>
  );
}
