// ============================================================================
// Legal pages — Privacy Policy / Terms & Conditions / Cookie Policy
//
// Content lives in this file (LEGAL_CONTENT) rather than hm-i18n-packs.js
// to keep the i18n pack readable. 3 locales: en / zh-TW / id.
// English is the authoritative version (see "Governing Law" in Terms §14).
//
// Placeholders to replace with the real legal entity before launch:
//   [COMPANY NAME] · [REGISTERED ADDRESS] · [CONTACT EMAIL] · [CONTACT PHONE]
//
// ⚠️  LAWYER REVIEW REQUIRED BEFORE PUBLISHING ⚠️
// The 2026-06-06 rewrite simplified §7 and §8 substantially. Key points
// needing legal verification BEFORE this goes live:
//   1. Terms §7 intro paragraph — the §19-1 immediate-service exemption is
//      now stated directly in plain language ("Once activated, the 7-day
//      cooling-off right does not apply") rather than via a dedicated
//      subsection. Verify this is prominent enough to constitute the
//      "explicit disclosure" §19-1 requires.
//   2. Terms §8 — refund eligibility now includes "you have not watched
//      videos of more than 3 helpers" as a 4th condition. This requires
//      backend to track per-user helper-video view counts — currently NOT
//      tracked (would be Tier 2 of dispute-defence per AGENTS.md
//      Contract #6). Without that tracking, this condition is enforceable
//      only via manual customer-service review.
//   3. Terms §8 dropped the explicit "First-charge only / auto-renewals
//      not refundable" subsection. The eligibility list says "first
//      subscription charge only" but it is less prominent than before.
//      Watch for user confusion when trying to refund a renewal.
//   4. Terms §8 dropped the explicit Chargeback policy subsection and the
//      "2 business day response" commitment. Less defensive language but
//      cleaner read.
//   5. Stripe Checkout consent (`consent_collection.terms_of_service:
//      'required'`) is still required per AGENTS.md Contract #7 — the
//      Stripe-side waiver wording also still needs to land.
//   6. Renewal reminder email (3 days before auto-renewal) is no longer
//      referenced in §7 or §8 but is still spec'd in AGENTS.md Contract
//      #7 and should still ship — it strengthens the "informed continuation"
//      argument for non-refundable renewals.
//   7. Privacy §3.2 / §4 / §7 — IP/user-agent collection for fraud
//      prevention needs explicit individual-notice basis under 個資法 §8.
//   8. Bump the ToS-version every substantive change; backend records
//      terms_accepted_at / terms_version per User and
//      terms_version_at_creation + cooling_off_waiver_at per Subscription
//      (DOMAIN_MODEL §4.1 / §4.11 v2.9+, Contract #6 + #7).
// ============================================================================

const LEGAL_CONTENT = {
  // ============================== ENGLISH ==============================
  en: {
    authoritativeNote: 'The English version of these documents is the authoritative text. Translations are provided for convenience; in case of inconsistency, the English version prevails.',

    privacy: {
      title: 'Privacy Policy',
      sections: [
        { heading: '1. Introduction', paragraphs: [
          'Helper321 ("we", "us", "our") operates the helper321.com website (the "Site") and provides services connecting employers with domestic helpers and employment agencies. This Privacy Policy describes how we collect, use, and disclose personal data when you use our Site.',
          'We are committed to protecting your personal data in accordance with applicable data-protection laws in the jurisdictions where we operate.',
          'By using the Site, you consent to the practices described in this Policy.',
        ]},
        { heading: '2. Definitions', paragraphs: [
          'In this Policy, the following terms apply:',
        ], list: [
          '"Helper321" / "we" / "us" / "our" means [COMPANY NAME].',
          '"Site" means the Helper321 website at helper321.com and any related subdomains.',
          '"Helper" means a user seeking employment as a domestic helper on the Site.',
          '"Employer" means a user who posts job advertisements or contacts Helpers on the Site.',
          '"Agency" means a user acting on behalf of a licensed employment agency.',
          '"Registered User" means any user who has created an account on the Site.',
          '"Personal data" means any information relating to an identified or identifiable individual.',
        ]},
        { heading: '3. Information We Collect', paragraphs: [
          '3.1 Information you provide to us:',
        ], list: [
          'Account information — email address and password, required to create and log into an account.',
          'Helper profile information — name, date of birth, gender, nationality, current city, photo, work experience, education, languages, skills, salary expectations, preferred accommodation, day-off preferences, available date, and an optional self-introduction video.',
          'Employer profile information — name, contact details, and details about the household for job postings (location, family composition, role requirements).',
          'Communications — messages exchanged through the Site\'s in-app messaging, job applications, content of support enquiries.',
        ], extraParagraphs: [
          '3.2 Information we collect automatically when you use the Site:',
        ], extraList: [
          'Authentication and session state stored in your browser (see our Cookie Policy).',
          'Basic device and browser metadata (browser type, language, screen size) for displaying the Site correctly.',
          'Last-active timestamps and aggregated event counts for security monitoring and product improvement.',
          'Authentication-event records — for every login attempt (success or failure), logout, and access-token refresh, we record a server-side log entry that includes the timestamp, your IP address (collected from your network connection), and your browser User-Agent string (truncated to 500 characters). These records are used for fraud prevention, security monitoring (for example, detecting brute-force attempts on accounts), and to defend against payment-card disputes initiated against us. We retain these records for at least 540 days (the maximum cardholder dispute window across the card networks we accept) before downgrading to aggregated retention. See Section 4 for the legal bases on which we use this information.',
        ], finalParagraphs: [
          '3.3 Information we do NOT collect:',
        ], finalList: [
          'If you choose Google sign-in, Google sends us your verified email address, name, and a Google account identifier so we can create or access your Helper321 account. We do not use Facebook or Apple Sign-in.',
          'We do not collect mobile-device advertising identifiers (IDFA / GAID) — Helper321 is a web product and does not display advertising.',
          'We do not embed third-party analytics SDKs (e.g., Google Analytics, Firebase Analytics) that profile you for advertising purposes.',
        ]},
        { heading: '4. How We Use Your Information', paragraphs: [
          'We use the information we collect for the following purposes:',
        ], list: [
          'To provide the services — matching Helpers with Employers, processing job applications, delivering messages.',
          'To operate, maintain, and improve the Site.',
          'To verify your identity as a Registered User and to protect against fraud, abuse, and security incidents.',
          'To defend against payment-card disputes and chargebacks. When a payment-card issuer initiates a dispute on a charge made through the Site, we may use authentication-event records (Section 3.2) and the service-usage information you generated during the relevant subscription period (job posts created, Helpers contacted, messages sent, sessions opened) as evidence in our response. This evidence may be shared with our payment processor (Stripe) and, via that processor, with the card networks and your issuing bank.',
          'To send service-related communications: account-verification emails, password resets, security alerts, and notices about your account, jobs, or applications. For paid subscribers, this includes renewal-related notices: receipts for each charge, advance notice of price changes (at least 30 days), and confirmation of cancellation.',
          'To send optional product updates or marketing communications, only where you have not opted out. Every marketing email contains an unsubscribe link.',
          'To comply with legal obligations and to respond to lawful requests from competent authorities.',
        ]},
        { heading: '5. How We Share Your Information', paragraphs: [
          '5.1 Profile visibility on the Site:',
        ], list: [
          'Helper profiles — once a Helper completes a profile and the profile has been approved, it becomes visible to other Registered Users (Employers and Agencies) on the Site. The publicly-visible parts of a Helper profile include name, photo, age, nationality, city, work experience, skills, and expectations. Contact details (email, phone) are NOT publicly displayed; communication takes place through the Site\'s in-app messaging.',
          'Employer job posts — once an Employer publishes a job, the listing is visible to logged-in Helpers. The Employer\'s personal name is not directly exposed in the public job listing; communication takes place through in-app messaging that the Employer initiates.',
        ], extraParagraphs: [
          '5.2 Other categories of recipients:',
        ], extraList: [
          'Agencies — a Helper may be contacted by Agencies who are also Registered Users. Agencies see the same publicly-visible profile information as Employers and use the same in-app messaging channel.',
          'Service providers — we use third-party infrastructure providers (hosting, transactional email delivery, payment processing where applicable) to operate the Site. These providers process data only as instructed and under written agreements that require appropriate security measures.',
          'Legal authorities — we may disclose information when required by valid legal process, to protect our legal rights, or to prevent imminent harm.',
        ], finalParagraphs: [
          '5.3 We do NOT sell your personal data to third parties.',
        ]},
        { heading: '6. International Data Transfer', paragraphs: [
          'The Site may be operated and maintained by service providers located in different jurisdictions. By using the Site, you consent to the transfer of your information across borders, including to jurisdictions whose data-protection laws may differ from those of your country of residence. We require providers to implement appropriate safeguards regardless of location.',
        ]},
        { heading: '7. Data Retention', paragraphs: [
          'We retain your account and profile information for as long as your account is active.',
          'You may delete your account at any time from your account settings. We will remove or anonymize your personal data within a reasonable period after deletion, except where retention is required by law (e.g., tax, accounting, or fraud-prevention records) or to defend against ongoing legal claims.',
          'Specific retention windows for categories where we retain data beyond the active life of your account:',
        ], list: [
          'Authentication-event records (Section 3.2) — retained for at least 540 calendar days in raw form, then downgraded to aggregated daily summaries. This 540-day floor matches the longest cardholder-dispute window across the card networks we accept and is required to mount evidence-based defences to chargebacks.',
          'Subscription and payment records — retained for at least 7 years to comply with tax and accounting obligations in the jurisdictions where we operate.',
          'Communications (in-app messages, support enquiries) — retained while your account is active, plus 2 years after deletion for evidentiary purposes in disputes or trust-and-safety investigations.',
        ]},
        { heading: '8. Your Rights', paragraphs: [
          'Subject to applicable data-protection law, you may have the right to:',
        ], list: [
          'access the personal data we hold about you,',
          'request correction of inaccurate information,',
          'request deletion of your data,',
          'object to or restrict certain types of processing,',
          'withdraw consent for optional processing (e.g., marketing emails) at any time, and',
          'lodge a complaint with the competent data-protection authority.',
        ], finalParagraphs: [
          'To exercise these rights, contact us using the details in Section 12. We may need to verify your identity before responding.',
        ]},
        { heading: '9. Security', paragraphs: [
          'We take reasonable technical and organizational measures to protect your personal data, including encryption in transit (HTTPS), hashed password storage, access controls on production systems, and routine security review.',
          'No method of internet transmission or electronic storage is completely secure. You play a role too: keep your password confidential, do not share account credentials, and notify us immediately if you suspect unauthorized access to your account.',
        ]},
        { heading: '10. Children\'s Privacy', paragraphs: [
          'The Site is not intended for use by individuals under the age of 18, and we do not knowingly collect personal data from anyone under 18. If you believe a child has provided us with personal data, please contact us so we can remove it.',
        ]},
        { heading: '11. Changes to this Policy', paragraphs: [
          'We may update this Policy from time to time to reflect changes to our services, technology, or legal requirements. The updated Policy will be posted on this page with a revised effective date. For material changes, we will provide additional notice (e.g., a banner on the Site or an email to Registered Users).',
        ]},
        { heading: '12. Contact Us', paragraphs: [
          'For questions about this Policy or to exercise your rights, contact us at:',
        ], list: [
          '[COMPANY NAME]',
          '[REGISTERED ADDRESS]',
          'Email: [CONTACT EMAIL]',
          'Phone: [CONTACT PHONE]',
        ]},
      ],
    },

    terms: {
      title: 'Terms and Conditions',
      sections: [
        { heading: '1. Acceptance of Terms', paragraphs: [
          'By accessing or using helper321.com (the "Site"), you agree to be bound by these Terms and Conditions ("Terms"). If you do not agree, please do not use the Site.',
          'You must be at least 18 years old — or the minimum age permitted by your local employment law to perform or hire domestic-helper work, whichever is higher — to use the Site.',
        ]},
        { heading: '2. Definitions', list: [
          '"Helper321" / "we" / "us" means [COMPANY NAME].',
          '"Site" means the Helper321 website at helper321.com.',
          '"Helper" means a user seeking employment as a domestic helper.',
          '"Employer" means a user who posts job advertisements or contacts Helpers.',
          '"Agency" means a user acting on behalf of a licensed employment agency.',
          '"User" means any individual or entity using the Site.',
        ]},
        { heading: '3. Nature of the Service', paragraphs: [
          'Helper321 is a platform that helps Employers and Helpers find one another and communicate. We facilitate introductions and messaging — we are NOT an employment agency, do not act as a recruiter, and do not prepare or process the legal paperwork required to employ a domestic helper.',
          'Any actual employment relationship is between the Employer and the Helper (and, where applicable, a licensed Agency). Users are solely responsible for complying with all employment, immigration, contract, tax, and wage laws applicable to their jurisdiction.',
        ]},
        { heading: '4. User Accounts and Responsibilities', paragraphs: [
          'You are responsible for keeping your account credentials confidential and for all activity that occurs under your account.',
          'You agree to provide accurate, current, and complete information when creating profiles and posts, and to keep that information updated.',
          'You must not impersonate another person, misrepresent your identity or qualifications, or post false or misleading information.',
        ]},
        { heading: '5. Permitted Use; Licence', paragraphs: [
          'Subject to these Terms, we grant you a limited, non-exclusive, non-transferable, revocable licence to access and use the Site for the personal, non-commercial purpose of finding employment as, or hiring, a domestic helper.',
          'You may NOT, without our prior written consent:',
        ], list: [
          'modify or copy materials from the Site beyond what is necessary for the permitted use;',
          'use the Site or its materials for any commercial purpose beyond the intended use of the service;',
          'attempt to decompile, reverse-engineer, or extract source code from any software on the Site;',
          'remove any copyright, trademark, or proprietary notices from materials on the Site;',
          'scrape, mirror, harvest, or extract data from the Site by automated means, or build any database from material on the Site;',
          'resell, sublicense, or redistribute access to the Site or its data.',
        ]},
        { heading: '6. Prohibited Conduct', paragraphs: [
          'You agree not to use the Site to:',
        ], list: [
          'harass, defraud, exploit, or harm other Users;',
          'advertise services unrelated to domestic-helper recruitment;',
          'use bots, scripts, screen-scrapers, or other automated tools to access the Site or extract data;',
          'transmit malware, spam, or other harmful content;',
          'violate any applicable law or regulation.',
        ], finalParagraphs: [
          'Agencies must not register as Employers or Helpers, contact Helpers other than through the Site\'s intended channels, or use the Site\'s contents to build a competing database, in each case without our prior written permission.',
          'Violations may result in immediate account suspension or termination and, where appropriate, legal action.',
        ]},
        { heading: '7. Subscriptions and Fees', paragraphs: [
          'Helpers use Helper321 free. Employers and agencies need a paid subscription to contact helpers, post jobs, and watch skill videos.',
          'You agree and understand that, in accordance with the Taiwan Consumer Protection Act, Helper321 is an online digital service that is activated and delivered immediately upon subscription. Once activated, the 7-day cooling-off right under the Consumer Protection Act does not apply. As consumer protection, we provide a discretionary 7-day refund window on your first charge — see Section 8 for details.',
        ], sub: [
          { heading: 'Plans and pricing', paragraphs: [
            'Current plans, their prices, and their billing-cycle lengths (for example, Standard at NT$990 per 7 days, or Premium at NT$1,490 per 2 months) are shown on the Pricing page and at checkout.',
          ]},
          { heading: 'Auto-renewal', paragraphs: [
            'Paid plans renew automatically at the end of each billing cycle. By clicking Subscribe at checkout, you authorise Helper321 to charge your saved payment method through Stripe each cycle until you cancel.',
          ]},
          { heading: 'Failed payments', paragraphs: [
            'If a renewal payment fails, Stripe retries on its own schedule for about three weeks. Access may be restricted during this period. If all retries fail, the subscription cancels automatically; you can resubscribe anytime.',
          ]},
          { heading: 'Price changes', paragraphs: [
            'We will email you at least 30 days before any price change takes effect on your plan. New prices apply only to renewals on or after that date.',
          ]},
        ]},
        { heading: '8. Refund Policy', paragraphs: [
          'If you change your mind in your first 7 days and have not really used the platform yet, we can help with a refund.',
        ], sub: [
          { heading: 'Eligibility', paragraphs: [
            'A full refund is available on your first subscription charge only, if you meet ALL of the following:',
          ], list: [
            'Your request reaches us within 7 days of that first charge.',
            'You have not contacted any helpers.',
            'You have not watched videos of more than 3 helpers.',
            'You have not posted any jobs.',
          ]},
          { heading: 'Time frame', paragraphs: [
            '7 days from the date of your first subscription charge.',
          ]},
          { heading: 'Requesting a refund', paragraphs: [
            'Email [CONTACT EMAIL] (or use our Contact page at /contact) with the email address on your Helper321 account and the date of the first charge.',
          ]},
          { heading: 'Refund processing', paragraphs: [
            'Once approved, refunds go back to your original payment method within 5 to 10 business days. Exact timing depends on your bank.',
          ]},
          { heading: 'Need help?', paragraphs: [
            'Email [CONTACT EMAIL] or use our Contact page. We are here to help.',
          ]},
        ]},
        { heading: '9. Disclaimer', paragraphs: [
          'The Site and all content are provided "AS IS" and "AS AVAILABLE", without warranty of any kind, express or implied, including warranties of merchantability, fitness for a particular purpose, or non-infringement.',
          'We do not warrant the accuracy or completeness of user-generated content — profiles, job posts, messages, photos, videos. Employers, Helpers, and Agencies are solely responsible for verifying any information that is material to their decisions.',
          'We are not responsible for the conduct of any User, the outcome of any interaction between Users, or any contract, arrangement, or transaction between Users.',
          'If you engage a licensed Agency you discovered on the Site, you do so at your own risk. Verify the Agency\'s licence with the competent authority and request all mandatory documents before entering into any agreement.',
        ]},
        { heading: '10. Limitation of Liability', paragraphs: [
          'To the maximum extent permitted by law, Helper321 and its suppliers shall not be liable for any indirect, incidental, special, consequential, exemplary, or punitive damages, or any loss of profits, revenue, data, or goodwill, arising out of or related to your use of (or inability to use) the Site, even if we have been advised of the possibility of such damages.',
          'Our total aggregate liability for any claim relating to the Site shall not exceed the amount you paid us for the Site in the 12 months preceding the claim, or US$30 (or its equivalent in local currency), whichever is greater.',
        ]},
        { heading: '11. Modifications and Errors', paragraphs: [
          'The Site may contain technical, typographical, or photographic errors. We do not warrant that any material on the Site is accurate, complete, or current, and we may make changes to the Site at any time without notice. We are under no obligation to update materials.',
        ]},
        { heading: '12. Third-Party Links', paragraphs: [
          'The Site may contain links to third-party websites. We have not reviewed all linked sites and are not responsible for their content or practices. The inclusion of a link does not imply our endorsement. Use of any linked site is at your own risk.',
        ]},
        { heading: '13. Termination', paragraphs: [
          'We may suspend or terminate your account at any time for violation of these Terms, suspected fraudulent activity, or any conduct that we determine to be harmful to other Users or to the Site. Upon termination, your right to use the Site ends. Provisions that by their nature should survive (e.g., disclaimers, limitations of liability, governing-law clauses) shall survive termination.',
        ]},
        { heading: '14. Changes to These Terms', paragraphs: [
          'We may revise these Terms at any time. The revised Terms will be posted on this page with an updated effective date. Your continued use of the Site after a revision takes effect constitutes acceptance of the revised Terms.',
          'For substantive changes (for example, to Section 7 Subscriptions or Section 8 Refund Policy), we will additionally notify registered users by email at least 30 days before the changes take effect and, on next sign-in after the effective date, prompt you to re-confirm acceptance. Until you re-confirm acceptance, certain features (such as initiating a new subscription or contacting Helpers) may be restricted.',
        ]},
        { heading: '15. Governing Law and Disputes', paragraphs: [
          'These Terms are governed by the applicable laws of the jurisdiction in which Helper321 is established, without regard to conflict-of-laws principles.',
          'Any dispute arising out of or relating to these Terms or the Site shall first be addressed through good-faith negotiation between the parties. Failing resolution, disputes shall be submitted to the courts of competent jurisdiction in the location where Helper321 is established.',
          'The English version of these Terms is authoritative; in case of any inconsistency between the English version and any translated version, the English version shall prevail.',
        ]},
        { heading: '16. Contact', list: [
          '[COMPANY NAME]',
          '[REGISTERED ADDRESS]',
          'Email: [CONTACT EMAIL]',
          'Phone: [CONTACT PHONE]',
        ]},
      ],
    },

    cookies: {
      title: 'Cookie Policy',
      sections: [
        { heading: '1. What this Policy Covers', paragraphs: [
          'This Cookie Policy explains how Helper321 uses cookies and similar browser-storage technologies (collectively, "cookies") on helper321.com (the "Site"). It supplements our Privacy Policy.',
        ]},
        { heading: '2. What are cookies?', paragraphs: [
          'Cookies are small data files stored by your browser on your device. We also use related browser-storage technologies such as localStorage, which works similarly to cookies but is not transmitted to our servers on every request. Throughout this Policy, "cookies" includes both classic cookies and localStorage.',
        ]},
        { heading: '3. Cookies We Use', paragraphs: [
          '3.1 Strictly necessary — required for the Site to function:',
        ], list: [
          'Session and authentication tokens (e.g., hm_access_token, hm_auth_user) — keep you logged in so you can post jobs, send messages, and use other authenticated features.',
          'Route and draft state (e.g., hm-route, hm_resume_draft, hm_resume_progress) — remember the page you were on and any unsaved draft work so you don\'t lose state on a refresh.',
          'Account-status flags (e.g., hm_review_status, hm_account_status, hm_review_reject_reason) — used to display the correct banners and access gates for your account state.',
          'Session cookies set by our backend infrastructure for secure session management (e.g., httpOnly refresh-token cookies).',
        ], extraParagraphs: [
          '3.2 We do NOT use:',
        ], extraList: [
          'Third-party advertising cookies.',
          'Cross-site tracking pixels.',
          'Mobile-device advertising identifiers (IDFA / GAID).',
          'Third-party analytics SDKs that profile you for advertising (e.g., Google Analytics, Firebase Analytics, Mixpanel).',
        ]},
        { heading: '4. How long do cookies last?', paragraphs: [
          'Session cookies are cleared automatically when you close your browser.',
          'Persistent cookies and localStorage entries remain until they expire or you clear them. Our persistent entries generally last between 24 hours and 12 months depending on purpose.',
        ]},
        { heading: '5. Managing Cookies', paragraphs: [
          'Most browsers let you control cookies via their settings — block all, allow selectively, or clear what is stored. Note: disabling our strictly-necessary cookies will prevent you from logging in or using authenticated parts of the Site.',
        ], list: [
          'Chrome: Settings → Privacy and security → Cookies and other site data',
          'Firefox: Settings → Privacy & Security → Cookies and Site Data',
          'Safari: Settings → Privacy → Manage Website Data',
          'Edge: Settings → Cookies and site permissions → Manage and delete cookies and site data',
        ], finalParagraphs: [
          'You can also clear browser localStorage from the same settings (usually under "Site data" or "Clear browsing data").',
        ]},
        { heading: '6. Changes to this Policy', paragraphs: [
          'We may update this Policy as the Site evolves. The revised version will be posted on this page with a new effective date.',
        ]},
        { heading: '7. Contact', list: [
          '[COMPANY NAME]',
          '[REGISTERED ADDRESS]',
          'Email: [CONTACT EMAIL]',
          'Phone: [CONTACT PHONE]',
        ]},
      ],
    },
  },

  // ============================== 繁體中文 ==============================
  'zh-TW': {
    authoritativeNote: '本文件以英文版為正式版本；翻譯版本僅供參考。如有任何不一致之處，以英文版為準。',

    privacy: {
      title: '隱私政策',
      sections: [
        { heading: '1. 前言', paragraphs: [
          'Helper321（「我們」）營運 helper321.com 網站（「本站」），為雇主與家事移工、就業仲介之間提供媒合服務。本隱私政策說明您使用本站時，我們如何蒐集、使用及揭露您的個人資料。',
          '我們依據本站營運所在地之適用個人資料保護法令保護您的個人資料。',
          '當您使用本站，即視為同意本政策所述之資料處理方式。',
        ]},
        { heading: '2. 名詞定義', paragraphs: [
          '本政策中下列名詞具有以下意義：',
        ], list: [
          '「Helper321」「我們」：指 [COMPANY NAME]。',
          '「本站」：指 helper321.com 網站及其相關子網域。',
          '「移工」：指於本站尋找家事工作機會之使用者。',
          '「雇主」：指於本站發布職缺或聯繫移工之使用者。',
          '「仲介」：指代表合法登記之就業仲介於本站活動之使用者。',
          '「註冊使用者」：指於本站建立帳號之使用者。',
          '「個人資料」：指任何可直接或間接識別特定自然人之資訊。',
        ]},
        { heading: '3. 我們蒐集的資料', paragraphs: [
          '3.1 您主動提供給我們的資料：',
        ], list: [
          '帳號資料：電子郵件地址、密碼（建立及登入帳號之必要資料）。',
          '移工履歷資料：姓名、生日、性別、國籍、所在城市、照片、工作經歷、學歷、語言能力、技能、期望薪資、住宿偏好、休假偏好、可上工日期，以及自我介紹影片（選填）。',
          '雇主資料：姓名、聯絡方式，以及刊登職缺所需之家庭資訊（位置、家庭成員、職務需求）。',
          '通訊內容：透過本站站內訊息傳送之訊息、職缺申請、客服諮詢內容。',
        ], extraParagraphs: [
          '3.2 您使用本站時我們自動蒐集的資料：',
        ], extraList: [
          '儲存於您瀏覽器之登入及工作階段狀態（詳見《Cookie 政策》）。',
          '基本裝置與瀏覽器資訊（瀏覽器類型、語言、螢幕大小），用於正確顯示本站。',
          '最後登入時間與彙總事件次數，用於資安監控與產品改善。',
          '認證事件紀錄：每次登入嘗試（成功或失敗）、登出、access token 更新時，我們會在伺服器端記錄一筆 log，內容包含時間戳、您的 IP 位址（從網路連線取得）、瀏覽器 User-Agent 字串（截斷至 500 字元）。此紀錄用於防範詐欺、資安監控（例如偵測帳號的暴力破解嘗試）、以及在我們收到信用卡爭議（dispute / chargeback）時提出舉證抗辯。本紀錄至少保存 540 個曆日（我們所接受之發卡組織中最長的爭議窗口期），之後降頻為彙總保存。本資料之使用法律基礎詳見第 4 條。',
        ], finalParagraphs: [
          '3.3 我們不蒐集的資料：',
        ], finalList: [
          '若您選擇使用 Google 登入，Google 會提供您的已驗證電子郵件地址、姓名與 Google 帳號識別碼，以便我們建立或存取您的 Helper321 帳號。我們不使用 Facebook 或 Apple Sign-in。',
          '我們不蒐集行動裝置廣告識別碼（IDFA / GAID）—— 本站為網頁產品，不顯示廣告。',
          '我們不嵌入會基於廣告目的對您建立檔案的第三方分析 SDK（如 Google Analytics、Firebase Analytics）。',
        ]},
        { heading: '4. 我們如何使用您的資料', paragraphs: [
          '我們將蒐集之資料用於以下目的：',
        ], list: [
          '提供本站服務：為移工與雇主提供媒合、處理職缺申請、傳遞訊息。',
          '營運、維護及改善本站。',
          '驗證您作為註冊使用者之身分，並防範詐欺、濫用及資安事件。',
          '抗辯信用卡爭議與 chargeback：當發卡機構就您透過本站發生之扣款提起爭議時，我們可能使用第 3.2 條所述之認證事件紀錄，以及您於相關訂閱週期內所產生之服務使用資料（刊登職缺、聯絡移工、傳送訊息、登入工作階段）作為抗辯證據。該等證據可能與我們的金流服務商（Stripe）分享，並透過該服務商提供予發卡組織與您的發卡銀行。',
          '寄送服務相關通知：帳號驗證信、密碼重設信、資安警示，以及關於您帳號、職缺或申請之重要通知。針對付費訂閱者，另包含續訂相關通知：每次扣款收據、價格變動之事前通知（至少 30 天）、取消確認。',
          '寄送選擇性之產品更新或行銷訊息（前提是您未取消訂閱）。每封行銷郵件皆包含取消訂閱連結。',
          '履行法律義務並回應主管機關之合法要求。',
        ]},
        { heading: '5. 我們如何揭露您的資料', paragraphs: [
          '5.1 履歷與職缺於本站之公開範圍：',
        ], list: [
          '移工履歷：當移工完成履歷且通過審核後，履歷將對本站之其他註冊使用者（雇主與仲介）公開可見。公開的履歷欄位包含姓名、照片、年齡、國籍、所在城市、工作經歷、技能與期望條件。**聯絡方式（email、電話）不會公開**，溝通一律透過本站站內訊息進行。',
          '雇主職缺：當雇主刊登職缺後，職缺將對已登入之移工公開可見。雇主之個人姓名不會直接於職缺中揭露；溝通透過站內訊息進行，由雇主主動發起。',
        ], extraParagraphs: [
          '5.2 其他資料接收對象：',
        ], extraList: [
          '仲介：移工可能會被同為本站註冊使用者之仲介聯繫。仲介看到的公開資訊與雇主相同，亦使用相同之站內訊息管道。',
          '服務供應商：我們使用第三方基礎設施服務商（如主機代管、交易電子郵件寄送、付款處理）營運本站。這些服務商僅依我們指示處理資料，並依書面協議實施適當安全措施。',
          '法律主管機關：基於合法法律程序、保護我們之合法權益或防止迫切損害時，我們可能揭露相關資料。',
        ], finalParagraphs: [
          '5.3 我們**不會**將您的個人資料出售予第三方。',
        ]},
        { heading: '6. 跨境資料傳輸', paragraphs: [
          '本站可能由位於不同司法管轄區之服務供應商營運及維護。當您使用本站，即同意您的資料可能被跨境傳輸，包含傳輸至資料保護法律與您所在地不同之地區。我們會要求服務商不論所在地皆採取適當保護措施。',
        ]},
        { heading: '7. 資料保存期限', paragraphs: [
          '只要您的帳號處於使用中狀態，我們即保存您的帳號與履歷資料。',
          '您可隨時自帳號設定刪除帳號。刪除後，我們將於合理期間內刪除或匿名化您的個人資料；但依法律要求需保留之資料（如稅務、會計、防詐紀錄）或為抗辯訴訟所需之資料除外。',
          '本站於帳號使用期間之外仍保存之資料類別具體保存期間如下：',
        ], list: [
          '認證事件紀錄（第 3.2 條）—— raw 紀錄至少保存 540 個曆日，之後降頻為每日彙總紀錄。540 天底線對應我們所接受之發卡組織中最長的爭議窗口期，為信用卡爭議抗辯所必需。',
          '訂閱與付款紀錄 —— 為符合營運所在地之稅務與會計義務，至少保存 7 年。',
          '通訊紀錄（站內訊息、客服諮詢）—— 帳號使用期間全程保存；帳號刪除後另保存 2 年，用於爭議或信任安全調查之舉證。',
        ]},
        { heading: '8. 您的權利', paragraphs: [
          '依據適用之個人資料保護法令，您可能享有以下權利：',
        ], list: [
          '查詢及請求閱覽您的個人資料；',
          '請求製給複製本；',
          '請求補充或更正不正確之資料；',
          '請求停止蒐集、處理或利用您的資料；',
          '請求刪除您的資料；',
          '隨時撤回選擇性處理（如行銷訊息）之同意；',
          '向主管機關申訴。',
        ], finalParagraphs: [
          '請透過第 12 條所列方式聯繫我們行使上述權利。為確保資料安全，我們可能於回應前先驗證您的身分。',
        ]},
        { heading: '9. 安全措施', paragraphs: [
          '我們採取合理之技術與組織措施保護您的個人資料，包含傳輸加密（HTTPS）、密碼雜湊儲存、生產系統存取控制及定期安全檢核。',
          '網際網路傳輸與電子儲存皆無法保證 100% 安全。您也扮演重要角色：請妥善保管密碼、勿與他人分享帳號資料，若發現帳號疑似被未經授權存取，請立即通知我們。',
        ]},
        { heading: '10. 兒童隱私', paragraphs: [
          '本站並非設計給 18 歲以下使用者使用，我們亦不會明知而蒐集 18 歲以下兒童之個人資料。如您認為有兒童向我們提供個人資料，請聯繫我們以利刪除。',
        ]},
        { heading: '11. 政策變更', paragraphs: [
          '本政策可能隨服務、技術或法規調整而更新。更新後之版本將公告於本頁面並附上新的生效日期。如為重大變更，我們會額外通知（如於本站顯示橫幅或寄發電子郵件給註冊使用者）。',
        ]},
        { heading: '12. 聯絡我們', paragraphs: [
          '如對本政策有任何疑問或欲行使您的權利，請聯繫：',
        ], list: [
          '[COMPANY NAME]',
          '[REGISTERED ADDRESS]',
          'Email：[CONTACT EMAIL]',
          '電話：[CONTACT PHONE]',
        ]},
      ],
    },

    terms: {
      title: '使用條款',
      sections: [
        { heading: '1. 條款之接受', paragraphs: [
          '當您存取或使用 helper321.com（「本站」），即同意受本使用條款（「本條款」）約束。如不同意，請勿使用本站。',
          '您必須年滿 18 歲，或達您所在地法律允許從事或聘僱家事工作之最低年齡（取較高者），始得使用本站。',
        ]},
        { heading: '2. 名詞定義', list: [
          '「Helper321」「我們」：指 [COMPANY NAME]。',
          '「本站」：指 helper321.com 網站。',
          '「移工」：指尋找家事工作機會之使用者。',
          '「雇主」：指刊登職缺或聯繫移工之使用者。',
          '「仲介」：指代表合法登記之就業仲介之使用者。',
          '「使用者」：指任何使用本站之個人或實體。',
        ]},
        { heading: '3. 服務性質', paragraphs: [
          'Helper321 為協助雇主與移工互相尋找並進行溝通之平台。我們促成介紹與訊息溝通 —— 我們**並非就業仲介**，不擔任招募者，也不準備或處理聘僱家事移工所需之法律文件。',
          '實際之僱傭關係存在於雇主與移工之間（如涉及仲介則包含仲介在內）。使用者應自行遵守所在地之勞動、移民、契約、稅務及工資相關法律。',
        ]},
        { heading: '4. 帳號與使用者責任', paragraphs: [
          '您應妥善保管帳號憑證之機密性，並就所有發生於您帳號下之行為負責。',
          '建立履歷與職缺時，您應提供正確、最新且完整之資訊，並隨時更新。',
          '您不得冒充他人、虛偽陳述身分或資歷，或刊登不實或誤導性資訊。',
        ]},
        { heading: '5. 授權使用', paragraphs: [
          '依本條款規定，我們授予您有限、非專屬、不可轉讓、可撤回之授權，僅供您為尋找家事工作或聘僱家事移工之個人非商業目的使用本站。',
          '未經我們事前書面同意，您不得：',
        ], list: [
          '超越使用所必要之範圍修改或複製本站內容；',
          '將本站或其內容用於使用目的以外之商業用途；',
          '反編譯、反向工程或擷取本站任何軟體之原始碼；',
          '移除本站內容上之著作權、商標或所有權聲明；',
          '以自動化方式擷取、鏡像、收割或抽取本站資料，或基於本站內容建立任何資料庫；',
          '轉售、再授權或重新散布本站或其資料之存取。',
        ]},
        { heading: '6. 禁止行為', paragraphs: [
          '您同意不得利用本站從事下列行為：',
        ], list: [
          '騷擾、詐欺、剝削或傷害其他使用者；',
          '推銷與家事移工招募無關之服務；',
          '使用機器人、腳本、爬蟲或其他自動化工具存取本站或抽取資料；',
          '傳送惡意程式、垃圾訊息或其他有害內容；',
          '違反任何適用法律或規定。',
        ], finalParagraphs: [
          '未經我們事前書面同意，仲介不得註冊為雇主或移工身分、以本站預設管道以外之方式聯繫移工，或利用本站內容建立競爭性資料庫。',
          '違反者，我們得立即暫停或終止其帳號，並於必要時採取法律行動。',
        ]},
        { heading: '7. 訂閱與費用', paragraphs: [
          '移工可免費使用 Helper321。雇主與仲介需要付費訂閱才能聯絡家事移工、刊登職缺與觀看技能影片。',
          '您同意並理解，依消費者保護法規定，Helper321 為線上數位服務，於訂閱完成後立即開通並提供。服務經開通後即不適用消保法 7 日解除權。作為對於消費者的保護，我們對於首次扣款後提供 7 日酌情退款窗口——詳情請參照第 8 點退款政策。',
        ], sub: [
          { heading: '方案與價格', paragraphs: [
            '目前提供之方案、價格與計費週期長度（例如標準方案 NT$990 / 7 天、進階方案 NT$1,490 / 2 個月）顯示於定價頁與結帳頁面。',
          ]},
          { heading: '自動續訂', paragraphs: [
            '付費方案會於每個計費週期結束時自動續訂。在結帳頁點選「訂閱」即表示授權 Helper321 透過 Stripe 於每個週期向你儲存的付款方式扣款，直到你取消為止。',
          ]},
          { heading: '扣款失敗', paragraphs: [
            '若續訂扣款失敗，Stripe 會依其重試排程嘗試約三週。此期間存取權限可能受限。若所有重試皆失敗，訂閱會自動取消；你隨時可以再次訂閱。',
          ]},
          { heading: '價格調整', paragraphs: [
            '價格如有調整，我們會於生效前至少 30 天以 email 通知。新價格僅適用於該日期當日或之後的續訂。',
          ]},
        ]},
        { heading: '8. 退款政策', paragraphs: [
          '若你在前 7 天內改變主意、而且還沒實質使用平台，我們可協助退款。',
        ], sub: [
          { heading: '退款條件', paragraphs: [
            '僅限首次訂閱扣款，同時符合以下所有條件才能全額退款：',
          ], list: [
            '退款申請於首次扣款後 7 天內提出。',
            '你尚未聯絡過任何家事移工。',
            '你尚未看過超過 3 名家事移工的影片。',
            '你尚未刊登任何職缺。',
          ]},
          { heading: '時間限制', paragraphs: [
            '從首次訂閱扣款日起算 7 天。',
          ]},
          { heading: '申請方式', paragraphs: [
            '寄信至 [CONTACT EMAIL]（或透過聯絡頁面 /contact）並附上你 Helper321 帳號的 email 與首次扣款的日期。',
          ]},
          { heading: '退款處理', paragraphs: [
            '核准後，退款將循原付款方式於 5 至 10 個工作日內退回。實際到帳時間視你的發卡銀行而定。',
          ]},
          { heading: '需要協助？', paragraphs: [
            '寄信至 [CONTACT EMAIL] 或使用我們的聯絡頁面，我們會盡力協助你。',
          ]},
        ]},
        { heading: '9. 免責聲明', paragraphs: [
          '本站及其所有內容係依「現狀」及「現有」基礎提供，不附帶任何明示或默示之擔保，包括但不限於可商品性、特定用途適合性或不侵權之擔保。',
          '我們不擔保使用者產生內容（履歷、職缺、訊息、照片、影片）之正確性或完整性。雇主、移工及仲介應自行驗證其決策所需之重要資訊。',
          '我們不對任何使用者之行為、使用者間互動之結果，或使用者間之任何契約、安排或交易負責。',
          '若您決定聘用您於本站發現之合法仲介，風險由您自行承擔。締約前請向主管機關查證其執照並要求所有必要文件。',
        ]},
        { heading: '10. 責任限制', paragraphs: [
          '在法律允許之最大範圍內，Helper321 及其供應商對於因您使用（或無法使用）本站所產生之任何間接、附隨、特殊、衍生、懲罰性損害，或任何利潤、收入、資料、商譽之損失，概不負責，即使已被告知該等損害發生之可能性亦然。',
          '對於與本站相關之任何請求，我們之累計責任上限為您於請求發生前 12 個月內為使用本站所支付予我們之金額或美金 30 元（或等值當地貨幣）（以較高者為準）。',
        ]},
        { heading: '11. 修改與錯誤', paragraphs: [
          '本站內容可能包含技術性、字體或圖片錯誤。我們不擔保本站任何內容之正確性、完整性或時效性，並得隨時不經通知變更本站內容。我們無更新內容之義務。',
        ]},
        { heading: '12. 第三方連結', paragraphs: [
          '本站可能包含通往第三方網站之連結。我們未檢閱所有連結網站，亦不對其內容或實務負責。連結之存在不構成我們之背書。使用任何連結網站之風險由您自行承擔。',
        ]},
        { heading: '13. 終止', paragraphs: [
          '我們得隨時因您違反本條款、疑似詐欺活動或任何我們認定對其他使用者或本站有害之行為，暫停或終止您的帳號。終止後，您使用本站之權利即告結束。依其性質應繼續存續之條款（如免責、責任限制、準據法）於終止後繼續有效。',
        ]},
        { heading: '14. 條款變更', paragraphs: [
          '我們得隨時修訂本條款。修訂後之條款將公告於本頁面並附上新的生效日期。您於修訂生效後繼續使用本站，即視為接受修訂後之條款。',
          '就重大變更（例如第 7 條訂閱或第 8 條退款政策），我們將另以電子郵件通知註冊使用者於變更生效前至少 30 天，並於生效後您下次登入時提示您再次確認接受。在您再次確認前，部分功能（例如建立新訂閱或聯絡移工）可能受限。',
        ]},
        { heading: '15. 準據法與爭議解決', paragraphs: [
          '本條款依 Helper321 設立所在地之適用法律解釋之，並排除其法律衝突原則之適用。',
          '因本條款或本站所生之任何爭議，雙方應先以善意協商方式處理；協商不成時，提交 Helper321 設立所在地具管轄權之法院解決。',
          '本條款以英文版為正式版本；如英文版與翻譯版本不一致，以英文版為準。',
        ]},
        { heading: '16. 聯絡', list: [
          '[COMPANY NAME]',
          '[REGISTERED ADDRESS]',
          'Email：[CONTACT EMAIL]',
          '電話：[CONTACT PHONE]',
        ]},
      ],
    },

    cookies: {
      title: 'Cookie 政策',
      sections: [
        { heading: '1. 政策範圍', paragraphs: [
          '本 Cookie 政策說明 Helper321 於 helper321.com（「本站」）如何使用 cookies 及類似之瀏覽器儲存技術（合稱「cookies」）。本政策為《隱私政策》之補充。',
        ]},
        { heading: '2. 什麼是 cookies？', paragraphs: [
          'Cookies 是您的瀏覽器儲存於您裝置上之小型資料檔。我們也使用相關之瀏覽器儲存技術（如 localStorage），其運作方式與 cookies 類似，但不會於每次請求時傳輸至我們的伺服器。本政策中「cookies」一詞涵蓋傳統 cookies 與 localStorage。',
        ]},
        { heading: '3. 我們使用的 Cookies', paragraphs: [
          '3.1 嚴格必要 —— 本站運作所必需：',
        ], list: [
          '工作階段與身分驗證 token（如 hm_access_token、hm_auth_user）—— 維持您的登入狀態，使您能刊登職缺、傳送訊息及使用其他需登入之功能。',
          '路由與草稿狀態（如 hm-route、hm_resume_draft、hm_resume_progress）—— 記住您所在頁面與未儲存之草稿，避免重新整理後遺失狀態。',
          '帳號狀態旗標（如 hm_review_status、hm_account_status、hm_review_reject_reason）—— 用於顯示對應您帳號狀態之橫幅與存取管制。',
          '我們後端基礎設施為安全工作階段管理所設定之 cookies（如 httpOnly 之 refresh-token cookie）。',
        ], extraParagraphs: [
          '3.2 我們**不**使用：',
        ], extraList: [
          '第三方廣告 cookies。',
          '跨網站追蹤像素。',
          '行動裝置廣告識別碼（IDFA / GAID）。',
          '會基於廣告目的對您建立檔案之第三方分析 SDK（如 Google Analytics、Firebase Analytics、Mixpanel）。',
        ]},
        { heading: '4. Cookies 保存期限', paragraphs: [
          '工作階段 cookies 會於您關閉瀏覽器時自動清除。',
          '持續性 cookies 與 localStorage 項目會保留至到期或被您清除為止。本站之持續性項目視用途不同，通常保存 24 小時至 12 個月不等。',
        ]},
        { heading: '5. 管理 Cookies', paragraphs: [
          '多數瀏覽器允許您透過設定管理 cookies —— 全部封鎖、選擇性允許或清除已儲存之資料。請注意：停用我們的嚴格必要 cookies 將導致您無法登入或使用本站需登入之功能。',
        ], list: [
          'Chrome：設定 → 隱私權與安全性 → Cookie 和其他網站資料',
          'Firefox：設定 → 隱私權與安全性 → Cookie 與網站資料',
          'Safari：偏好設定 → 隱私權 → 管理網站資料',
          'Edge：設定 → Cookie 和網站權限 → 管理和刪除 Cookie 和網站資料',
        ], finalParagraphs: [
          '您亦可從相同設定處清除瀏覽器之 localStorage（通常位於「網站資料」或「清除瀏覽資料」項下）。',
        ]},
        { heading: '6. 政策變更', paragraphs: [
          '本政策可能隨本站演進而更新。更新後之版本將公告於本頁面並附上新的生效日期。',
        ]},
        { heading: '7. 聯絡', list: [
          '[COMPANY NAME]',
          '[REGISTERED ADDRESS]',
          'Email：[CONTACT EMAIL]',
          '電話：[CONTACT PHONE]',
        ]},
      ],
    },
  },

  // ============================== BAHASA INDONESIA ==============================
  id: {
    authoritativeNote: 'Versi bahasa Inggris dari dokumen ini adalah teks resmi. Terjemahan disediakan untuk kemudahan; jika terjadi perbedaan, versi bahasa Inggris yang berlaku.',

    privacy: {
      title: 'Kebijakan Privasi',
      sections: [
        { heading: '1. Pendahuluan', paragraphs: [
          'Helper321 ("kami") mengoperasikan situs web helper321.com ("Situs") dan menyediakan layanan yang menghubungkan pemberi kerja dengan pengasuh rumah tangga dan agen tenaga kerja. Kebijakan Privasi ini menjelaskan bagaimana kami mengumpulkan, menggunakan, dan mengungkapkan data pribadi saat Anda menggunakan Situs kami.',
          'Kami berkomitmen melindungi data pribadi Anda sesuai dengan undang-undang perlindungan data pribadi yang berlaku di yurisdiksi tempat kami beroperasi.',
          'Dengan menggunakan Situs, Anda menyetujui praktik yang dijelaskan dalam Kebijakan ini.',
        ]},
        { heading: '2. Definisi', paragraphs: [
          'Dalam Kebijakan ini, istilah berikut berlaku:',
        ], list: [
          '"Helper321" / "kami" berarti [COMPANY NAME].',
          '"Situs" berarti situs web Helper321 di helper321.com dan subdomain terkait.',
          '"Pengasuh" berarti pengguna yang mencari pekerjaan sebagai pengasuh rumah tangga di Situs.',
          '"Pemberi Kerja" berarti pengguna yang memasang iklan lowongan atau menghubungi Pengasuh di Situs.',
          '"Agen" berarti pengguna yang bertindak atas nama agen tenaga kerja yang berlisensi.',
          '"Pengguna Terdaftar" berarti pengguna yang telah membuat akun di Situs.',
          '"Data pribadi" berarti informasi apa pun yang berkaitan dengan individu yang teridentifikasi atau dapat diidentifikasi.',
        ]},
        { heading: '3. Data yang Kami Kumpulkan', paragraphs: [
          '3.1 Data yang Anda berikan kepada kami:',
        ], list: [
          'Informasi akun — alamat email dan kata sandi, diperlukan untuk membuat dan masuk ke akun.',
          'Informasi profil Pengasuh — nama, tanggal lahir, jenis kelamin, kebangsaan, kota saat ini, foto, pengalaman kerja, pendidikan, kemampuan bahasa, keterampilan, ekspektasi gaji, preferensi akomodasi, preferensi hari libur, tanggal mulai tersedia, dan video perkenalan diri (opsional).',
          'Informasi profil Pemberi Kerja — nama, detail kontak, dan detail rumah tangga untuk lowongan pekerjaan (lokasi, komposisi keluarga, persyaratan peran).',
          'Komunikasi — pesan yang dipertukarkan melalui pesan dalam aplikasi Situs, lamaran pekerjaan, isi pertanyaan layanan pelanggan.',
        ], extraParagraphs: [
          '3.2 Data yang kami kumpulkan secara otomatis saat Anda menggunakan Situs:',
        ], extraList: [
          'Status autentikasi dan sesi yang disimpan di peramban Anda (lihat Kebijakan Cookie kami).',
          'Metadata dasar perangkat dan peramban (jenis peramban, bahasa, ukuran layar) untuk menampilkan Situs dengan benar.',
          'Stempel waktu aktivitas terakhir dan jumlah peristiwa agregat untuk pemantauan keamanan dan peningkatan produk.',
          'Catatan peristiwa autentikasi — untuk setiap upaya masuk (berhasil atau gagal), keluar, dan pembaruan token akses, kami mencatat entri log di sisi server yang mencakup stempel waktu, alamat IP Anda (dikumpulkan dari koneksi jaringan Anda), dan string User-Agent peramban Anda (dipotong hingga 500 karakter). Catatan ini digunakan untuk pencegahan penipuan, pemantauan keamanan (misalnya, mendeteksi upaya brute-force pada akun), dan untuk membela diri terhadap sengketa kartu pembayaran yang diajukan terhadap kami. Kami menyimpan catatan ini setidaknya selama 540 hari (jendela sengketa pemegang kartu maksimum di seluruh jaringan kartu yang kami terima) sebelum diturunkan ke retensi agregat. Lihat Bagian 4 untuk dasar hukum di mana kami menggunakan informasi ini.',
        ], finalParagraphs: [
          '3.3 Data yang TIDAK kami kumpulkan:',
        ], finalList: [
          'Jika Anda memilih masuk dengan Google, Google mengirimkan alamat email terverifikasi, nama, dan pengenal akun Google Anda agar kami dapat membuat atau mengakses akun Helper321 Anda. Kami tidak menggunakan Facebook atau Apple Sign-in.',
          'Kami tidak mengumpulkan pengenal iklan perangkat seluler (IDFA / GAID) — Helper321 adalah produk web dan tidak menampilkan iklan.',
          'Kami tidak menyematkan SDK analitik pihak ketiga (misalnya Google Analytics, Firebase Analytics) yang membuat profil Anda untuk tujuan periklanan.',
        ]},
        { heading: '4. Bagaimana Kami Menggunakan Data Anda', paragraphs: [
          'Kami menggunakan informasi yang dikumpulkan untuk tujuan berikut:',
        ], list: [
          'Menyediakan layanan — mencocokkan Pengasuh dengan Pemberi Kerja, memproses lamaran pekerjaan, mengirim pesan.',
          'Mengoperasikan, memelihara, dan meningkatkan Situs.',
          'Memverifikasi identitas Anda sebagai Pengguna Terdaftar dan melindungi dari penipuan, penyalahgunaan, dan insiden keamanan.',
          'Membela diri terhadap sengketa kartu pembayaran dan chargeback. Ketika penerbit kartu pembayaran memulai sengketa atas penagihan yang dilakukan melalui Situs, kami dapat menggunakan catatan peristiwa autentikasi (Bagian 3.2) dan informasi penggunaan layanan yang Anda hasilkan selama periode langganan yang relevan (lowongan yang dibuat, Pengasuh yang dihubungi, pesan yang dikirim, sesi yang dibuka) sebagai bukti dalam tanggapan kami. Bukti ini dapat dibagikan dengan pemroses pembayaran kami (Stripe) dan, melalui pemroses tersebut, dengan jaringan kartu dan bank penerbit Anda.',
          'Mengirim komunikasi terkait layanan: email verifikasi akun, reset kata sandi, peringatan keamanan, dan pemberitahuan tentang akun, lowongan, atau lamaran Anda. Untuk pelanggan berbayar, ini mencakup pemberitahuan terkait perpanjangan: tanda terima untuk setiap penagihan, pemberitahuan awal perubahan harga (setidaknya 30 hari), dan konfirmasi pembatalan.',
          'Mengirim pembaruan produk atau komunikasi pemasaran opsional, hanya jika Anda belum memilih keluar. Setiap email pemasaran berisi tautan berhenti berlangganan.',
          'Memenuhi kewajiban hukum dan menanggapi permintaan sah dari otoritas yang berwenang.',
        ]},
        { heading: '5. Bagaimana Kami Membagikan Data Anda', paragraphs: [
          '5.1 Visibilitas profil di Situs:',
        ], list: [
          'Profil Pengasuh — setelah Pengasuh melengkapi profil dan profil telah disetujui, profil menjadi terlihat oleh Pengguna Terdaftar lain (Pemberi Kerja dan Agen) di Situs. Bagian profil Pengasuh yang terlihat publik mencakup nama, foto, usia, kebangsaan, kota, pengalaman kerja, keterampilan, dan ekspektasi. **Detail kontak (email, telepon) TIDAK ditampilkan secara publik**; komunikasi dilakukan melalui pesan dalam aplikasi Situs.',
          'Lowongan pekerjaan Pemberi Kerja — setelah Pemberi Kerja menerbitkan pekerjaan, daftar lowongan menjadi terlihat oleh Pengasuh yang masuk. Nama pribadi Pemberi Kerja tidak langsung diungkapkan dalam daftar lowongan publik; komunikasi dilakukan melalui pesan dalam aplikasi yang dimulai oleh Pemberi Kerja.',
        ], extraParagraphs: [
          '5.2 Kategori penerima lainnya:',
        ], extraList: [
          'Agen — Pengasuh dapat dihubungi oleh Agen yang juga merupakan Pengguna Terdaftar. Agen melihat informasi profil yang terlihat publik yang sama dengan Pemberi Kerja dan menggunakan saluran pesan dalam aplikasi yang sama.',
          'Penyedia layanan — kami menggunakan penyedia infrastruktur pihak ketiga (hosting, pengiriman email transaksional, pemrosesan pembayaran jika berlaku) untuk mengoperasikan Situs. Penyedia ini memproses data hanya sesuai instruksi dan berdasarkan perjanjian tertulis yang mewajibkan langkah-langkah keamanan yang sesuai.',
          'Otoritas hukum — kami dapat mengungkapkan informasi jika diwajibkan oleh proses hukum yang sah, untuk melindungi hak hukum kami, atau untuk mencegah bahaya yang akan terjadi.',
        ], finalParagraphs: [
          '5.3 Kami TIDAK menjual data pribadi Anda kepada pihak ketiga.',
        ]},
        { heading: '6. Transfer Data Internasional', paragraphs: [
          'Situs dapat dioperasikan dan dipelihara oleh penyedia layanan yang berlokasi di yurisdiksi yang berbeda. Dengan menggunakan Situs, Anda menyetujui transfer informasi Anda lintas batas, termasuk ke yurisdiksi yang undang-undang perlindungan datanya dapat berbeda dari negara tempat tinggal Anda. Kami mewajibkan penyedia untuk menerapkan perlindungan yang sesuai terlepas dari lokasi.',
        ]},
        { heading: '7. Penyimpanan Data', paragraphs: [
          'Kami menyimpan informasi akun dan profil Anda selama akun Anda aktif.',
          'Anda dapat menghapus akun Anda kapan saja dari pengaturan akun. Kami akan menghapus atau menganonimkan data pribadi Anda dalam jangka waktu yang wajar setelah penghapusan, kecuali jika penyimpanan diwajibkan oleh hukum (misalnya, catatan pajak, akuntansi, atau pencegahan penipuan) atau untuk membela klaim hukum yang sedang berlangsung.',
          'Jangka waktu retensi khusus untuk kategori di mana kami menyimpan data di luar masa aktif akun Anda:',
        ], list: [
          'Catatan peristiwa autentikasi (Bagian 3.2) — disimpan setidaknya selama 540 hari kalender dalam bentuk mentah, kemudian diturunkan menjadi ringkasan harian agregat. Batas 540 hari ini cocok dengan jendela sengketa pemegang kartu terpanjang di seluruh jaringan kartu yang kami terima dan diperlukan untuk membangun pembelaan berbasis bukti terhadap chargeback.',
          'Catatan langganan dan pembayaran — disimpan setidaknya selama 7 tahun untuk mematuhi kewajiban pajak dan akuntansi di yurisdiksi tempat kami beroperasi.',
          'Komunikasi (pesan dalam aplikasi, pertanyaan dukungan) — disimpan selama akun Anda aktif, ditambah 2 tahun setelah penghapusan untuk tujuan pembuktian dalam sengketa atau investigasi kepercayaan-dan-keamanan.',
        ]},
        { heading: '8. Hak Anda', paragraphs: [
          'Tunduk pada undang-undang perlindungan data yang berlaku, Anda mungkin memiliki hak untuk:',
        ], list: [
          'mengakses data pribadi yang kami simpan tentang Anda,',
          'meminta koreksi atas informasi yang tidak akurat,',
          'meminta penghapusan data Anda,',
          'menolak atau membatasi jenis pemrosesan tertentu,',
          'menarik persetujuan untuk pemrosesan opsional (misalnya, email pemasaran) kapan saja, dan',
          'mengajukan keluhan kepada otoritas perlindungan data yang berwenang.',
        ], finalParagraphs: [
          'Untuk menggunakan hak ini, hubungi kami menggunakan detail di Bagian 12. Kami mungkin perlu memverifikasi identitas Anda sebelum merespons.',
        ]},
        { heading: '9. Keamanan', paragraphs: [
          'Kami mengambil langkah-langkah teknis dan organisasional yang wajar untuk melindungi data pribadi Anda, termasuk enkripsi saat transit (HTTPS), penyimpanan kata sandi yang di-hash, kontrol akses pada sistem produksi, dan tinjauan keamanan rutin.',
          'Tidak ada metode transmisi internet atau penyimpanan elektronik yang sepenuhnya aman. Anda juga berperan: jaga kerahasiaan kata sandi Anda, jangan bagikan kredensial akun, dan beri tahu kami segera jika Anda mencurigai akses tidak sah ke akun Anda.',
        ]},
        { heading: '10. Privasi Anak', paragraphs: [
          'Situs ini tidak ditujukan untuk digunakan oleh individu di bawah usia 18 tahun, dan kami tidak dengan sengaja mengumpulkan data pribadi dari siapa pun di bawah 18 tahun. Jika Anda yakin seorang anak telah memberi kami data pribadi, silakan hubungi kami agar kami dapat menghapusnya.',
        ]},
        { heading: '11. Perubahan pada Kebijakan ini', paragraphs: [
          'Kami dapat memperbarui Kebijakan ini dari waktu ke waktu untuk mencerminkan perubahan pada layanan, teknologi, atau persyaratan hukum kami. Kebijakan yang diperbarui akan diposting di halaman ini dengan tanggal berlaku yang direvisi. Untuk perubahan material, kami akan memberikan pemberitahuan tambahan (misalnya, spanduk di Situs atau email kepada Pengguna Terdaftar).',
        ]},
        { heading: '12. Hubungi Kami', paragraphs: [
          'Untuk pertanyaan tentang Kebijakan ini atau untuk menggunakan hak Anda, hubungi kami di:',
        ], list: [
          '[COMPANY NAME]',
          '[REGISTERED ADDRESS]',
          'Email: [CONTACT EMAIL]',
          'Telepon: [CONTACT PHONE]',
        ]},
      ],
    },

    terms: {
      title: 'Syarat dan Ketentuan',
      sections: [
        { heading: '1. Penerimaan Syarat', paragraphs: [
          'Dengan mengakses atau menggunakan helper321.com ("Situs"), Anda setuju untuk terikat oleh Syarat dan Ketentuan ini ("Syarat"). Jika Anda tidak setuju, jangan gunakan Situs.',
          'Anda harus berusia minimal 18 tahun — atau usia minimum yang diizinkan oleh hukum ketenagakerjaan setempat untuk melakukan atau mempekerjakan pekerjaan pengasuh rumah tangga, mana yang lebih tinggi — untuk menggunakan Situs.',
        ]},
        { heading: '2. Definisi', list: [
          '"Helper321" / "kami" berarti [COMPANY NAME].',
          '"Situs" berarti situs web Helper321 di helper321.com.',
          '"Pengasuh" berarti pengguna yang mencari pekerjaan sebagai pengasuh rumah tangga.',
          '"Pemberi Kerja" berarti pengguna yang memasang iklan lowongan atau menghubungi Pengasuh.',
          '"Agen" berarti pengguna yang bertindak atas nama agen tenaga kerja berlisensi.',
          '"Pengguna" berarti setiap individu atau entitas yang menggunakan Situs.',
        ]},
        { heading: '3. Sifat Layanan', paragraphs: [
          'Helper321 adalah platform yang membantu Pemberi Kerja dan Pengasuh saling menemukan dan berkomunikasi. Kami memfasilitasi perkenalan dan pesan — kami BUKAN agen tenaga kerja, tidak bertindak sebagai perekrut, dan tidak menyiapkan atau memproses dokumen hukum yang diperlukan untuk mempekerjakan pengasuh rumah tangga.',
          'Hubungan kerja yang sebenarnya terjadi antara Pemberi Kerja dan Pengasuh (dan, jika berlaku, Agen berlisensi). Pengguna bertanggung jawab sepenuhnya untuk mematuhi semua undang-undang ketenagakerjaan, imigrasi, kontrak, pajak, dan upah yang berlaku di yurisdiksi mereka.',
        ]},
        { heading: '4. Akun dan Tanggung Jawab Pengguna', paragraphs: [
          'Anda bertanggung jawab untuk menjaga kerahasiaan kredensial akun Anda dan untuk semua aktivitas yang terjadi di bawah akun Anda.',
          'Anda setuju untuk memberikan informasi yang akurat, terkini, dan lengkap saat membuat profil dan postingan, dan menjaga informasi tersebut tetap diperbarui.',
          'Anda tidak boleh menyamar sebagai orang lain, salah merepresentasikan identitas atau kualifikasi Anda, atau memposting informasi yang salah atau menyesatkan.',
        ]},
        { heading: '5. Penggunaan yang Diizinkan; Lisensi', paragraphs: [
          'Tunduk pada Syarat ini, kami memberi Anda lisensi terbatas, non-eksklusif, tidak dapat dialihkan, dan dapat dicabut untuk mengakses dan menggunakan Situs untuk tujuan pribadi dan non-komersial guna mencari pekerjaan sebagai, atau mempekerjakan, pengasuh rumah tangga.',
          'Anda TIDAK boleh, tanpa persetujuan tertulis kami sebelumnya:',
        ], list: [
          'memodifikasi atau menyalin materi dari Situs di luar apa yang diperlukan untuk penggunaan yang diizinkan;',
          'menggunakan Situs atau materinya untuk tujuan komersial apa pun di luar penggunaan layanan yang dimaksudkan;',
          'mencoba mendekompilasi, merekayasa ulang, atau mengekstrak kode sumber dari perangkat lunak apa pun di Situs;',
          'menghapus pemberitahuan hak cipta, merek dagang, atau hak milik dari materi di Situs;',
          'mengikis (scrape), mencerminkan, memanen, atau mengekstrak data dari Situs dengan cara otomatis, atau membangun database apa pun dari materi di Situs;',
          'menjual kembali, melisensikan ulang, atau mendistribusikan ulang akses ke Situs atau datanya.',
        ]},
        { heading: '6. Perilaku Dilarang', paragraphs: [
          'Anda setuju untuk tidak menggunakan Situs untuk:',
        ], list: [
          'melecehkan, menipu, mengeksploitasi, atau merugikan Pengguna lain;',
          'mengiklankan layanan yang tidak terkait dengan perekrutan pengasuh rumah tangga;',
          'menggunakan bot, skrip, scraper, atau alat otomatis lainnya untuk mengakses Situs atau mengekstrak data;',
          'mengirim malware, spam, atau konten berbahaya lainnya;',
          'melanggar hukum atau peraturan yang berlaku.',
        ], finalParagraphs: [
          'Agen tidak boleh mendaftar sebagai Pemberi Kerja atau Pengasuh, menghubungi Pengasuh selain melalui saluran yang dimaksudkan oleh Situs, atau menggunakan konten Situs untuk membangun database pesaing, dalam setiap kasus tanpa izin tertulis kami sebelumnya.',
          'Pelanggaran dapat mengakibatkan penangguhan atau penghentian akun segera dan, jika sesuai, tindakan hukum.',
        ]},
        { heading: '7. Berlangganan dan Biaya', paragraphs: [
          'Pengasuh menggunakan Helper321 secara gratis. Pemberi Kerja dan Agen memerlukan langganan berbayar untuk menghubungi pengasuh, memasang lowongan, dan menonton video keterampilan.',
          'Anda setuju dan memahami bahwa, sesuai dengan Undang-Undang Perlindungan Konsumen Taiwan, Helper321 adalah layanan digital online yang diaktifkan dan diberikan segera setelah berlangganan. Setelah diaktifkan, hak refleksi 7 hari di bawah Undang-Undang Perlindungan Konsumen tidak berlaku. Sebagai perlindungan konsumen, kami menyediakan jendela pengembalian dana 7 hari yang bersifat diskresioner pada tagihan pertama Anda — lihat Bagian 8 untuk detailnya.',
        ], sub: [
          { heading: 'Paket dan harga', paragraphs: [
            'Paket yang tersedia saat ini, harganya, dan panjang siklus penagihan (misalnya Standard NT$990 per 7 hari, atau Premium NT$1,490 per 2 bulan) ditampilkan pada halaman Harga dan saat checkout.',
          ]},
          { heading: 'Perpanjangan otomatis', paragraphs: [
            'Paket berbayar diperpanjang secara otomatis di akhir setiap siklus penagihan. Dengan mengklik Berlangganan saat checkout, Anda memberi wewenang kepada Helper321 untuk menagih metode pembayaran tersimpan Anda melalui Stripe setiap siklus hingga Anda membatalkan.',
          ]},
          { heading: 'Pembayaran gagal', paragraphs: [
            'Jika pembayaran perpanjangan gagal, Stripe akan mencoba ulang sesuai jadwalnya sendiri selama sekitar tiga minggu. Akses mungkin dibatasi selama periode ini. Jika semua percobaan ulang gagal, langganan dibatalkan secara otomatis; Anda dapat berlangganan kembali kapan saja.',
          ]},
          { heading: 'Perubahan harga', paragraphs: [
            'Kami akan mengirim email kepada Anda setidaknya 30 hari sebelum perubahan harga berlaku pada paket Anda. Harga baru hanya berlaku untuk perpanjangan pada atau setelah tanggal tersebut.',
          ]},
        ]},
        { heading: '8. Kebijakan Pengembalian Dana', paragraphs: [
          'Jika Anda berubah pikiran dalam 7 hari pertama dan belum benar-benar menggunakan platform, kami dapat membantu pengembalian dana.',
        ], sub: [
          { heading: 'Kelayakan', paragraphs: [
            'Pengembalian dana penuh tersedia hanya pada tagihan langganan pertama Anda, jika Anda memenuhi SEMUA hal berikut:',
          ], list: [
            'Permintaan Anda mencapai kami dalam waktu 7 hari sejak tagihan pertama tersebut.',
            'Anda belum menghubungi pengasuh mana pun.',
            'Anda belum menonton video lebih dari 3 pengasuh.',
            'Anda belum memasang lowongan apa pun.',
          ]},
          { heading: 'Jangka waktu', paragraphs: [
            '7 hari sejak tanggal tagihan langganan pertama Anda.',
          ]},
          { heading: 'Meminta pengembalian dana', paragraphs: [
            'Kirim email ke [CONTACT EMAIL] (atau gunakan halaman Kontak kami di /contact) dengan alamat email akun Helper321 Anda dan tanggal tagihan pertama.',
          ]},
          { heading: 'Pemrosesan pengembalian dana', paragraphs: [
            'Setelah disetujui, pengembalian dana kembali ke metode pembayaran asli Anda dalam 5 hingga 10 hari kerja. Waktu pasti tergantung pada bank Anda.',
          ]},
          { heading: 'Butuh bantuan?', paragraphs: [
            'Kirim email ke [CONTACT EMAIL] atau gunakan halaman Kontak kami. Kami siap membantu.',
          ]},
        ]},
        { heading: '9. Penafian', paragraphs: [
          'Situs dan semua konten disediakan "SEBAGAIMANA ADANYA" dan "SEBAGAIMANA TERSEDIA", tanpa jaminan apa pun, baik tersurat maupun tersirat, termasuk jaminan kelayakan jual, kesesuaian untuk tujuan tertentu, atau non-pelanggaran.',
          'Kami tidak menjamin keakuratan atau kelengkapan konten yang dihasilkan pengguna — profil, lowongan pekerjaan, pesan, foto, video. Pemberi Kerja, Pengasuh, dan Agen bertanggung jawab sepenuhnya untuk memverifikasi setiap informasi yang penting bagi keputusan mereka.',
          'Kami tidak bertanggung jawab atas perilaku Pengguna mana pun, hasil interaksi antara Pengguna, atau kontrak, pengaturan, atau transaksi apa pun antara Pengguna.',
          'Jika Anda menggunakan Agen berlisensi yang Anda temukan di Situs, Anda melakukannya dengan risiko Anda sendiri. Verifikasi lisensi Agen dengan otoritas yang berwenang dan minta semua dokumen wajib sebelum membuat perjanjian apa pun.',
        ]},
        { heading: '10. Batasan Tanggung Jawab', paragraphs: [
          'Sejauh diizinkan oleh hukum, Helper321 dan pemasoknya tidak akan bertanggung jawab atas kerusakan tidak langsung, insidental, khusus, konsekuensial, atau punitif, atau hilangnya keuntungan, pendapatan, data, atau itikad baik, yang timbul dari atau terkait dengan penggunaan (atau ketidakmampuan untuk menggunakan) Situs oleh Anda, bahkan jika kami telah diberi tahu tentang kemungkinan kerusakan tersebut.',
          'Total tanggung jawab agregat kami untuk setiap klaim yang berkaitan dengan Situs tidak akan melebihi jumlah yang Anda bayarkan kepada kami untuk Situs dalam 12 bulan sebelum klaim, atau US$30 (atau setara dalam mata uang lokal), mana yang lebih besar.',
        ]},
        { heading: '11. Modifikasi dan Kesalahan', paragraphs: [
          'Situs dapat mengandung kesalahan teknis, tipografi, atau fotografi. Kami tidak menjamin bahwa materi apa pun di Situs akurat, lengkap, atau terkini, dan kami dapat membuat perubahan pada Situs kapan saja tanpa pemberitahuan. Kami tidak berkewajiban untuk memperbarui materi.',
        ]},
        { heading: '12. Tautan Pihak Ketiga', paragraphs: [
          'Situs dapat berisi tautan ke situs web pihak ketiga. Kami tidak meninjau semua situs yang ditautkan dan tidak bertanggung jawab atas konten atau praktik mereka. Inklusi tautan tidak menyiratkan dukungan kami. Penggunaan situs yang ditautkan adalah risiko Anda sendiri.',
        ]},
        { heading: '13. Penghentian', paragraphs: [
          'Kami dapat menangguhkan atau menghentikan akun Anda kapan saja karena pelanggaran terhadap Syarat ini, dugaan aktivitas penipuan, atau perilaku apa pun yang kami anggap merugikan Pengguna lain atau Situs. Setelah penghentian, hak Anda untuk menggunakan Situs berakhir. Ketentuan yang sifatnya harus tetap berlaku (misalnya, penafian, batasan tanggung jawab, klausul hukum yang mengatur) akan tetap berlaku.',
        ]},
        { heading: '14. Perubahan pada Syarat Ini', paragraphs: [
          'Kami dapat merevisi Syarat ini kapan saja. Syarat yang direvisi akan diposting di halaman ini dengan tanggal berlaku yang diperbarui. Penggunaan Situs yang berkelanjutan oleh Anda setelah revisi berlaku merupakan penerimaan Syarat yang direvisi.',
          'Untuk perubahan substantif (misalnya, pada Bagian 7 Berlangganan atau Bagian 8 Kebijakan Pengembalian Dana), kami juga akan memberi tahu pengguna terdaftar melalui email setidaknya 30 hari sebelum perubahan berlaku dan, pada saat masuk berikutnya setelah tanggal efektif, meminta Anda untuk mengonfirmasi ulang penerimaan. Hingga Anda mengonfirmasi ulang penerimaan, fitur tertentu (seperti memulai langganan baru atau menghubungi Pengasuh) dapat dibatasi.',
        ]},
        { heading: '15. Hukum yang Mengatur dan Sengketa', paragraphs: [
          'Syarat ini diatur oleh hukum yang berlaku di yurisdiksi tempat Helper321 didirikan, tanpa memperhatikan prinsip konflik hukumnya.',
          'Setiap sengketa yang timbul dari atau terkait dengan Syarat atau Situs ini terlebih dahulu akan diselesaikan melalui musyawarah secara itikad baik antara para pihak. Apabila tidak tercapai penyelesaian, sengketa akan diserahkan kepada pengadilan yang berwenang di lokasi tempat Helper321 didirikan.',
          'Versi bahasa Inggris dari Syarat ini bersifat otoritatif; jika terjadi perbedaan antara versi bahasa Inggris dan versi terjemahan, versi bahasa Inggris yang berlaku.',
        ]},
        { heading: '16. Kontak', list: [
          '[COMPANY NAME]',
          '[REGISTERED ADDRESS]',
          'Email: [CONTACT EMAIL]',
          'Telepon: [CONTACT PHONE]',
        ]},
      ],
    },

    cookies: {
      title: 'Kebijakan Cookie',
      sections: [
        { heading: '1. Cakupan Kebijakan', paragraphs: [
          'Kebijakan Cookie ini menjelaskan bagaimana Helper321 menggunakan cookie dan teknologi penyimpanan peramban serupa (secara kolektif, "cookie") di helper321.com ("Situs"). Ini melengkapi Kebijakan Privasi kami.',
        ]},
        { heading: '2. Apa itu cookie?', paragraphs: [
          'Cookie adalah file data kecil yang disimpan oleh peramban Anda di perangkat Anda. Kami juga menggunakan teknologi penyimpanan peramban terkait seperti localStorage, yang bekerja mirip dengan cookie tetapi tidak ditransmisikan ke server kami setiap kali ada permintaan. Sepanjang Kebijakan ini, "cookie" mencakup cookie klasik dan localStorage.',
        ]},
        { heading: '3. Cookie yang Kami Gunakan', paragraphs: [
          '3.1 Sangat diperlukan — diperlukan untuk fungsi Situs:',
        ], list: [
          'Token sesi dan autentikasi (misalnya hm_access_token, hm_auth_user) — menjaga Anda tetap masuk sehingga Anda dapat memposting lowongan, mengirim pesan, dan menggunakan fitur lain yang memerlukan autentikasi.',
          'Status rute dan draf (misalnya hm-route, hm_resume_draft, hm_resume_progress) — mengingat halaman yang Anda buka dan pekerjaan draf yang belum disimpan agar Anda tidak kehilangan status saat dimuat ulang.',
          'Penanda status akun (misalnya hm_review_status, hm_account_status, hm_review_reject_reason) — digunakan untuk menampilkan spanduk dan akses kontrol yang sesuai dengan status akun Anda.',
          'Cookie sesi yang ditetapkan oleh infrastruktur backend kami untuk manajemen sesi yang aman (misalnya cookie refresh-token httpOnly).',
        ], extraParagraphs: [
          '3.2 Kami TIDAK menggunakan:',
        ], extraList: [
          'Cookie iklan pihak ketiga.',
          'Piksel pelacakan lintas situs.',
          'Pengenal iklan perangkat seluler (IDFA / GAID).',
          'SDK analitik pihak ketiga yang membuat profil Anda untuk iklan (misalnya Google Analytics, Firebase Analytics, Mixpanel).',
        ]},
        { heading: '4. Berapa lama cookie bertahan?', paragraphs: [
          'Cookie sesi dihapus secara otomatis saat Anda menutup peramban.',
          'Cookie persisten dan entri localStorage tetap ada hingga kedaluwarsa atau Anda menghapusnya. Entri persisten kami umumnya bertahan antara 24 jam dan 12 bulan tergantung tujuan.',
        ]},
        { heading: '5. Mengelola Cookie', paragraphs: [
          'Sebagian besar peramban memungkinkan Anda mengontrol cookie melalui pengaturannya — blokir semua, izinkan secara selektif, atau hapus yang disimpan. Catatan: menonaktifkan cookie yang sangat diperlukan akan mencegah Anda masuk atau menggunakan bagian Situs yang memerlukan autentikasi.',
        ], list: [
          'Chrome: Pengaturan → Privasi dan keamanan → Cookie dan data situs lainnya',
          'Firefox: Pengaturan → Privasi & Keamanan → Cookie dan Data Situs',
          'Safari: Preferensi → Privasi → Kelola Data Situs Web',
          'Edge: Pengaturan → Cookie dan izin situs → Kelola dan hapus cookie dan data situs',
        ], finalParagraphs: [
          'Anda juga dapat menghapus localStorage peramban dari pengaturan yang sama (biasanya di bawah "Data situs" atau "Hapus data penjelajahan").',
        ]},
        { heading: '6. Perubahan pada Kebijakan ini', paragraphs: [
          'Kami dapat memperbarui Kebijakan ini seiring perkembangan Situs. Versi yang direvisi akan diposting di halaman ini dengan tanggal berlaku baru.',
        ]},
        { heading: '7. Kontak', list: [
          '[COMPANY NAME]',
          '[REGISTERED ADDRESS]',
          'Email: [CONTACT EMAIL]',
          'Telepon: [CONTACT PHONE]',
        ]},
      ],
    },
  },
};

// ============================== Renderer ==============================

const LegalPageLayout = ({ docKey, go }) => {
  const { t, lang } = window.useI18n();
  const langPack = LEGAL_CONTENT[lang] || LEGAL_CONTENT.en;
  const doc = langPack[docKey];
  if (!doc) return null;

  return (
    <div className="page">
      <div className="container" style={{maxWidth:820, padding:'48px 24px 80px'}}>
        <button
          className="btn btn-ghost btn-sm"
          onClick={() => go('home')}
          style={{marginBottom:18, padding:'4px 0'}}
        >
          <Icon name="arrowLeft" size={14}/> {t('common.back')}
        </button>

        <h1 className="display h-display-xl" style={{letterSpacing:'-0.02em', marginBottom:24}}>
          {doc.title}
        </h1>

        <div style={{fontSize:15, lineHeight:1.75, color:'var(--t-ink)'}}>
          {doc.sections.map((section, i) => (
            <section key={i} style={{marginBottom:32}}>
              <h2 style={{fontSize:16, fontWeight:700, marginBottom:14, letterSpacing:'-0.01em'}}>
                {section.heading}
              </h2>
              {section.paragraphs?.map((p, j) => (
                <p key={`p${j}`} style={{marginBottom:12}}>{p}</p>
              ))}
              {section.list && (
                <ul style={{marginLeft:22, marginBottom:12, listStyle:'disc'}}>
                  {section.list.map((item, j) => (
                    <li key={`l${j}`} style={{marginBottom:6}}>{item}</li>
                  ))}
                </ul>
              )}
              {section.extraParagraphs?.map((p, j) => (
                <p key={`ep${j}`} style={{marginBottom:12}}>{p}</p>
              ))}
              {section.extraList && (
                <ul style={{marginLeft:22, marginBottom:12, listStyle:'disc'}}>
                  {section.extraList.map((item, j) => (
                    <li key={`el${j}`} style={{marginBottom:6}}>{item}</li>
                  ))}
                </ul>
              )}
              {section.finalParagraphs?.map((p, j) => (
                <p key={`fp${j}`} style={{marginBottom:12}}>{p}</p>
              ))}
              {section.finalList && (
                <ul style={{marginLeft:22, marginBottom:12, listStyle:'disc'}}>
                  {section.finalList.map((item, j) => (
                    <li key={`fl${j}`} style={{marginBottom:6}}>{item}</li>
                  ))}
                </ul>
              )}
              {/* `sub` lets a section have nested subheadings with their own
                  paragraphs + bullets — used for Holo-style refund/billing
                  sections where readability beats deep numbered subclauses. */}
              {section.sub?.map((s, k) => (
                <div key={`sub${k}`} style={{marginTop:18}}>
                  <h3 style={{fontSize:15, fontWeight:700, marginBottom:8, color:'var(--t-ink)'}}>{s.heading}</h3>
                  {s.paragraphs?.map((p, j) => (
                    <p key={`sp${j}`} style={{marginBottom:10}}>{p}</p>
                  ))}
                  {s.list && (
                    <ul style={{marginLeft:22, marginBottom:10, listStyle:'disc'}}>
                      {s.list.map((item, j) => (
                        <li key={`sl${j}`} style={{marginBottom:5}}>{item}</li>
                      ))}
                    </ul>
                  )}
                </div>
              ))}
            </section>
          ))}
        </div>

        {lang !== 'en' && (
          <div style={{
            marginTop:32,
            padding:'10px 14px',
            background:'var(--t-bg)',
            border:'1px solid var(--t-line)',
            borderRadius:8,
            fontSize:13,
            color:'var(--t-ink-soft)',
            lineHeight:1.55,
          }}>
            {langPack.authoritativeNote}
          </div>
        )}
      </div>
    </div>
  );
};

const PrivacyPage = ({ go }) => <LegalPageLayout docKey="privacy" go={go}/>;
const TermsPage = ({ go }) => <LegalPageLayout docKey="terms" go={go}/>;
const CookiesPage = ({ go }) => <LegalPageLayout docKey="cookies" go={go}/>;

Object.assign(window, { PrivacyPage, TermsPage, CookiesPage });
