// Legal pages: Privacy, Terms, Returns, Shipping, Cancellation
// Operator: OCEANNET (SMC-PRIVATE) LIMITED (brand: Saancha Shoes)

const SOT = {
  entity: 'OCEANNET (SMC-PRIVATE) LIMITED',
  brand: 'Saancha Shoes',
  secp: 'SECP Registration: In Process',
  ntn: 'NTN: In Process',
  address: 'Office No. FA32, 1st Floor, Crown Business Center, E11/2, Islamabad, Pakistan',
  director: 'Mohammad Gulfam',
  grievanceEmail: 'grievance@saanchashoes.shop',
  grievancePhone: '+92 51 272 8463',
  supportEmail: 'hello@saanchashoes.shop',
  ordersEmail: 'orders@saanchashoes.shop',
  updated: '10 July 2026',
};

const proseStyle = {
  maxWidth: 'var(--width-prose)',
  lineHeight: '1.75',
  margin: '0 auto',
};

const h2Style = {
  fontSize: '1.15rem',
  fontFamily: 'var(--font-mono)',
  color: 'var(--color-accent)',
  marginTop: '2rem',
  marginBottom: '0.5rem',
};

function OperatorTable() {
  const rows = [
    ['Legal Entity', SOT.entity],
    ['Brand', SOT.brand],
    ['SECP Registration', SOT.secp],
    ['NTN', SOT.ntn],
    ['Registered Office', SOT.address],
    ['Director & Grievance Officer', SOT.director],
    ['Grievance Email', SOT.grievanceEmail],
    ['Grievance Phone', SOT.grievancePhone],
    ['Support Email', SOT.supportEmail],
  ];
  return (
    <div style={{ marginTop: '2.5rem', overflowX: 'auto' }}>
      <h2 style={h2Style}>Operator Details</h2>
      <table style={{ width: '100%', borderCollapse: 'collapse', fontSize: '0.88rem' }}>
        <tbody>
          {rows.map(([k, v]) => (
            <tr key={k} style={{ borderBottom: 'var(--rule-width) solid var(--color-border)' }}>
              <td style={{ padding: '0.55rem 0.75rem', fontWeight: '600', whiteSpace: 'nowrap', color: 'var(--color-ink-soft)', width: '220px', verticalAlign: 'top' }}>{k}</td>
              <td style={{ padding: '0.55rem 0.75rem', color: 'var(--color-ink)' }}>{v}</td>
            </tr>
          ))}
        </tbody>
      </table>
    </div>
  );
}

function LegalShell({ eyebrow, title, children }) {
  const { navigate: nav } = useStore();
  const goHome = () => nav({ name: 'home' });
  return (
    <div className="legal-page" style={{ padding: '2rem 1.25rem 4rem' }}>
      <div style={proseStyle}>
        <nav className="crumbs" style={{ fontSize: '0.8rem', color: 'var(--color-ink-mute)', marginBottom: '1.25rem' }}>
          <span onClick={goHome} style={{ cursor: 'pointer' }}>Home</span>
          <span style={{ margin: '0 0.4rem' }}>/</span>
          <span>{title}</span>
        </nav>
        {eyebrow && <p className="eyebrow-gold" style={{ marginBottom: '0.5rem' }}>{eyebrow}</p>}
        <h1 style={{ fontFamily: 'var(--font-mono)', fontSize: '1.85rem', color: 'var(--color-ink)', marginBottom: '0.4rem' }}>{title}</h1>
        <p style={{ fontSize: '0.82rem', color: 'var(--color-ink-mute)', marginBottom: '2rem' }}>Last updated: {SOT.updated}</p>
        {children}
        <OperatorTable />
      </div>
    </div>
  );
}

// --- 1. PRIVACY POLICY ---

function PrivacyPage() {
  return (
    <LegalShell eyebrow="Legal" title="Privacy Policy">
      <p>At Saancha Shoes — a brand operated by OCEANNET (SMC-PRIVATE) LIMITED — we recognise that your personal data belongs to you. This Privacy Policy explains what information we collect when you visit <strong>saanchashoes.shop</strong>, how we use and protect it, and what rights you hold under applicable Pakistani law, including the Personal Data Protection Act, 2023 (PDPA), the Prevention of Electronic Crimes Act, 2016 (PECA), and the Electronic Transactions Ordinance, 2002.</p>

      <h2 style={h2Style}>1. Who We Are</h2>
      <p>The data fiduciary for all personal data collected through this website is <strong>OCEANNET (SMC-PRIVATE) LIMITED</strong> (SECP Registration: In Process, NTN: In Process), with its registered office at Office No. FA32, 1st Floor, Crown Business Center, E11/2, Islamabad, Pakistan. Our operating brand is <strong>Saancha Shoes</strong> and our domain is <strong>saanchashoes.shop</strong>. References to "we", "us", or "our" throughout this policy mean OCEANNET (SMC-PRIVATE) LIMITED.</p>

      <h2 style={h2Style}>2. Information We Collect</h2>
      <p><strong>Account information:</strong> When you create an account, we collect your full name, email address, and a password (stored as a salted hash — never in plain text). You may optionally add a phone number and shipping addresses to your profile.</p>
      <p><strong>Order and transaction data:</strong> When you place an order, we collect your billing name, delivery address (street, city, province, postal code), phone number, and a record of items purchased, quantities, sizes, prices, coupon codes applied, and the payment method type (card, bank transfer, or cash on delivery). We do not store full card numbers or CVV values; these are handled exclusively by our payment gateway partners.</p>
      <p><strong>Device and usage data:</strong> Our servers and analytics tools automatically record your IP address, browser type, operating system, referring URL, pages visited, time on page, and click paths. This data is used in aggregate form to improve site performance and cannot on its own identify you.</p>
      <p><strong>Cookies:</strong> We use strictly necessary cookies to keep your session active and your cart intact. We also use analytics cookies (via anonymised tools) to understand how visitors navigate the site. You may disable non-essential cookies via your browser settings; doing so will not prevent you from placing orders, but may affect certain features such as personalised product recommendations.</p>

      <h2 style={h2Style}>3. How We Use Your Information</h2>
      <p>We use your personal data to: (a) process and fulfil your orders, including communicating dispatch, tracking updates, and delivery confirmations; (b) manage your account and allow you to view order history; (c) send transactional emails (order confirmation, invoice, return confirmation) that are necessary for the service; (d) send marketing emails, WhatsApp messages, or SMS about new collections, sales, and events — only if you have opted in; (e) detect and prevent fraud, chargebacks, or abuse of our platform; (f) comply with legal obligations such as sales tax invoice retention, consumer grievance redressal, and statutory reporting under SECP regulations; and (g) improve our website, product catalogue, and customer experience through anonymised analytics.</p>

      <h2 style={h2Style}>4. Lawful Basis for Processing</h2>
      <p>Under the Personal Data Protection Act, 2023 (Pakistan PDPA), we process your personal data on the following grounds: <strong>Contract performance</strong> — processing necessary to deliver the goods you ordered and to manage your account; <strong>Consent</strong> — for marketing communications, which you may withdraw at any time; <strong>Legitimate interests</strong> — for fraud prevention, security, and aggregate analytics that do not override your fundamental rights; and <strong>Legal obligation</strong> — for sales tax record-keeping, statutory audits, and grievance redressal as mandated by applicable Pakistani consumer protection laws and SECP regulations. We adhere to reasonable security practices as prescribed under the Prevention of Electronic Crimes Act, 2016 (PECA).</p>

      <h2 style={h2Style}>5. Sharing with Third Parties</h2>
      <p><strong>Payment gateways:</strong> We integrate with PCI-DSS-compliant payment processors to handle card and bank transfer transactions. When you complete a payment, your transaction data is processed directly on their secure servers. We receive only a transaction reference ID and payment status.</p>
      <p><strong>Courier and logistics partners:</strong> We share your name, delivery address, and phone number with our shipping partners — TCS, Leopard Courier, and Pakistan Post — solely to complete delivery of your order. These partners are contractually obligated not to use your data for any other purpose.</p>
      <p><strong>Analytics:</strong> We use analytics tools configured to anonymise IP addresses before storage. No personally identifiable profile is created with third-party analytics providers. Aggregate traffic reports do not contain individual user data.</p>
      <p><strong>Legal disclosure:</strong> We may disclose your personal data if required to do so by a court order, statutory authority, law enforcement agency, or other government body under applicable Pakistani law.</p>

      <h2 style={h2Style}>6. Data Retention</h2>
      <p>Order records and associated personal data are retained for a minimum of seven years from the date of transaction, as required under Pakistani companies law and SECP record-keeping regulations. Account information is retained for as long as your account is active. If you delete your account, we will remove marketing data within 30 days; order records will be retained for the statutory period in anonymised form. Marketing consent is retained until you withdraw it; upon withdrawal, we will cease communications within five business days.</p>

      <h2 style={h2Style}>7. Your Rights</h2>
      <p>Under the Personal Data Protection Act, 2023 (Pakistan PDPA), you have the right to: (a) <strong>access</strong> a summary of the personal data we hold about you; (b) <strong>correct</strong> inaccurate or incomplete data; (c) <strong>erase</strong> your personal data, subject to our statutory retention obligations; (d) <strong>data portability</strong> — receive your order and account data in a machine-readable format; (e) <strong>withdraw consent</strong> for marketing at any time using the unsubscribe link in any email or by contacting us; and (f) <strong>nominate</strong> another individual to exercise these rights on your behalf in the event of your death or incapacity. To exercise any of these rights, email our Grievance Officer at <strong>grievance@saanchashoes.shop</strong>. We will respond within 72 hours of receipt and resolve your request within 30 days.</p>

      <h2 style={h2Style}>8. Children's Privacy</h2>
      <p>Our platform is not directed at children below 18 years of age. We do not knowingly collect personal data from minors. If you are a parent or guardian and believe your child has provided us with personal information without consent, please contact us immediately at grievance@saanchashoes.shop. Upon verification, we will delete all such data promptly.</p>

      <h2 style={h2Style}>9. Cookies and Analytics</h2>
      <p>Session cookies are placed on your device when you visit our website and are deleted when you close your browser. Persistent cookies remember your preferences (e.g., cart contents, login state) for up to 30 days. Analytics cookies, which are anonymised, may persist for up to 13 months in line with industry standard retention for statistical purposes. You can manage your cookie preferences through your browser's privacy settings. Our site does not respond to Do Not Track signals at this time; however, we do not build individual profiles for advertising purposes.</p>

      <h2 style={h2Style}>10. Cross-Border Data Transfers</h2>
      <p>Some of our analytics and infrastructure service providers store data on servers located in the European Union or the United States. Where such transfers occur, we ensure adequate safeguards are in place — typically through standard contractual clauses or service providers certified under applicable data transfer frameworks. Your order data and payment data are processed and stored within Pakistan by our primary service providers.</p>

      <h2 style={h2Style}>11. Security Measures</h2>
      <p>We implement industry-standard security measures including TLS 1.2+ encryption for all data in transit, AES-256 encryption for sensitive stored data, access controls restricted to authorised personnel, and regular security audits. Passwords are stored using a one-way hashing algorithm with a unique salt per account. Despite these measures, no system is completely secure; in the event of a data breach that is likely to result in harm to you, we will notify you and the relevant authority as required under the PDPA 2023 and PECA 2016 within the prescribed timelines.</p>

      <h2 style={h2Style}>12. Updates to This Policy</h2>
      <p>We may update this Privacy Policy from time to time to reflect changes in our practices, technology, or legal requirements. When we make material changes, we will update the "Last updated" date at the top of this page and, where the change significantly affects your rights, notify you via email. Continued use of the website after any update constitutes your acceptance of the revised policy. We encourage you to review this page periodically.</p>

      <h2 style={h2Style}>13. Grievance Officer</h2>
      <p>If you have any questions about this Privacy Policy, wish to exercise your data rights, or have a complaint about how your personal data has been handled, please contact our Grievance Officer:</p>
      <ul>
        <li><strong>Name:</strong> Mohammad Gulfam</li>
        <li><strong>Designation:</strong> Director & Grievance Officer, OCEANNET (SMC-PRIVATE) LIMITED</li>
        <li><strong>Email:</strong> grievance@saanchashoes.shop</li>
        <li><strong>Phone:</strong> +92 51 272 8463</li>
        <li><strong>Address:</strong> Office No. FA32, 1st Floor, Crown Business Center, E11/2, Islamabad, Pakistan</li>
      </ul>
      <p>We will acknowledge your complaint within 48 hours and endeavour to resolve it within 30 days. If you are not satisfied with our response, you may approach the relevant data protection authority once the PDPA 2023 grievance redressal provisions come into full force.</p>
    </LegalShell>
  );
}

// --- 2. TERMS OF SERVICE ---

function TermsPage() {
  return (
    <LegalShell eyebrow="Legal" title="Terms of Service">
      <p>Please read these Terms of Service carefully before using <strong>saanchashoes.shop</strong> or placing any order with Saancha Shoes. By accessing this website or completing a purchase, you agree to be bound by these Terms. If you do not agree, please do not use our website. These Terms constitute a legally binding agreement between you and <strong>OCEANNET (SMC-PRIVATE) LIMITED</strong> (SECP Registration: In Process, NTN: In Process), the company that owns and operates Saancha Shoes.</p>

      <h2 style={h2Style}>1. Acceptance of Terms</h2>
      <p>By clicking "Place Order", creating an account, or otherwise transacting on this website, you confirm that you have read, understood, and accepted these Terms of Service along with our Privacy Policy, Return & Refund Policy, Shipping Policy, and Cancellation Policy, all of which are incorporated herein by reference. These Terms are governed by the laws of Pakistan, including the Contract Act, 1872, the Electronic Transactions Ordinance, 2002, and applicable consumer protection laws of Pakistan.</p>

      <h2 style={h2Style}>2. Eligibility</h2>
      <p>You must be at least 18 years of age to create an account and transact independently on this website. If you are below 18, a parent or legal guardian must complete the purchase on your behalf, and by doing so, they accept these Terms on your behalf and take full responsibility for all transactions. We reserve the right to refuse service, terminate accounts, or cancel orders at our sole discretion if we have reason to believe the eligibility criteria have not been met.</p>

      <h2 style={h2Style}>3. Account Responsibilities</h2>
      <p>When you create an account on saanchashoes.shop, you are responsible for maintaining the confidentiality of your credentials. You agree to notify us immediately at hello@saanchashoes.shop if you suspect unauthorised access to your account. You are responsible for all activity that occurs under your account, whether or not you authorised it. You may not create multiple accounts, impersonate another person, or use false information. We reserve the right to suspend or terminate accounts that violate these obligations.</p>

      <h2 style={h2Style}>4. Pricing and Taxes</h2>
      <p>All prices displayed on saanchashoes.shop are in Pakistani Rupees (PKR) and are inclusive of applicable sales tax. Our NTN registration is in process. A tax-compliant invoice is issued electronically with every confirmed order. Prices are subject to change without prior notice; however, the price displayed at the time you place your order is the price you will pay, provided your payment is successfully captured. Shipping fees, if applicable, are shown separately at checkout and are not included in the product price.</p>

      <h2 style={h2Style}>5. Orders and Contract Formation</h2>
      <p>An order placed by you constitutes an offer to purchase goods at the stated price and conditions. A legally binding contract is formed between you and OCEANNET (SMC-PRIVATE) LIMITED only when we confirm that your payment has been successfully captured and we send you an order confirmation email containing a unique order ID (formatted as SAN######). Until that confirmation is issued, we reserve the right to decline or modify your order — for example, if a product becomes unavailable between the time you added it to your cart and the time payment was processed.</p>

      <h2 style={h2Style}>6. Stock and Substitution</h2>
      <p>Saancha Shoes products are handcrafted, often in limited quantities. While we endeavour to keep our inventory accurate in real time, situations may arise where a product becomes unavailable after your order is placed. In such cases, we will notify you within 24 hours and offer either a full refund to your original payment method or, where possible, a substitution of comparable style and value — which you are free to accept or decline. We will never dispatch a substitute product without your explicit consent.</p>

      <h2 style={h2Style}>7. Cancellation by Us</h2>
      <p>We reserve the right to cancel any order for the following reasons: (a) suspected fraudulent activity or unusual purchasing patterns; (b) the product being genuinely out of stock despite inventory records; (c) an incorrect price or description having been published due to a technical error; (d) an undeliverable delivery address that cannot be served by our logistics partners; or (e) failure to receive payment confirmation from the payment gateway within the processing window. In all such cases, you will receive a full refund to your original payment method within five to seven business days, along with written notification of the cancellation reason.</p>

      <h2 style={h2Style}>8. Intellectual Property</h2>
      <p>All content on saanchashoes.shop — including the name "Saancha Shoes", our logo, product photographs, descriptions, craft narratives, journal articles, and the overall look and feel of the website — is the exclusive property of OCEANNET (SMC-PRIVATE) LIMITED or is licensed to us. You may not reproduce, distribute, modify, publicly display, or create derivative works from any content on this website without our prior written permission. Reverse-engineering our product pages for competitive intelligence, scraping our catalogue programmatically, or training machine learning models on our content without express written consent is expressly prohibited.</p>

      <h2 style={h2Style}>9. User Content</h2>
      <p>If you submit a product review, photograph, or other content ("User Content") on our platform, you grant OCEANNET (SMC-PRIVATE) LIMITED a non-exclusive, royalty-free, worldwide, perpetual licence to use, reproduce, publish, and display that content in connection with the Saancha Shoes brand, including on social media and marketing materials. You warrant that your User Content is truthful, does not infringe the rights of any third party, and does not contain unlawful, defamatory, or obscene material. We reserve the right to remove User Content that violates these standards without notice.</p>

      <h2 style={h2Style}>10. Prohibited Uses</h2>
      <p>You agree not to: (a) use the website for any unlawful purpose or in violation of any applicable regulation; (b) purchase goods for resale without our written authorisation; (c) submit false, misleading, or fraudulent reviews; (d) attempt to gain unauthorised access to any part of our systems; (e) use automated bots, crawlers, or scraping tools on our website; or (f) engage in any activity that places an unreasonable load on our infrastructure or interferes with other users' access. Violation of these prohibitions may result in immediate account suspension and, where appropriate, legal action under the Prevention of Electronic Crimes Act, 2016 (PECA).</p>

      <h2 style={h2Style}>11. Disclaimers</h2>
      <p>Saancha Shoes products are handcrafted by artisans, which means natural variations in colour, grain, texture, stitching, and dimensions are inherent to the product and are not defects. Product photographs are taken under controlled lighting conditions and may not perfectly represent the exact shade as it appears in natural light or on your specific screen. We make every effort to provide accurate descriptions and dimensions, but minor variations of up to 5% from stated measurements are to be expected with handcrafted goods. These variations are a feature of authentic craftsmanship, not a grounds for return under our standard return policy, unless they constitute a material defect that affects the product's functionality or significantly departs from the described style.</p>

      <h2 style={h2Style}>12. Limitation of Liability</h2>
      <p>To the fullest extent permitted by applicable law, OCEANNET (SMC-PRIVATE) LIMITED's total liability to you for any claim arising out of or in connection with these Terms, your use of the website, or any purchase — whether in contract, tort, statute, or otherwise — shall not exceed the total amount paid by you for the specific order giving rise to the claim. We shall not be liable for any indirect, incidental, consequential, special, or punitive damages, including loss of data, loss of profit, or loss of business opportunity, even if we have been advised of the possibility of such damages.</p>

      <h2 style={h2Style}>13. Indemnity</h2>
      <p>You agree to indemnify, defend, and hold harmless OCEANNET (SMC-PRIVATE) LIMITED and its directors, employees, agents, and affiliates from and against any claims, liabilities, damages, losses, and expenses — including reasonable legal fees — arising out of or in any way connected with your access to or use of the website, your breach of these Terms, your violation of any applicable law, or any User Content you submit.</p>

      <h2 style={h2Style}>14. Governing Law and Jurisdiction</h2>
      <p>These Terms of Service shall be governed by and construed in accordance with the laws of Pakistan. Any dispute arising under these Terms shall be subject to the exclusive jurisdiction of the courts located in Islamabad, Pakistan. You expressly consent to personal jurisdiction in such courts and waive any objection based on improper venue or inconvenient forum.</p>

      <h2 style={h2Style}>15. Force Majeure</h2>
      <p>We shall not be liable for any failure or delay in performance of our obligations under these Terms to the extent that such failure or delay is caused by events beyond our reasonable control, including but not limited to acts of God, natural disasters, pandemic or epidemic, governmental actions, civil unrest, strikes, fire, flood, or failure of third-party logistics or payment infrastructure. We will make reasonable efforts to notify you of such events and resume normal operations as soon as practicable.</p>

      <h2 style={h2Style}>16. Notices</h2>
      <p>Any notices to OCEANNET (SMC-PRIVATE) LIMITED under these Terms should be sent in writing to our registered address at Office No. FA32, 1st Floor, Crown Business Center, E11/2, Islamabad, Pakistan, or by email to hello@saanchashoes.shop. Legal notices must be sent by registered post or courier with proof of delivery. We will send notices to the email address associated with your account; it is your responsibility to keep this address current.</p>
    </LegalShell>
  );
}

// --- 3. RETURN & REFUND POLICY ---

function ReturnsPage() {
  return (
    <LegalShell eyebrow="Policies" title="Return & Refund Policy">
      <p>We want you to love every Saancha Shoes piece. If for any reason you are not completely satisfied, we offer a straightforward return and refund process designed to be fair, transparent, and compliant with applicable Pakistani consumer protection laws. This policy is issued by <strong>OCEANNET (SMC-PRIVATE) LIMITED</strong> (SECP Registration: In Process, NTN: In Process), operating as Saancha Shoes at saanchashoes.shop.</p>

      <h2 style={h2Style}>1. Return Window</h2>
      <p>You may request a return within <strong>14 calendar days</strong> from the date of delivery of your order. The delivery date is determined by the tracking record from our courier partner. Requests received after the 14-day window will not be eligible for a return or refund under this standard policy. We recommend inspecting your order within 48 hours of receipt and raising any quality concerns promptly.</p>

      <h2 style={h2Style}>2. Eligibility Conditions</h2>
      <p>To be eligible for a return, the item must meet all of the following conditions:</p>
      <ul>
        <li>The item is in its original, unused, and unworn condition.</li>
        <li>All original tags, labels, and hang-tags are intact and attached.</li>
        <li>The item is returned in its original dust bag or packaging, along with any authenticity card or care card that was included.</li>
        <li>The item has not been altered, washed, dry-cleaned, or repaired by a third party.</li>
        <li>The return request has been raised within the 14-day window described above.</li>
      </ul>
      <p>Items that do not meet these conditions may be refused at the time of quality check and returned to you at your cost.</p>

      <h2 style={h2Style}>3. Non-Returnable Items</h2>
      <p>The following categories are not eligible for return under any circumstances, except in the case of a manufacturing defect or incorrect item dispatch:</p>
      <ul>
        <li><strong>Worn or used footwear</strong> — due to hygiene and safety reasons, any shoes or leather goods that have been worn, even briefly, cannot be returned.</li>
        <li><strong>Custom and personalised pieces</strong> — items made to your specifications, including monogrammed leather goods or bespoke tailored pieces, are manufactured exclusively for you and cannot be resold.</li>
        <li><strong>Sale items marked with a discount greater than 50% off</strong> — deeply discounted clearance items are sold on a final-sale basis. The applicable sale status is displayed on the product listing page at the time of purchase.</li>
        <li><strong>Digital gift cards</strong> — once a gift card code has been delivered and is in active use, it cannot be refunded.</li>
      </ul>

      <h2 style={h2Style}>4. Return Process</h2>
      <p>To initiate a return, log in to your account at saanchashoes.shop, navigate to <strong>My Orders</strong>, select the relevant order, and click <strong>Request Return</strong>. Alternatively, email orders@saanchashoes.shop with your order ID (SAN######) and a brief reason for the return. Our customer care team will respond within 24 hours to confirm eligibility and schedule a free reverse pickup.</p>
      <p>Reverse pickup is typically scheduled within 48 hours of your return request being approved. A courier executive from TCS or Leopard Courier will collect the parcel from the delivery address on file; if you require pickup from a different address, please mention it in your return request. Ensure the item is securely repacked before handover. You will receive a pickup confirmation SMS and email.</p>
      <p>Once the returned item reaches our Islamabad fulfilment centre, our quality assurance team will inspect it within two to three business days. You will receive an email confirming whether the return has been accepted or, in rare cases, rejected due to condition. If accepted, your refund will be processed immediately.</p>

      <h2 style={h2Style}>5. Refund Timelines</h2>
      <p>Refunds are issued to the original payment method used at the time of purchase. The timelines below are from the date we confirm the return is accepted:</p>
      <ul>
        <li><strong>Card Payments (Credit/Debit):</strong> 5–7 business days (subject to your bank's processing cycle)</li>
        <li><strong>Bank Transfer / Online Banking:</strong> 5–7 business days</li>
        <li><strong>Cash on Delivery (COD):</strong> Refund via bank transfer within 7–10 business days. You will be asked to provide your bank account details (account number and IBAN) via a secure form.</li>
        <li><strong>Saancha Shoes Store Credit:</strong> If you opt for store credit instead of a cash refund, credit is applied to your account within one business day of return acceptance.</li>
      </ul>

      <h2 style={h2Style}>6. Size Exchange</h2>
      <p>We offer a one-time size exchange for footwear within the 14-day return window, subject to availability of the requested size. To request an exchange, follow the same return process above and select <strong>Exchange</strong> as your resolution preference. The original item must be shipped back before the replacement is dispatched. We cover the cost of both the reverse pickup and the forward shipment for size exchanges. If the requested size is unavailable, we will issue a full refund instead.</p>

      <h2 style={h2Style}>7. Defective or Incorrect Items</h2>
      <p>If you receive an item that is defective, damaged in transit, or not what you ordered, you are entitled to a full refund of the item value plus the original shipping charges paid. In addition, we will credit <strong>Rs 500 as a goodwill gesture</strong> to your Saancha Shoes account for the inconvenience. Please raise the issue within 72 hours of delivery and attach clear photographs of the defect or incorrect item in your email to orders@saanchashoes.shop. We will expedite your case and arrange an immediate pickup without requiring standard quality check timelines.</p>

      <h2 style={h2Style}>8. Reverse Pickup Coverage</h2>
      <p>Our free reverse pickup service is available across all major cities and towns served by TCS and Leopard Courier. For remote areas where reverse pickup is not available, we will request you to self-ship the item to our Islamabad fulfilment centre. In such cases, we will reimburse actual courier charges up to Rs 300 upon submission of a valid courier receipt. Please use a reputable courier service with tracking, as we cannot accept liability for items lost in transit on self-shipped returns.</p>

      <h2 style={h2Style}>9. Compliance</h2>
      <p>This Return & Refund Policy is framed in compliance with applicable consumer protection laws of Pakistan. For any unresolved disputes regarding returns or refunds, you may approach the relevant consumer court or file a complaint with the Consumer Protection Council in your province.</p>

      <h2 style={h2Style}>10. Grievance</h2>
      <p>If you are dissatisfied with how your return or refund has been handled, please contact our Grievance Officer, Mohammad Gulfam, at grievance@saanchashoes.shop or +92 51 272 8463. We commit to acknowledging your grievance within 48 hours and resolving it within 30 days of receipt.</p>
    </LegalShell>
  );
}

// --- 4. SHIPPING POLICY ---

function ShippingPage() {
  return (
    <LegalShell eyebrow="Policies" title="Shipping Policy">
      <p>Saancha Shoes ships every order with care from our Islamabad workshop, using trusted logistics partners to ensure your handcrafted purchase reaches you safely and on time. This Shipping Policy is issued by <strong>OCEANNET (SMC-PRIVATE) LIMITED</strong> (SECP Registration: In Process, NTN: In Process), operating as Saancha Shoes at saanchashoes.shop. All shipments are currently domestic (within Pakistan) only.</p>

      <h2 style={h2Style}>1. Delivery Coverage</h2>
      <p>We ship across all provinces and territories of Pakistan: <strong>Punjab, Sindh, Khyber Pakhtunkhwa (KPK), Balochistan, Gilgit-Baltistan, and Azad Jammu & Kashmir (AJK)</strong>. This includes all major cities (Karachi, Lahore, Islamabad, Rawalpindi, Faisalabad, Peshawar, Quetta, Multan, Gujranwala, Sialkot, Hyderabad), secondary cities, and most towns. For remote areas in Gilgit-Baltistan, Balochistan, and northern KPK, delivery is handled by Pakistan Post and may take additional time. To check whether your area is serviceable, you can enter your city or postal code on the product page or during checkout.</p>

      <h2 style={h2Style}>2. Standard Delivery</h2>
      <p>Standard delivery is available to all serviceable locations across Pakistan. Estimated transit time is <strong>3–5 business days</strong> from the date your order is dispatched (business days exclude Fridays in some regions, Sundays, and gazetted national holidays). Orders placed before 2:00 PM PKT on a business day are typically dispatched the same day; orders placed after 2:00 PM or on weekends are dispatched the next business day, subject to packing queue.</p>
      <ul>
        <li><strong>Free standard shipping</strong> on all orders above Rs 5,000.</li>
        <li><strong>Rs 200 flat fee</strong> for orders below Rs 5,000.</li>
      </ul>

      <h2 style={h2Style}>3. Express Delivery</h2>
      <p>Express delivery (estimated <strong>1–2 business days</strong>) is available for orders shipping to select metropolitan areas: Islamabad, Rawalpindi, Lahore, and Karachi. The express option will appear at checkout if your delivery location qualifies. Express is available regardless of order value.</p>
      <ul>
        <li><strong>Rs 350 flat fee</strong> for express delivery.</li>
      </ul>
      <p>Express delivery is handled by TCS priority service and is available on orders placed before 12:00 PM PKT on business days. Orders placed after 12:00 PM will be processed the next business day.</p>

      <h2 style={h2Style}>4. Courier Partners</h2>
      <p>We work with the following logistics partners to serve different regions:</p>
      <ul>
        <li><strong>TCS</strong> — primary partner for standard and express delivery across all major cities and towns.</li>
        <li><strong>Leopard Courier</strong> — secondary partner covering extensive routes across Punjab, Sindh, and KPK.</li>
        <li><strong>Pakistan Post</strong> — used for remote areas in Gilgit-Baltistan, Balochistan, and northern KPK where private couriers do not operate. Delivery via Pakistan Post may take 7–12 business days for such areas.</li>
      </ul>
      <p>The courier partner assigned to your order is determined automatically at the time of dispatch based on your delivery location, order value, and selected delivery speed. All partners provide tracking.</p>

      <h2 style={h2Style}>5. Cash on Delivery (COD)</h2>
      <p>COD is available on orders up to <strong>Rs 25,000</strong> in total value, subject to your delivery area being COD-enabled. A handling fee of <strong>Rs 100</strong> is charged for COD orders, displayed separately at checkout. COD is not available on orders above Rs 25,000 as a fraud-prevention measure. For high-value orders, we recommend paying online via card or bank transfer for a smoother experience. We reserve the right to cancel COD orders if your delivery area has a high RTO (return-to-origin) history.</p>

      <h2 style={h2Style}>6. Order Processing Window</h2>
      <p>All Saancha Shoes orders are hand-packed at our Islamabad workshop. Standard orders are processed within <strong>24–48 hours</strong> of payment confirmation. For sale events and peak periods (Eid, Independence Day sale, Ramadan), processing may extend to 48–72 hours due to higher order volumes. During such periods, we advise ordering well in advance if you require delivery by a specific date. You will receive a dispatch confirmation email with the tracking number as soon as your order leaves our workshop.</p>

      <h2 style={h2Style}>7. Order Tracking</h2>
      <p>Every Saancha Shoes order is assigned a unique tracking ID in the format <strong>SAN######</strong> (six digits). Once your order is dispatched, you will receive the courier tracking number via email and SMS. You can track your order:</p>
      <ul>
        <li>On the <strong>Track Order</strong> page at saanchashoes.shop — enter your Saancha Shoes order ID.</li>
        <li>Directly on the courier partner's website (TCS, Leopard Courier, or Pakistan Post) using the courier tracking ID provided in your dispatch email.</li>
        <li>Via the TCS or Leopard Courier mobile apps, if applicable.</li>
      </ul>

      <h2 style={h2Style}>8. Address Accuracy</h2>
      <p>You are solely responsible for providing an accurate and complete delivery address, including your house/flat number, building name, street, landmark, city, province, and postal code. We are unable to redirect shipments once they are in transit. In the event of a failed delivery caused by an incorrect address provided at the time of order, re-shipping charges at the standard rate will apply. Please double-check your address before confirming your order.</p>

      <h2 style={h2Style}>9. Failed Deliveries and Return to Origin</h2>
      <p>Our courier partners will make up to <strong>three delivery attempts</strong> at your address on separate days. After three failed attempts (or if the package is unclaimed), the shipment will be marked as RTO (Return to Origin) and sent back to our Islamabad workshop. In the case of a prepaid order, you will receive a refund of the product value within 7–10 business days of the package reaching us, minus the original outward shipping fee if the delivery failure was due to incorrect address or refusal to accept. To avoid this, please ensure someone is available at the address during business hours or provide an alternate contact number in your delivery instructions.</p>

      <h2 style={h2Style}>10. International Shipping</h2>
      <p>International shipping is <strong>not currently available</strong>. We ship exclusively within Pakistan at this time. We are working to add international delivery to select countries and will announce this via our newsletter and website when it becomes available. If you wish to be notified, subscribe to our mailing list or follow us on social media at @saanchashoes.</p>

      <h2 style={h2Style}>11. Holiday Calendar</h2>
      <p>Fulfilment operations are closed on the following gazetted national holidays: Pakistan Day (23 March), Labour Day (1 May), Eid ul-Fitr (subject to moon sighting), Eid ul-Adha (subject to moon sighting), Independence Day (14 August), Ashura (9th and 10th Muharram), Eid Milad-un-Nabi (12th Rabi-ul-Awwal), Iqbal Day (9 November), and Quaid-e-Azam Day (25 December). Orders placed on these days will be processed the next business day. Courier partners may also observe additional regional holidays that could affect transit times in specific provinces.</p>
    </LegalShell>
  );
}

// --- 5. CANCELLATION POLICY ---

function CancellationPage() {
  return (
    <LegalShell eyebrow="Policies" title="Cancellation Policy">
      <p>We understand that plans change. Saancha Shoes' Cancellation Policy is designed to give you flexibility while ensuring our artisans and fulfilment team can plan their work efficiently. This policy is issued by <strong>OCEANNET (SMC-PRIVATE) LIMITED</strong> (SECP Registration: In Process, NTN: In Process), operating as Saancha Shoes at saanchashoes.shop.</p>

      <h2 style={h2Style}>1. Customer Cancellation Window</h2>
      <p>You may cancel your order without any penalty if your cancellation request is received <strong>within 24 hours of order placement</strong> OR <strong>before the order status reaches "Packed"</strong> — whichever occurs earlier. The order status is updated in real time and is visible in your account under My Orders. Because our team begins hand-packing orders promptly after confirmation, the "Packed" status may be reached before the 24-hour window in some cases, particularly for orders placed on weekday mornings during peak periods.</p>
      <p>To cancel an order within the eligible window, log in to your account, navigate to <strong>My Orders {'>'} [Order ID] {'>'} Cancel Order</strong>, and confirm your cancellation. You will receive a cancellation confirmation email immediately. Alternatively, email orders@saanchashoes.shop with your order ID and the subject line "Cancellation Request — SAN######". Our team will confirm and process the cancellation within two hours during business hours (Monday–Friday, 10:00 AM–6:00 PM PKT).</p>

      <h2 style={h2Style}>2. Cancellation After the Eligible Window</h2>
      <p>Once an order has reached the "Packed" status or 24 hours have elapsed — whichever is earlier — it can no longer be cancelled directly. At this stage, the order is either in the packing queue or already handed to the courier partner. If you wish to return the item after receiving it, please refer to our Return & Refund Policy, which provides a 14-day return window from the date of delivery. You are welcome to refuse acceptance of the package at the door; the courier will return it to us and we will process a refund as per our standard return process (minus any applicable shipping charges for COD orders).</p>

      <h2 style={h2Style}>3. Partial Cancellation</h2>
      <p>If your order contains multiple items (a multi-line order), you may request the removal of one or more individual line items rather than cancelling the entire order. Partial cancellation is subject to the packing status of each item. If some items have already been packed while others have not, only the unpacked items can be partially cancelled. The packed items will be dispatched as normal, and you may return them under our Return & Refund Policy if needed.</p>
      <p>To request a partial cancellation, email orders@saanchashoes.shop with your order ID and specify which item(s) you wish to cancel (using the product name and size). We will confirm which items can be removed before the order is finalised.</p>

      <h2 style={h2Style}>4. Cancellation by Saancha Shoes</h2>
      <p>OCEANNET (SMC-PRIVATE) LIMITED reserves the right to cancel any order for the following reasons:</p>
      <ul>
        <li><strong>Payment failure:</strong> If payment was not successfully captured or is reversed by the payment gateway after initial confirmation.</li>
        <li><strong>Stock unavailability:</strong> If a product is found to be genuinely out of stock after the order was placed, despite inventory records indicating availability.</li>
        <li><strong>Suspected fraud:</strong> If the order displays patterns consistent with fraudulent activity, including unusual address combinations, repeated failed payment attempts, or flagged payment instruments.</li>
        <li><strong>Undeliverable location:</strong> If your delivery location cannot be served by any of our courier partners and you are unable to provide an alternative address.</li>
        <li><strong>Incorrect pricing due to technical error:</strong> If a product was listed at an obviously erroneous price (for example, Rs 100 for leather shoes priced at Rs 5,000) due to a website or data entry error.</li>
      </ul>
      <p>In all cases where we initiate a cancellation, you will receive written notification by email explaining the reason, and a full refund will be automatically processed to your original payment method within five to seven business days. We will never partially fulfil an order affected by fraud concerns without your explicit re-consent.</p>

      <h2 style={h2Style}>5. Refund After Cancellation</h2>
      <p>For cancellations made within the eligible window (whether by you or by us), refunds are processed automatically to your original payment method:</p>
      <ul>
        <li><strong>Card Payments (Credit/Debit):</strong> 5–7 business days (your bank's processing cycle applies).</li>
        <li><strong>Bank Transfer / Online Banking:</strong> 5–7 business days.</li>
        <li><strong>Cash on Delivery:</strong> No money is collected before dispatch on COD orders; therefore, no refund is applicable for pre-dispatch cancellations. If the parcel is refused at the door and returned to us, a refund of the product value is not applicable as no payment was made.</li>
      </ul>
      <p>You will receive an email confirmation of the refund initiation. If your refund does not appear within the stated window, please contact your bank with the refund reference number provided in the email before reaching out to us, as inter-bank processing occasionally takes longer than expected.</p>

      <h2 style={h2Style}>6. Post-Dispatch Returns</h2>
      <p>If your order has already been dispatched and is in transit, cancellation is no longer possible through our standard flow. You have two options: (a) accept the delivery and initiate a return request within 14 days of receipt under our Return & Refund Policy; or (b) refuse the package at the door, in which case the courier will mark it for return to origin (RTO). For prepaid orders refused at the door, a refund of the product value will be processed within 7–10 business days of the package returning to our workshop, minus the original outward shipping fee. For COD orders refused at the door, no refund is applicable as no payment was made.</p>

      <h2 style={h2Style}>7. Custom and Personalised Orders</h2>
      <p>Orders for customised or personalised items — such as monogrammed leather goods, bespoke tailored pieces, or engraved accessories — cannot be cancelled once production has begun. You will be notified by email when production starts, typically within 24–48 hours of your order being confirmed. If you wish to cancel a customised order before production begins, you must do so within two hours of order placement by emailing orders@saanchashoes.shop. Once production has started, we are unable to offer a refund as the item has been made to your specifications and cannot be resold.</p>

      <h2 style={h2Style}>8. Contact for Cancellations</h2>
      <p>For all cancellation requests or queries, please contact us through any of the following channels:</p>
      <ul>
        <li><strong>Account Portal:</strong> My Orders {'>'} Cancel Order button (fastest method, available 24/7).</li>
        <li><strong>Email:</strong> orders@saanchashoes.shop — mention your order ID and "Cancellation Request" in the subject.</li>
        <li><strong>Phone:</strong> +92 51 272 8463 (Monday–Friday, 10:00 AM–6:00 PM PKT).</li>
        <li><strong>Grievance Officer:</strong> Mohammad Gulfam at grievance@saanchashoes.shop for escalations or unresolved issues.</li>
      </ul>
      <p>We are committed to resolving all cancellation requests promptly and fairly. Our goal is that every interaction with Saancha Shoes — even when plans change — reflects the same care and craft we put into every product we ship.</p>
    </LegalShell>
  );
}

// --- Expose on window ---

window.PrivacyPage = PrivacyPage;
window.TermsPage = TermsPage;
window.ReturnsPage = ReturnsPage;
window.ShippingPage = ShippingPage;
window.CancellationPage = CancellationPage;
