/* Legal — Privacy Policy and Terms of Service (UAE). Content in FT_LEGAL below. */
const NSL2 = window.__FT_NS;
const { Button: BtnL2, Icon: IconL2 } = NSL2;
const DL2 = window.FT_DATA;

const FT_LEGAL = {
  updated: '2 September 2026',
  privacy: [
    ['Who we are', [
      '6ft Projects Management Consultancy L.L.C. ("6ft", "we", "us") is a project management consultancy licensed by the Abu Dhabi Department of Economic Development and headquartered in Abu Dhabi, United Arab Emirates.',
      'For the purposes of UAE data protection law, 6ft acts as the Controller of the personal data described in this policy. Questions and requests should be sent to info@6ft.ae.'
    ]],
    ['Scope and applicable law', [
      'This policy explains how we collect, use, disclose and protect personal data when you visit 6ft.ae, contact us, or engage us on a project. It is issued in accordance with Federal Decree-Law No. 45 of 2021 on the Protection of Personal Data and its implementing regulations, together with any sector rules that apply to our work — including the confidentiality requirements of health authorities where we deliver healthcare facilities.',
      'Where a signed engagement agreement contains data protection terms, those terms govern the personal data processed under that engagement and this policy applies to the remainder.'
    ]],
    ['Personal data we collect', [
      'Data you give us. Name, job title, employer, email address, telephone number and the contents of your correspondence when you contact us or submit a project brief.',
      'Data arising from an engagement. Contact details and professional information for client representatives, consultants, contractors, suppliers and authority personnel involved in a project, together with correspondence, meeting records, approvals and reports.',
      'Recruitment data. CVs, qualifications, references and related information where you apply to work with us.',
      'Technical data. Standard server log information such as IP address, browser type, referring page and timestamps, generated when your browser requests pages from this website.',
      'We do not ask for sensitive personal data through this website, and we ask that you do not send it to us by email.'
    ]],
    ['Why we process personal data, and on what basis', [
      'To respond to enquiries and prepare proposals — on the basis of your consent or steps taken at your request prior to entering a contract.',
      'To deliver, administer and report on consultancy engagements — on the basis of performance of a contract with you or with the organisation you represent.',
      'To meet legal, licensing, tax and regulatory obligations, including authority submissions and record retention — on the basis of compliance with a legal obligation.',
      'To operate, secure and improve this website and our internal systems — on the basis of our legitimate interests, where those interests do not override your rights.',
      'To consider you for employment — on the basis of your consent.'
    ]],
    ['Disclosure of personal data', [
      'We disclose personal data only where it is necessary: to the client and other parties appointed on the same project (design consultants, contractors, suppliers, operators and certifying bodies); to government departments, municipalities, health authorities and other regulators where a submission or approval requires it; to our professional advisers, auditors and insurers; to IT and communications providers who process data on our instructions under written terms; and where required by law, court order or a competent authority.',
      'We do not sell personal data, and we do not use it for advertising or profiling.'
    ]],
    ['Cross-border transfers', [
      'We operate across the UAE, Saudi Arabia, Oman and Egypt, and some of our systems and service providers are located outside the UAE. Where personal data is transferred outside the UAE, we do so only where the receiving jurisdiction is recognised as providing an adequate level of protection, or under appropriate contractual safeguards, or on another basis permitted by Articles 22 and 23 of the Personal Data Protection Law.'
    ]],
    ['Retention', [
      'We keep personal data only as long as needed for the purpose it was collected for, and thereafter for the periods required by UAE commercial, tax and professional record-keeping rules. Project records are typically retained for the duration of the engagement plus the applicable limitation and defects-liability periods. Enquiry correspondence that does not lead to an engagement is deleted once it is no longer of use.'
    ]],
    ['Security', [
      'We apply organisational and technical measures appropriate to the sensitivity of the data, including access control on a need-to-know basis, a single controlled environment for project documents, encrypted transmission and storage where available, staff confidentiality obligations, and vetting of the providers who handle data on our behalf. Where a personal data breach occurs that is likely to prejudice the privacy, confidentiality or security of a data subject, we notify the UAE Data Office and affected individuals as required by law.'
    ]],
    ['Your rights', [
      'Subject to the conditions in the Personal Data Protection Law, you have the right to obtain information about how we process your data; to request access to and a copy of your data; to request correction of inaccurate or incomplete data; to request erasure of your data; to restrict or object to certain processing; to request transfer of your data to another controller in a structured format; and to withdraw consent where processing is based on consent.',
      'To exercise any of these rights, email info@6ft.ae with enough detail to identify you and the data concerned. We respond within the period prescribed by law. Certain rights are limited where we must keep records to meet a legal obligation, to establish or defend a legal claim, or to protect the confidentiality of a third party.'
    ]],
    ['Cookies and local storage', [
      'This website does not use advertising or third-party tracking cookies. It may store small items in your browser to remember interface preferences. Standard browser controls allow you to clear this data at any time. Our pages load fonts, icons and libraries from third-party content networks, which necessarily receive your IP address in order to serve those files.'
    ]],
    ['Children', [
      'This website is directed at businesses and professionals. We do not knowingly collect personal data from children. Where a project requires data relating to minors, it is processed under the client\u2019s instructions and the terms of the relevant engagement agreement.'
    ]],
    ['Complaints', [
      'If you believe we have not handled your personal data properly, contact us first at info@6ft.ae so we can investigate. You also have the right to lodge a complaint with the UAE Data Office.'
    ]],
    ['Changes to this policy', [
      'We may update this policy to reflect changes in law or in how we operate. The version published on this page is the current one, and the date below shows when it last changed.'
    ]]
  ],
  terms: [
    ['These terms', [
      'These Terms of Service govern your use of 6ft.ae. By using this website you accept them. If you do not accept them, please do not use the site.',
      'They do not govern consultancy services. Services are provided only under a separate written engagement agreement, and where these terms conflict with a signed engagement agreement, the engagement agreement prevails.'
    ]],
    ['About us', [
      '6ft Projects Management Consultancy L.L.C. is a limited liability company licensed by the Abu Dhabi Department of Economic Development to provide project management services, construction projects management consultancy, consultancy project development, feasibility studies engineering consultancy, procurement consulting, claims analysis engineering consultancy, interior design engineering consultancy and green buildings consultancy. Our registered office is in Abu Dhabi, United Arab Emirates.'
    ]],
    ['Information on this website is not advice', [
      'The content of this website is published for general information about our capabilities. It is not professional, technical, engineering, legal or commercial advice, and it must not be relied on in place of a proper appointment. No statement on this website constitutes an offer, a commitment, a warranty of outcome, or a design or engineering recommendation for any specific project.',
      'Nothing on this website creates a client relationship. A relationship arises only when 6ft and the client have signed an engagement agreement or an equivalent written appointment.'
    ]],
    ['Proposals and appointments', [
      'Proposals, fee indications and programme estimates we issue are valid only for the period stated in them, are based on the information available at the time, and are subject to a signed engagement agreement. Scope, deliverables, fee basis, programme, liability, insurance and dispute resolution are set out in that agreement.'
    ]],
    ['Project material, imagery and references', [
      'Renderings, visualisations, layouts and design packages shown on this website illustrate design intent at a point in time. They are not as-built records, and they may differ from the completed facility. Project descriptions summarise our role and are not a representation about any other party\u2019s performance.',
      'Client names and marks appear with permission, or as a factual record of appointments held, and are the property of their respective owners. Their appearance does not imply that those organisations endorse 6ft or its services. Contract values and confidential project information are not published.',
      'If you own material shown here and wish it removed or corrected, email info@6ft.ae and we will address it promptly.'
    ]],
    ['Intellectual property', [
      'This website, its text, layout, graphics, photography, drawings and the 6ft name and logo are owned by 6ft or licensed to it, and are protected under Federal Decree-Law No. 38 of 2021 concerning Copyright and Neighbouring Rights and applicable trade mark law.',
      'You may view, download and print pages for your own information or for evaluating 6ft as a consultant. You may not reproduce, republish, adapt, distribute or use any part of this website commercially, or use our name, marks or project material in your own materials or submissions, without our prior written consent.',
      'Intellectual property in project deliverables is dealt with in the relevant engagement agreement.'
    ]],
    ['Confidentiality', [
      'Do not send confidential or commercially sensitive information through this website or by unsecured email. Material sent to us before an engagement agreement or a non-disclosure agreement is in place is received without any obligation of confidence, except where the law imposes one. Once we are appointed, confidentiality is governed by the engagement agreement.'
    ]],
    ['Acceptable use', [
      'You agree not to use this website unlawfully; not to attempt to gain unauthorised access to it or to any system connected to it; not to introduce malicious code; not to scrape, mirror or systematically extract its content; and not to use it in any way that could damage, disable or impair its operation. Misuse of an information network is an offence under Federal Decree-Law No. 34 of 2021 on Combatting Rumours and Cybercrimes.'
    ]],
    ['Third-party links', [
      'Where we link to third-party sites, we do so for convenience. We do not control them, we do not endorse their content, and we accept no responsibility for them or for any loss arising from your use of them.'
    ]],
    ['Availability and changes', [
      'We aim to keep this website available but do not guarantee uninterrupted access. We may change, suspend or withdraw any part of it, and may update these terms, at any time. The version published here is the current one.'
    ]],
    ['Disclaimer and limitation of liability', [
      'This website is provided on an "as is" and "as available" basis. To the fullest extent permitted by UAE law, we exclude all warranties, express or implied, as to its accuracy, completeness, currency or fitness for a particular purpose.',
      'To the fullest extent permitted by UAE law, 6ft is not liable for any indirect, incidental, special or consequential loss, or for loss of profit, revenue, business, opportunity, data or goodwill, arising from the use of this website or reliance on its content. Nothing in these terms excludes or limits liability that cannot lawfully be excluded or limited, including liability for fraud or for death or personal injury caused by negligence.',
      'Liability arising from consultancy services is governed exclusively by the applicable engagement agreement and the professional indemnity arrangements referred to in it.'
    ]],
    ['Indemnity', [
      'You agree to indemnify 6ft against any claim, loss, liability or cost arising from your breach of these terms or your unlawful use of this website.'
    ]],
    ['Force majeure', [
      'We are not liable for any failure or delay in performance caused by events beyond our reasonable control, including acts of government or authority, restrictions on movement or supply, industrial action, utility or network failure, natural events, epidemic or armed conflict.'
    ]],
    ['Governing law and jurisdiction', [
      'These terms and any dispute arising from them or from your use of this website are governed by the federal laws of the United Arab Emirates and the laws of the Emirate of Abu Dhabi. The courts of Abu Dhabi have exclusive jurisdiction, save that either party may refer a dispute to arbitration where a signed agreement between us provides for it.'
    ]],
    ['Contact', [
      'Questions about these terms: info@6ft.ae, 6ft Projects Management Consultancy L.L.C., Abu Dhabi, United Arab Emirates.'
    ]]
  ]
};

function LegalPage({ eyebrow, title, lede, sections, go }) {
  return (
    <div>
      <PageHero eyebrow={eyebrow} title={title} lede={lede} />
      <Section tone="page">
        <div style={{ display: 'grid', gridTemplateColumns: 'minmax(0,220px) minmax(0,760px)', gap: 64, alignItems: 'start' }} className="ft-2col">
          <div style={{ position: 'sticky', top: 104 }}>
            <div style={{ fontFamily: 'var(--font-label)', fontWeight: 700, fontSize: 11, letterSpacing: 'var(--tracking-widest)', textTransform: 'uppercase', color: 'var(--text-muted)', marginBottom: 14 }}>Contents</div>
            <ol style={{ margin: 0, padding: 0, listStyle: 'none', display: 'grid', gap: 9, counterReset: 'legal' }}>
              {sections.map(([h], i) => (
                <li key={h} style={{ fontSize: 14, lineHeight: 1.45, color: 'var(--text-secondary)', display: 'flex', gap: 10 }}>
                  <span style={{ fontFamily: 'var(--font-heading)', fontWeight: 900, fontSize: 11, color: 'var(--brand-yellow)', marginTop: 3, minWidth: 18 }}>{String(i + 1).padStart(2, '0')}</span>{h}
                </li>
              ))}
            </ol>
            <div style={{ marginTop: 28, paddingTop: 20, borderTop: '1px solid var(--border-subtle)', fontSize: 13, color: 'var(--text-muted)', lineHeight: 1.6 }}>Last updated<br />{FT_LEGAL.updated}</div>
          </div>
          <div style={{ display: 'grid', gap: 40 }}>
            {sections.map(([h, paras], i) => (
              <Reveal key={h} delay={Math.min(i, 4) * 60}>
                <section>
                  <div style={{ display: 'flex', gap: 14, alignItems: 'baseline' }}>
                    <span style={{ fontFamily: 'var(--font-heading)', fontWeight: 900, fontSize: 13, color: 'var(--brand-yellow)', letterSpacing: '.06em' }}>{String(i + 1).padStart(2, '0')}</span>
                    <h2 style={{ fontSize: 'clamp(19px,1.7vw,24px)', fontWeight: 700, letterSpacing: 'var(--tracking-tight)', margin: 0 }}>{h}</h2>
                  </div>
                  <div style={{ display: 'grid', gap: 14, marginTop: 14, paddingLeft: 27 }}>
                    {paras.map((t, k) => <p key={k} style={{ fontSize: 16, lineHeight: 1.75, color: 'var(--text-secondary)', margin: 0, textWrap: 'pretty' }}>{t}</p>)}
                  </div>
                </section>
              </Reveal>
            ))}
          </div>
        </div>
      </Section>
      <Section tone="card" pad={80}>
        <div style={{ display: 'flex', flexWrap: 'wrap', alignItems: 'center', justifyContent: 'space-between', gap: 24 }}>
          <div style={{ fontSize: 16, color: 'var(--text-secondary)', maxWidth: 620 }}>Questions about this document, or a request concerning your personal data? Email <a href="mailto:info@6ft.ae">info@6ft.ae</a>.</div>
          <div style={{ display: 'flex', gap: 12, flexWrap: 'wrap' }}>
            <BtnL2 variant="outline" onClick={() => go(eyebrow === 'Legal — Privacy' ? 'terms' : 'privacy')}>{eyebrow === 'Legal — Privacy' ? 'Terms of Service' : 'Privacy Policy'}</BtnL2>
            <BtnL2 variant="primary" iconAfter="arrow-right" onClick={() => go('contact')}>Contact us</BtnL2>
          </div>
        </div>
      </Section>
    </div>
  );
}

function PrivacyScreen({ go }) {
  return <LegalPage go={go} eyebrow="Legal — Privacy" title="Privacy Policy"
    lede="How 6ft Projects Management Consultancy collects, uses and protects personal data, in accordance with UAE Federal Decree-Law No. 45 of 2021 on the Protection of Personal Data."
    sections={FT_LEGAL.privacy} />;
}

function TermsScreen({ go }) {
  return <LegalPage go={go} eyebrow="Legal — Terms" title="Terms of Service"
    lede="The terms on which this website is made available, and how they relate to our consultancy engagements under UAE law."
    sections={FT_LEGAL.terms} />;
}

Object.assign(window, { PrivacyScreen, TermsScreen, FT_LEGAL });
