# Terms of Service & End-User Licence Agreement (EU, DMA, UK Common Law & US)

> **DRAFT FOR LEGAL COUNSEL REVIEW:** This document is a draft prepared for review by qualified legal counsel prior to publication or commercial use. Replace all bracketed placeholders (`[PLACEHOLDER]`) with verified entity details.

**Effective Date:** `[EFFECTIVE_DATE]`  
**Version:** `1.0`

---

## 1. Contracting Parties & Scope

These Terms govern your download, installation, and use of the **Imladris** desktop application, documentation hub, and any optional commercial add-ons ("Software") provided by:

* **Provider:** `[LEGAL_ENTITY_NAME]` (`[COMPANY_REG_NUMBER]`, VAT/Tax ID: `[VAT_OR_TAX_ID]`)
* **Registered Office:** `[REGISTERED_ADDRESS]`
* **Contact:** `[SUPPORT_EMAIL]` / `[PEC_OR_LEGAL_EMAIL]`

By installing or using the Software, you agree to these Terms. If you are entering into these Terms on behalf of an organization, you warrant that you have authority to bind that organization.

---

## 2. Open-Source Licence & Optional Commercial Add-Ons

1. **Core Desktop Studio:** The Imladris Core Desktop Studio is licensed under the **Apache License, Version 2.0** (`LICENSE`). Nothing in these Terms restricts your rights under Apache-2.0 with respect to the open-source core.
2. **Third-Party Components:** Bundled third-party assets (including Papirus symbolic icons under GPLv3 and runtime dependencies) remain subject to their respective open-source licences as set out in [LICENSES_AND_DPA_REGISTER.md](LICENSES_AND_DPA_REGISTER.md).
3. **Commercial Enterprise Packs (If Purchased):** Optional commercial enterprise modules (e.g., SSO, centralized GxP policy management, proprietary LIMS/ELN connectors) are licensed separately under a valid subscription or enterprise order form.

---

## 3. Interoperability & Data Portability (EU Digital Markets Act Alignment)

Consistent with the principles of the **EU Digital Markets Act (Regulation (EU) 2022/1925)** and open scientific standards:

* You retain full ownership of all manuscripts, code, qualitative annotations, and statistical outputs created using the Software.
* Imladris imposes no proprietary lock-in: all user data is stored in open standards (`.md`, `.qmd`, `.Rmd`, `.ipynb`, `.cx2`, `.graphml`, `.csv`, `.tsv`, `.sqlite`) and may be exported or migrated freely at any time.

---

## 4. Fees, Taxes & Auto-Renewal (Applicable to Paid Offerings Only)

Where any paid edition, support plan, or Enterprise Pack is offered:

* All displayed checkout prices shall clearly state the **total price inclusive of applicable VAT, GST, or sales taxes** and any mandatory fees prior to order confirmation.
* Any recurring subscription shall clearly disclose the billing cycle, renewal amount, and a frictionless online cancellation method prior to purchase.

---

## 5. Acceptable Use & Regulatory Responsibility

You are solely responsible for:

1. Complying with applicable laws, institutional IRB/ethics approvals, **GCP / ALCOA+**, **21 CFR Part 11**, and **GDPR/UK GDPR/HIPAA** requirements when processing clinical or human-subject data.
2. Reviewing all AI-generated suggestions (`Pending Review` queue) and statistical outputs before clinical, regulatory, or scientific reliance.

---

## 6. Warranties & Statutory Consumer Rights (UK Common Law & EU)

1. **As-Is Open-Source Core:** To the maximum extent permitted by law, the open-source Software is provided "AS IS" without warranty of any kind, whether express, implied, or statutory (including implied warranties of merchantability, fitness for a particular purpose, or non-infringement).
2. **Mandatory Consumer Carve-Out (UK & EU):** If you are a consumer habitually resident in the **United Kingdom** or the **European Union**, nothing in these Terms excludes or limits your non-excludable statutory rights, including remedies for digital content not of satisfactory quality, fit for purpose, or as described under the **UK Consumer Rights Act 2015** and **EU Directive (EU) 2019/770**.

---

## 7. Limitation of Liability

1. **Unrestricted Liabilities (UK Common Law & EU Public Policy):** Nothing in these Terms limits or excludes either party's liability for:
   * death or personal injury caused by negligence;
   * fraud or fraudulent misrepresentation; or
   * any other liability that cannot lawfully be excluded or limited under applicable law.
2. **Excluded Damages:** Subject to Section 7.1, `[LEGAL_ENTITY_NAME]` shall not be liable for any indirect, consequential, special, or punitive damages, or loss of profits, revenue, data, or goodwill arising out of or in connection with the Software.
3. **Aggregate Cap:** Subject to Section 7.1, `[LEGAL_ENTITY_NAME]`'s aggregate liability arising out of or in connection with free/open-source use of the Software shall not exceed `[LIABILITY_CAP_FREE_EUR_OR_GBP]`, and for paid commercial offerings shall not exceed the fees paid by you in the twelve (12) months preceding the claim.

---

## 8. Amendments

We may update these Terms from time to time by publishing a revised version with an updated Effective Date and, for active commercial subscribers, providing at least **30 calendar days'** prior written notice of material adverse changes (with a right to terminate without penalty before the change takes effect).

---

## 9. Governing Law & Jurisdiction

These Terms and any dispute or claim (including non-contractual disputes or claims) arising out of them are governed by the laws of `[GOVERNING_LAW_JURISDICTION]`, and the courts of `[COMPETENT_COURTS]` shall have jurisdiction, **without prejudice** to mandatory consumer protection laws and the right of EU/UK consumers to bring proceedings in the courts of their country of domicile.
