ifixkart-storefront/lib/legalContent.ts

188 lines
10 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export type LegalSection = {
id: string;
title: string;
paragraphs: string[];
};
export type LegalDoc = {
heading: string;
intro: string;
sections: LegalSection[];
};
export function buildTermsDoc(storeName: string): LegalDoc {
const brand = storeName || 'iFixKart';
return {
heading: 'Terms & Conditions',
intro: `By using the ${brand} website, mobile site, or related services, you agree to these Terms & Conditions. Please read them carefully. If you do not agree, do not use the site or services. Continued use means you accept these terms, including updates posted on this page.`,
sections: [
{
id: 'about',
title: `1. About ${brand}`,
paragraphs: [
`${brand} operates an online storefront for certified refurbished electronics, OEM spare parts, accessories, device exchange, buyback, and booked repair services. References to “we”, “us”, or “our” mean ${brand}. References to “you” mean the customer using the site.`,
'Some listings or fulfilment steps may involve partner workshops or courier partners. Unless we clearly say otherwise, those partners are responsible for the part of the job they perform.',
],
},
{
id: 'use',
title: '2. Permitted use',
paragraphs: [
'You may browse, create an account, place orders, and book repairs only for lawful personal or business use. You must not copy, scrape, reverse engineer, or commercially republish our catalogue, prices, images, or software without written permission.',
'You agree to follow applicable Indian laws while using the site, and not to interfere with other customers or with the security of the platform.',
],
},
{
id: 'ip',
title: '3. Copyright and trademarks',
paragraphs: [
`Site content — including text, photos, graphics, logos, and software — is owned by ${brand} or its licensors and is protected by Indian intellectual property laws. Product and brand names of third parties (Apple, Samsung, and others) belong to their respective owners and are used only for identification.`,
'You may not use our name, logos, or marks without prior written consent.',
],
},
{
id: 'account',
title: '4. Accounts, passwords, and age',
paragraphs: [
'To place orders or book repairs you may need an account. You must be at least 18 years old, provide accurate details, and keep your password confidential. You are responsible for activity on your account.',
'Tell us immediately if you believe someone else has used your login. We may suspend access if we reasonably believe there is unauthorised use or a breach of these terms.',
'An account with no activity for 180 days may be marked inactive.',
],
},
{
id: 'orders',
title: '5. Orders, payments, and delivery',
paragraphs: [
'An order is confirmed when payment is successful and you receive a confirmation email or SMS. Prices, stock, and offers can change until checkout is completed.',
'Pay using the methods shown at checkout (cards, UPI, net banking, or other listed options). Split payments across methods are not supported unless we say so on the product page.',
'Refurbished device orders are usually delivered by courier to the address you provide. Tracking details are sent after dispatch. Delivery timelines are estimates, not guarantees.',
],
},
{
id: 'refurbished',
title: '6. Refurbished products and warranty',
paragraphs: [
'Refurbished phones and gadgets are tested before listing. Cosmetic signs of use may remain. Functional defects that fail our checklist are repaired or the unit is not sold.',
'Warranty cover, if any, is stated on the product page (typically a limited period for smartphones). To claim warranty, keep your invoice and contact support within the stated window. Physical damage, liquid damage, and unauthorised repairs are not covered.',
],
},
{
id: 'repair',
title: '7. Repair services',
paragraphs: [
'Repair bookings are confirmed after slot selection and any required advance payment. Remaining charges are due after the job is completed and you have checked the device, unless otherwise agreed.',
'Spare parts used in repair carry the warranty described at booking. Data on your device remains your responsibility; please back up before service. On-site jobs are done in your presence whenever practical.',
],
},
{
id: 'returns',
title: '8. Cancellations, returns, and exchange',
paragraphs: [
'You may cancel an undelivered order as allowed at checkout or in your account. Once dispatched, courier and restocking rules on the product page apply.',
'Unused accessories in original packing may be returned within the window shown at checkout. Opened or used items are accepted only if defective, unless a listing says otherwise.',
'Device exchange and buyback quotes are estimates until physical inspection. If the condition differs from what you declared, we may revise the value. You may accept the revised value or decline that part of the transaction as per the policy shown at checkout.',
],
},
{
id: 'liability',
title: '9. Warranty exclusions and limitation of liability',
paragraphs: [
`We aim to describe products and services accurately. If a paid service does not substantially match its description, your exclusive remedy is that we will re-perform the service or refund the amount you paid to ${brand} for that service, at our option.`,
'To the fullest extent allowed by Indian law, we are not liable for indirect, incidental, special, or consequential losses (including lost profits or business). Our total liability for any claim relating to the site or services is limited to the amount you paid us for the relevant order or booking.',
],
},
{
id: 'indemnity',
title: '10. Indemnity',
paragraphs: [
`You agree to indemnify ${brand} and its team against claims arising from your use of the site, your breach of these terms, or infringement of another persons rights through your account.`,
],
},
{
id: 'law',
title: '11. Governing law',
paragraphs: [
'These terms are governed by the laws of India. Courts at Bengaluru, Karnataka shall have exclusive jurisdiction, unless a mandatory consumer forum at your place of residence applies.',
],
},
{
id: 'updates',
title: '12. Changes',
paragraphs: [
'We may update these Terms & Conditions from time to time. The revised version takes effect when posted on this page. Please review it periodically.',
],
},
],
};
}
export function buildPrivacyDoc(storeName: string): LegalDoc {
const brand = storeName || 'iFixKart';
return {
heading: 'Privacy Policy',
intro: `This notice explains how ${brand} collects, uses, and protects personal data when you use our website, checkout, repair booking, and related services. It should be read with our Terms & Conditions.`,
sections: [
{
id: 'who',
title: 'Who we are',
paragraphs: [
`${brand} is the data controller for information collected through this storefront. You can reach us using the contact details on this page or the Contact Us page.`,
],
},
{
id: 'collect',
title: 'Information we collect',
paragraphs: [
'We collect details you provide: name, phone, email, delivery address, order notes, repair device details, and account login information.',
'We also collect technical data such as IP address, browser type, device type, and pages visited, including through cookies needed to run checkout and keep you signed in.',
'Payment card data is processed by our payment partner. We do not store full card numbers on our servers.',
],
},
{
id: 'use',
title: 'How we use your information',
paragraphs: [
'We use personal data to fulfil orders and repair bookings, send order and tracking updates, provide support, improve the site, prevent fraud, and meet legal obligations.',
'If you opt in, we may send offers about products or services. You can unsubscribe from marketing emails at any time.',
],
},
{
id: 'share',
title: 'Sharing',
paragraphs: [
'We share data only as needed with payment gateways, courier partners, authorised repair technicians, and IT/hosting providers who process data on our instructions.',
'We may disclose information if required by law, regulation, or a valid legal request, or to protect customers, staff, or the platform.',
],
},
{
id: 'security',
title: 'Security and retention',
paragraphs: [
'We use reasonable technical and organisational measures to protect personal data. No internet transmission is completely secure.',
'We keep order and invoice records for the period required under Indian tax and consumer laws, then delete or anonymise them when no longer needed.',
],
},
{
id: 'rights',
title: 'Your rights',
paragraphs: [
'You may request access, correction, or deletion of your personal data, or raise a privacy complaint, by emailing support. We will respond as required under applicable Indian data protection and IT rules.',
],
},
{
id: 'cookies',
title: 'Cookies',
paragraphs: [
'We use essential cookies for login, cart, and checkout. Analytics cookies, if enabled, help us understand how the store is used. You can control cookies in your browser; blocking some cookies may affect checkout.',
],
},
{
id: 'changes',
title: 'Updates',
paragraphs: [
'We may update this Privacy Policy. Material changes will be reflected by the date on this page. Continued use of the site after an update means you acknowledge the revised notice.',
],
},
],
};
}