import type { Metadata } from 'next';
import { LegalPageHeader } from '@/components/legal/legal-page-header';

export const metadata: Metadata = { title: 'Terms of Use' };

export default function TermsOfUsePage() {
  return (
    <section className="py-12">
      <div className="container-page max-w-4xl">
        <LegalPageHeader
          title="Marketplace Terms and Seller Disclosure"
          intro="These Terms govern use of CeylonHandicrafts.lk and explain whether an independent vendor or Triora Living is responsible for each transaction."
          effectiveDate="13 September 2026"
        />

        <div className="legal-prose mt-8">
          <h2>Who operates the platform</h2>
          <p>
            CeylonHandicrafts.lk (the &ldquo;Platform&rdquo;, &ldquo;we&rdquo;, &ldquo;us&rdquo; or &ldquo;our&rdquo;) is
            operated by Triora Living (Private) Limited, company number PV00373323, of 32, Siripa Road, Colombo 05,
            Sri Lanka. The Platform helps customers discover Sri Lankan handicrafts and connect with artisans and
            vendors. We also act as seller for products specifically identified as sold by CeylonHandicrafts.lk.
          </p>

          <h2>Acceptance of these Terms</h2>
          <p>
            By using the Platform, creating an account, sending an enquiry or confirming a Managed Sale Product
            order, you agree to these Terms and the policies linked from them. If you use the Platform for a
            business or organisation, you confirm that you are authorised to bind it. You must be at least 18 years
            old to enter a binding transaction or register as a vendor.
          </p>

          <h2>Two seller types</h2>
          <p>
            Every product page must identify the seller. Customers should not make payment when the seller label is
            missing or unclear.
          </p>
          <table>
            <thead>
              <tr>
                <th>Product label</th>
                <th>Seller of record</th>
                <th>Responsibility</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>&ldquo;Listed by [Vendor Name]&rdquo; or &ldquo;Contact the vendor directly&rdquo;</td>
                <td>The named independent vendor</td>
                <td>
                  The vendor agrees the sale, receives payment and handles the product, delivery, invoice, warranty,
                  returns, refunds and after-sales service.
                </td>
              </tr>
              <tr>
                <td>&ldquo;Sold by CeylonHandicrafts.lk&rdquo;</td>
                <td>Triora Living (Private) Limited</td>
                <td>
                  Triora Living confirms the order, receives the agreed payment and handles delivery, returns,
                  refunds, warranties and customer remedies as seller.
                </td>
              </tr>
            </tbody>
          </table>
          <p>
            Nothing in these Terms removes any responsibility imposed on the Platform, a vendor or Triora Living by
            applicable law.
          </p>

          <h2>Listings and product information</h2>
          <ul>
            <li>
              Listings must accurately state the seller, price, currency, materials, dimensions, origin, availability,
              production lead time, delivery or collection terms, care information, return and warranty terms and
              material safety warnings.
            </li>
            <li>
              Handmade products may have reasonable variations in colour, grain, weave, shape or finish. A disclosed
              minor variation is not automatically a defect, but a material difference from the agreed description
              may entitle the customer to a remedy.
            </li>
            <li>
              We may review, edit for clarity, request evidence, refuse, suspend or remove a listing. Moderation does
              not amount to an endorsement, certification or guarantee of the vendor or product.
            </li>
            <li>
              Prices and mandatory charges must be clear before the customer agrees to buy. A seller must not
              advertise one price and request another unless the customer requested a documented change or a
              clearly disclosed variable cost applies.
            </li>
          </ul>

          <h2>Enquiries and formation of a contract</h2>
          <p>
            Sending an enquiry does not itself create an order. For a Vendor-Listed Product, the contract is formed
            only when the customer and vendor agree the item, total price, payment method, delivery or collection,
            lead time and any special terms. For a Managed Sale Product, the contract is formed when Triora Living
            issues an order confirmation or otherwise clearly accepts the order. A proposed order may be declined
            where stock, pricing, safety, legality, location or other material information is incorrect.
          </p>

          <h2>Payments, delivery and returns</h2>
          <p>
            The Payment Delivery Returns and Cancellations Policy forms part of these Terms. CeylonHandicrafts.lk
            currently has no online card-payment gateway. Vendor-Listed Product payments are agreed and paid
            directly to the named vendor. Managed Sale Product payments use only the non-card method confirmed by
            Triora Living in an official order message or invoice.
          </p>

          <h2>Platform role for vendor-listed products</h2>
          <p>
            For Vendor-Listed Products, the Platform provides listing, discovery, communication and
            complaint-facilitation services. Triora Living is not the seller, manufacturer, carrier or payment
            recipient merely because the product appears on the Platform. The named vendor remains responsible for
            performing its sale and providing any remedy or refund for money it received.
          </p>
          <p>
            We may receive a complaint, request a vendor response, preserve relevant Platform records, restrict a
            listing or account, warn users and cooperate with a competent authority. These actions do not transfer
            the vendor&apos;s seller obligations to Triora Living.
          </p>

          <h2>Customer responsibilities</h2>
          <ul>
            <li>
              Review the seller identity, exact product, total price, lead time, delivery terms, return policy and
              warranty before agreeing to buy.
            </li>
            <li>Verify changed payment details through a trusted contact method and use a traceable payment method.</li>
            <li>
              Keep the listing, messages, order confirmation, invoice or receipt, payment record and delivery
              evidence.
            </li>
            <li>Provide accurate delivery and contact information and inspect the product promptly after receipt.</li>
          </ul>

          <h2>Accounts, acceptable use and user content</h2>
          <ul>
            <li>
              Provide accurate account information, protect login credentials and notify us promptly of suspected
              unauthorised access.
            </li>
            <li>
              Do not break the law, mislead or impersonate others, infringe intellectual property or privacy rights,
              introduce malware, bypass security, overload the Platform or use it for fraud, harassment or spam.
            </li>
            <li>
              Reviews must reflect genuine experiences. False reviews, undisclosed incentives, abusive content and
              attempts to suppress legitimate negative feedback are prohibited.
            </li>
            <li>
              Third-party links or services, including messaging, maps, analytics and social media, operate under
              their own terms and privacy practices.
            </li>
          </ul>

          <h2>Intellectual property</h2>
          <p>
            The Platform&apos;s branding, design, software and original content belong to Triora Living or its
            licensors. Vendors retain ownership of authorised product content but grant the licence stated in the
            Vendor Agreement and Listing Rules. Users may access Platform content for personal marketplace use and
            may not reproduce, distribute or commercially exploit it without permission.
          </p>

          <h2>Complaints and dispute resolution</h2>
          <p>
            Send complaints to hello@ceylonhandicrafts.lk and identify the product, seller, enquiry or order
            reference, relevant dates, messages, payment and delivery evidence and the remedy requested. For urgent
            product-safety concerns, use the subject &ldquo;URGENT PRODUCT SAFETY&rdquo; and call
            +94 71 942 4353 / 071 942 4353 as well as emailing where possible.
          </p>
          <p>
            For Vendor-Listed Products, contact the vendor first. We may facilitate communication and take Platform
            action, but the vendor remains the primary handler and refund payer. For Managed Sale Products, Triora
            Living handles the complaint as seller. We aim to acknowledge a complete complaint within three business
            days and provide an initial substantive response within 10 business days. Complex or multi-party matters
            may take longer, in which case we will provide a reasonable update.
          </p>
          <p>
            If unresolved, reply to the same correspondence to request internal review. A customer may also contact
            the Consumer Affairs Authority, the Data Protection Authority where relevant, another competent regulator
            or a court in Sri Lanka. Nothing in these Terms restricts a statutory remedy.
          </p>

          <h2>Suspension and termination</h2>
          <p>
            We may restrict an account, remove content or pause a listing where we reasonably suspect fraud,
            illegality, safety risk, repeated complaints, non-cooperation or a breach of these Terms. Urgent action
            may be taken without prior notice. Where appropriate, we will explain the reason and provide a
            reasonable opportunity to respond.
          </p>

          <h2>Liability and non-excludable rights</h2>
          <p>
            To the fullest extent permitted by law, Triora Living is not responsible for an independent vendor&apos;s
            product, promises, conduct, delay, non-delivery, warranty breach or failure to refund a Vendor-Listed
            Product payment that Triora Living did not receive. This does not exclude liability for our own fraud,
            wilful misconduct, non-excludable negligence, breach of a legal duty imposed on a platform operator, or
            any consumer right or liability that cannot lawfully be limited. For Managed Sale Products, our
            responsibility is determined by the applicable transaction policy and Sri Lankan law.
          </p>

          <h2>Changes, governing law and severability</h2>
          <p>
            We may update these Terms prospectively and will publish the revised effective date. These Terms are
            governed by the laws of Sri Lanka, and disputes are subject to the jurisdiction of the competent courts
            of Sri Lanka. If one provision is invalid or unenforceable, the remaining provisions continue to apply.
          </p>

          <h2>Contact</h2>
          <p>
            <strong>Triora Living (Private) Limited</strong> — Company number PV00373323
            <br />
            32, Siripa Road, Colombo 05, Sri Lanka | hello@ceylonhandicrafts.lk | +94 71 942 4353 / 071 942 4353
          </p>
        </div>
      </div>
    </section>
  );
}
