/* Orenwell marketing site — legal / policy pages (Disclaimer, Terms & Conditions,
   Privacy Policy, Shipping Policy, Refund Policy, Pharmacy Information).
   Copy transcribed from "Orenwell Website Copy v2". Draft for review — requires
   attorney + Leg Up Recovery sign-off before launch. */

const OW_NOTICE_SHORT = "These terms and conditions, privacy policy, and all related legal documents refer to **Leg Up Recovery** and its services. **Orenwell** is a referral partner of Leg Up Recovery and may receive compensation for referrals made through this website. All medical services are provided by Leg Up Recovery and its affiliated healthcare providers. Orenwell acts solely as a referral partner and does not provide medical services or prescription drugs directly, unless otherwise specified.";
const OW_NOTICE_ENTITY = "These terms and conditions, privacy policy, and all related legal documents refer to **Leg Up Recovery** and its services. **Orenwell** (a fictitious name of **Renovo Holdings, LLC d/b/a Orenwell**, a Florida limited liability company, located at 7901 4th St N, STE 300, St. Petersburg, FL 33702) is a referral/marketing partner of Leg Up Recovery and may receive compensation for referrals made through this website. All medical services are provided by Leg Up Recovery and its affiliated healthcare providers. Orenwell acts solely as a referral partner and does not provide medical services or prescription drugs directly, unless otherwise specified.";

const OW_LEGAL = {
  disclaimer: {
    eyebrow: "Legal", title: "Disclaimer", updated: "Last updated: 2026-06-11",
    blocks: [
      { t: "notice", x: "These terms and conditions, privacy policy, and all related legal documents refer to **Leg Up Recovery** and its services. **Orenwell** (a fictitious name of **Renovo Holdings, LLC**, a Florida limited liability company) is a referral/marketing partner of Leg Up Recovery and may receive compensation for referrals made through this website. All medical services are provided by Leg Up Recovery and its affiliated healthcare providers. Orenwell acts solely as a referral partner and does not provide medical services or prescription drugs directly, unless otherwise specified." },
      { t: "p", x: "The information provided on this website is for **general informational purposes only** and is **not intended to diagnose, treat, cure, or prevent any disease or medical condition.** The products and statements discussed on this website — excluding prescription medications when true — have not been evaluated by the U.S. Food and Drug Administration (FDA)." },
      { t: "p", x: "Certain prescription medications discussed on this site may not be approved by the FDA for all uses described. This information is for **educational purposes only** and is **not intended as medical advice.** Always consult a licensed healthcare professional before starting any new medication or treatment." },
      { t: "p", x: "Always consult a qualified healthcare professional before making any changes to your diet, lifestyle, or treatment plan. If you have or suspect a medical condition, consult your healthcare provider." },
      { t: "p", x: "Prescription medications offered on this site are provided in accordance with applicable laws and under the guidance of licensed medical professionals. **Please do not reply to any of our marketing messages or sales phone calls with personal health information.**" },
      { t: "p", x: "Our delivery estimator is an estimate only and is not guaranteed. **Not all medicine or services are available in all states.** Medical services are referral-based and provided through licensed healthcare professionals. Prescription medications are fulfilled by **Leg Up Recovery.**" },
      { t: "h3", x: "Important Notes" },
      { t: "note", x: "Compounded semaglutide is not FDA-approved and the FDA does not evaluate compounded products for safety, effectiveness, or quality. Ozempic® and Wegovy® are not compounded. Ozempic® and Wegovy® are both products and registered trademarks of Novo Nordisk A/S. Ozempic® is FDA-approved for type 2 diabetes but may be prescribed off-label for weight loss per a healthcare practitioner's discretion. Wegovy® has been approved by the FDA for diabetes and weight loss." },
      { t: "note", x: "Compounded tirzepatide is not FDA-approved and the FDA does not evaluate compounded products for safety, efficacy, or quality. Mounjaro® is FDA-approved for type 2 diabetes and may be prescribed off-label for weight loss per a healthcare practitioner's discretion. Mounjaro® is a product and registered trademark of Eli Lilly and Company." },
      { t: "note", x: "Last updated: 2026-06-11. All content copyright © 2026 Orenwell / Renovo Holdings, LLC." },
    ],
  },

  terms: {
    eyebrow: "Legal", title: "Terms & Conditions", updated: "Date of Last Revision: 2026-06-11",
    blocks: [
      { t: "notice", x: OW_NOTICE_ENTITY },
      { t: "caps", x: "AMONG OTHER ACTIVITIES, LEG UP RECOVERY'S SERVICES ENABLE COORDINATION AND COMMUNICATION WITH A HEALTH CARE PROVIDER. THEY DO NOT REPLACE YOUR RELATIONSHIP WITH ANY PHYSICIAN. THESE SERVICES MIGHT NOT BE APPROPRIATE FOR ALL MEDICAL CONDITIONS OR CONCERNS. IF YOU HAVE A MEDICAL EMERGENCY, IMMEDIATELY CALL YOUR DOCTOR OR DIAL 911." },
      { t: "caps", x: "PLEASE READ THESE TERMS AND CONDITIONS CAREFULLY BECAUSE THEY SET FORTH IMPORTANT TERMS YOU NEED TO KNOW ABOUT THE SERVICES. BY ACCESSING OR USING THIS SITE OR ITS SERVICES, YOU ACKNOWLEDGE THAT YOU HAVE READ, UNDERSTOOD, AND AGREED TO BE LEGALLY BOUND BY AND COMPLY WITH THESE TERMS OF USE. IF YOU DO NOT AGREE, YOU MAY NOT USE THIS SITE OR ANY SERVICES PROVIDED THROUGH IT." },
      { t: "h3", x: "Introduction" },
      { t: "p", x: "Renovo Holdings, LLC d/b/a Orenwell (\"Orenwell,\" \"we,\" \"us,\" or \"our\") operates the website located at orenwell.com (the \"Site\"). The Site is a referral and marketing platform that connects individuals with Leg Up Recovery's telehealth services. Orenwell does not itself provide medical services, prescriptions, or pharmacy fulfillment. All such services are provided by **Leg Up Recovery** (100 North Point CTR E, Suite 100, Alpharetta, GA 30022; telehealth@leguprecovery.com) and its affiliated professional entities." },
      { t: "p", x: "By using this Site, you agree to these Terms. These Terms govern your use of the orenwell.com website only. The medical and telehealth terms governing your care — including your prescriptions, health records, and provider communications — are those of **Leg Up Recovery**, accessible via the Patient Portal." },
      { t: "p", x: "Use of Leg Up Recovery's services through this platform also constitutes acceptance of Bask Health Inc.'s platform terms and applicable privacy policy (bask.health, bask.bio)." },
      { t: "h3", x: "Availability" },
      { t: "p", x: "Certain services are only available to individuals located in states where Leg Up Recovery operates. Not all medications or services are available in all states." },
      { t: "h3", x: "Eligibility" },
      { t: "p", x: "To use the Services, you must:" },
      { t: "ul", items: ["Be 18 years of age or older.", "Be located in a state where Leg Up Recovery operates.", "Agree to be legally bound by these Terms of Use."] },
      { t: "p", x: "Meeting these requirements does not guarantee that you will receive services. Leg Up Recovery and its affiliated professional entities reserve the right to decline service at their discretion." },
      { t: "h3", x: "Special Consent to Telehealth Services" },
      { t: "p", x: "Telemedicine involves the delivery of health care services using electronic communications between a healthcare provider and a patient who are not in the same physical location. By initiating a telehealth intake through this site, you consent to the delivery of healthcare services via asynchronous telemedicine as further described in Leg Up Recovery's Asynchronous Telemedicine Informed Consent, available through the Patient Portal. The Consent to Telehealth is incorporated into these Terms of Use by reference." },
      { t: "h3", x: "Privacy Policy" },
      { t: "p", x: "Health information collected during intake and care is handled under Leg Up Recovery's HIPAA-governed Privacy Policy. Orenwell's own privacy practices (for data collected on orenwell.com prior to any healthcare intake) are described in our Privacy Policy. Please see both documents." },
      { t: "h3", x: "Your Relationship with Orenwell and Leg Up Recovery" },
      { t: "p", x: "Orenwell is a referral and marketing partner of Leg Up Recovery. Orenwell does not provide any medical services. The decision to pursue diagnosis, treatment recommendations, or both rests with you and the licensed healthcare providers affiliated with Leg Up Recovery. You are not entering into a provider-patient relationship with Orenwell." },
      { t: "h3", x: "Disclaimer" },
      { t: "p", x: "Any calculator or estimator featured on this site is intended for marketing and informational purposes only. It does not guarantee results. Actual outcomes may vary based on individual factors including but not limited to medical history, adherence, and physiological response." },
      { t: "h3", x: "Limitation of Liability" },
      { t: "p", x: "To the fullest extent permitted by applicable law, Orenwell (Renovo Holdings, LLC) shall not be liable for any indirect, incidental, special, consequential, or punitive damages arising from your use of this site or its referral services. Our liability to you shall not exceed the amounts actually paid by you to Orenwell, if any." },
      { t: "h3", x: "Intellectual Property" },
      { t: "p", x: "All content on orenwell.com — including text, graphics, logos, and design — is the property of Renovo Holdings, LLC d/b/a Orenwell or its licensors. Unauthorized reproduction is prohibited." },
      { t: "h3", x: "Governing Law" },
      { t: "p", x: "These Terms are governed by the laws of the State of Florida, without regard to its conflict-of-law principles." },
      { t: "p", x: "For questions about these Terms, visit the Patient Portal or contact us at support@orenwell.com." },
      { t: "note", x: "Last updated: 2026-06-11" },
    ],
  },

  privacy: {
    eyebrow: "Legal", title: "Privacy Policy / Cookie Policy", updated: "Last updated: 2026-06-11",
    blocks: [
      { t: "notice", x: OW_NOTICE_ENTITY },
      { t: "h3", x: "Introduction" },
      { t: "p", x: "This Privacy Policy describes the data practices of **Renovo Holdings, LLC d/b/a Orenwell** (\"Orenwell,\" \"we,\" \"us,\" or \"our\") when you visit orenwell.com (the \"Site\"). It covers the information we collect on the Site — including marketing analytics, email/SMS opt-ins, and contact information submitted before any healthcare intake handoff. It does **not** govern the handling of your health or medical information, which is managed by Leg Up Recovery under its own HIPAA-compliant Privacy Policy, accessible through the Patient Portal." },
      { t: "h3", x: "The Information We Collect" },
      { t: "p", x: "**Information You Provide Directly:**" },
      { t: "ul", items: ["Name, email address, and phone number submitted via contact or intake forms on orenwell.com", "Communications and feedback you send us", "Marketing opt-in consent (email, SMS)"] },
      { t: "p", x: "**Information Collected Automatically:**" },
      { t: "ul", items: ["IP address, browser type, operating system, referring pages, pages viewed, time spent, and other standard web analytics data", "Cookie and tracking pixel data", "General location information (city/state) derived from IP address"] },
      { t: "p", x: "**Information From Social Media:** When you interact with Orenwell on social media platforms (Facebook, Instagram, etc.), we may collect your name, email, and any comments relevant to our services." },
      { t: "h3", x: "How We Use Your Information" },
      { t: "ul", items: ["To respond to your inquiries and provide customer support", "To send marketing communications (with your consent where required)", "To analyze site usage and improve our content and services", "To connect you with Leg Up Recovery's intake process", "To comply with legal obligations"] },
      { t: "h3", x: "Cookies and Tracking Technologies" },
      { t: "p", x: "We use cookies, tracking pixels, and similar tools to improve your experience, measure advertising effectiveness, and perform analytics. You can manage cookie preferences through your browser settings. Blocking cookies may limit access to certain site features." },
      { t: "h3", x: "How We Share Your Information" },
      { t: "ul", items: ["Leg Up Recovery, when you initiate a healthcare intake", "Third-party analytics and advertising partners (e.g., Meta, Google)", "Service providers acting on our behalf", "Legal authorities, when required by law"] },
      { t: "p", x: "We do not sell your personal information to third parties for their own direct marketing purposes." },
      { t: "h3", x: "Your Marketing Choices" },
      { t: "p", x: "You may opt out of marketing communications at any time by following the unsubscribe instructions in those messages or by contacting us. Opting out does not affect transactional or service-related messages." },
      { t: "h3", x: "Health Information" },
      { t: "p", x: "Any health or medical information you provide during or after an intake handoff is governed exclusively by **Leg Up Recovery's** HIPAA Privacy Policy and Notice of Privacy Practices. For HIPAA-related requests, contact Leg Up Recovery at telehealth@leguprecovery.com or 100 North Point CTR E, Suite 100, Alpharetta, GA 30022." },
      { t: "h3", x: "Security" },
      { t: "p", x: "We implement reasonable technical and organizational measures to protect information collected on orenwell.com. No method of transmission over the internet is 100% secure, and we cannot guarantee absolute security." },
      { t: "h3", x: "California Residents (CCPA)" },
      { t: "p", x: "If you are a California resident, you have rights under the California Consumer Privacy Act (CCPA) to request access to, deletion of, or information about your personal information. Note: health information subject to HIPAA is exempt from CCPA. To exercise your California privacy rights regarding non-health data collected on orenwell.com, contact us at support@orenwell.com. We do not sell your personal information within the meaning of the CCPA." },
      { t: "h3", x: "Nevada Residents" },
      { t: "p", x: "Nevada consumers may opt out of the sale of personally identifiable information for monetary consideration. We do not engage in such activity; however, Nevada residents may submit opt-out requests to us at the contact address below." },
      { t: "h3", x: "Retention" },
      { t: "p", x: "We retain information only as long as necessary for the purposes described in this policy or as required by law." },
      { t: "h3", x: "Changes to This Policy" },
      { t: "p", x: "We reserve the right to update this Privacy Policy at any time. Changes take effect upon posting to this site. The date of last revision appears at the top of this document." },
      { t: "h3", x: "Contact Us" },
      { t: "p", x: "**Renovo Holdings, LLC d/b/a Orenwell** — 7901 4th St N, STE 300, St. Petersburg, FL 33702 — support@orenwell.com" },
      { t: "note", x: "Last updated: 2026-06-11" },
    ],
  },

  shipping: {
    eyebrow: "Policy", title: "Shipping Policy", updated: "Last updated: December 29, 2025",
    blocks: [
      { t: "notice", x: OW_NOTICE_SHORT },
      { t: "h3", x: "Free Shipping" },
      { t: "p", x: "We offer free shipping on all orders to addresses within the United States (excluding territories where services are not available)." },
      { t: "h3", x: "Shipping Times" },
      { t: "p", x: "Prescription medications typically ship within 2 business days after prescription approval. Vitamins and other products typically ship within 3 business days. Shipping times may vary based on pharmacy processing and carrier schedules." },
      { t: "h3", x: "Shipping Locations" },
      { t: "p", x: "We ship to all 50 states, though some medications may not be available in certain states due to regulatory restrictions. Not all medicine or services are available in all states." },
      { t: "h3", x: "Delivery Estimates" },
      { t: "p", x: "Our delivery estimator provides an estimate only and is not guaranteed. Actual delivery times may vary based on carrier schedules, weather, and other factors beyond our control." },
      { t: "h3", x: "Package Tracking" },
      { t: "p", x: "Once your order ships, you will receive a tracking number via email. You can use this number to track your package through the carrier's website." },
      { t: "h3", x: "Secure Delivery" },
      { t: "p", x: "All medications are shipped in secure, temperature-controlled packaging when necessary. Prescription medications require signature upon delivery in some cases." },
      { t: "h3", x: "Address Changes" },
      { t: "p", x: "If you need to change your shipping address, please visit the Patient Portal to contact us immediately. Address changes may delay shipping if the order has already been processed." },
      { t: "h3", x: "Questions About Shipping" },
      { t: "p", x: "If you have questions about your shipment or need to track an order, please visit the Patient Portal to contact us. For general shipping inquiries, you can also reach out through the Patient Portal." },
    ],
  },

  refund: {
    eyebrow: "Policy", title: "Refund Policy", updated: "Last updated: December 29, 2025",
    blocks: [
      { t: "notice", x: OW_NOTICE_SHORT },
      { t: "p", x: "Unfortunately we cannot accept returns of prescription products for reuse or resale, and **all sales are final.** However, if you feel we have made an error in the filling of your prescription, please contact us at telehealth@leguprecovery.com or via the Patient Portal." },
      { t: "h3", x: "Leg Up Recovery" },
      { t: "p", x: "telehealth@leguprecovery.com — 100 North Point CTR E, Suite 100, Alpharetta, Georgia, 30022" },
      { t: "p", x: "You can also contact us through the Patient Portal." },
    ],
  },

  chd: {
    eyebrow: "Legal", title: "Consumer Health Data Privacy Policy", updated: "Last updated: June 22, 2026",
    blocks: [
      { t: "p", x: "This Consumer Health Data Privacy Policy (\"CHD Policy\") explains how Orenwell, a brand of Renovo Holdings, LLC (\"Orenwell,\" \"we,\" \"us,\" or \"our\"), collects, uses, shares, and protects consumer health data. It applies to consumer health data we collect through orenwell.com and is separate from, and supplements, our general [Privacy Policy](/privacy-policy). Where this CHD Policy conflicts with the general [Privacy Policy](/privacy-policy) regarding consumer health data, this CHD Policy controls." },
      { t: "p", x: "We provide this separate policy to comply with state consumer health data laws, including the Washington My Health My Data Act, the Nevada Consumer Health Data Privacy Law (SB 370), and similar state laws, to the extent they apply to you." },
      { t: "h3", x: "Who we are and what we do" },
      { t: "p", x: "Orenwell is a marketing and referral service. We connect consumers with independent, licensed healthcare providers and telehealth services. We are not a healthcare provider or pharmacy, and we do not diagnose, treat, or prescribe. Eligibility and any treatment decisions are made solely by licensed providers. Telehealth consultations and fulfillment are provided through our partner, Leg Up Recovery (\"LegUpRX\"), and its affiliated licensed providers and pharmacies." },
      { t: "p", x: "Because of this, the information we collect on our website at the point of inquiry is treated as consumer health data under state law (not HIPAA-protected health information). Once you proceed to a licensed provider through LegUpRX, the information you provide to them is handled under their own privacy practices and applicable healthcare laws." },
      { t: "h3", x: "What “consumer health data” means" },
      { t: "p", x: "“Consumer health data” means personal information that is linked or reasonably linkable to a consumer and that identifies the consumer's past, present, or future physical or mental health status. For Orenwell, this primarily means the health interest or treatment area you select (for example, weight management, men's health) combined with information that identifies you." },
      { t: "h3", x: "1. Categories of consumer health data we collect, and why" },
      { t: "table", caption: "Categories of consumer health data we collect, and why",
        head: ["Category", "Examples", "Purpose / how we use it"],
        rows: [
          ["Health interest / treatment area", "The category you select: Weight Loss, Men's Health & TRT, Hair Loss, Women's Health & HRT, or Wellness — and the inference that you are seeking care in that area", "To route you to the right licensed provider/telehealth intake and to follow up about the care you inquired about"],
          ["Identifiers / contact data", "First name, last name, email address, phone number (optional)", "To identify you, connect you with a provider, send order/inquiry updates, and (with your consent) send marketing communications"],
          ["Consent records", "Your consent choices, the version of the disclosures shown, and the date/time", "To document and honor your consent and legal rights"],
          ["Technical & source data", "IP address, device/browser data, referring page, and marketing-source (\"UTM\") parameters", "Security, fraud prevention, and understanding which marketing channels brought you to us"],
        ] },
      { t: "p", x: "We collect consumer health data only after you provide it to us, and we limit collection to what is necessary for the purposes above." },
      { t: "h3", x: "2. Categories of sources" },
      { t: "p", x: "We collect consumer health data directly from you when you complete a \"Get Started\" or inquiry form on orenwell.com. We also automatically collect the technical/source data described above from your device when you use our website." },
      { t: "h3", x: "3. Categories of consumer health data we share" },
      { t: "p", x: "We may share the following categories of consumer health data: your health interest / treatment area, your identifiers/contact data, and related inferences. We share this data only as needed to connect you with care and to operate our business, as described below." },
      { t: "h3", x: "4. Categories of third parties and affiliates we share with" },
      { t: "ul", items: [
        "**Telehealth partner and its affiliated licensed providers and pharmacies** — specifically Leg Up Recovery (LegUpRX) — to facilitate your consultation, eligibility review, and fulfillment when you choose to proceed.",
        "**Service providers / processors** that operate our systems under contract and process data only on our documented instructions. These include, and may change over time as our technology evolves, providers of: customer-relationship management and business operations; communications (email, SMS/text, and voice/calling); website hosting and infrastructure; security and fraud prevention; and analytics. This includes tools within the Zoho suite (such as Zoho CRM, Zoho Campaigns, Zoho Voice, and Zoho Analytics) and comparable providers we may adopt in the future.",
        "**Legal and safety recipients** — to comply with law, respond to lawful requests, enforce our terms, or protect the rights, safety, and property of consumers, the public, or Orenwell.",
        "**Corporate transactions** — a successor entity in connection with a merger, acquisition, or sale of assets, subject to this CHD Policy.",
      ] },
      { t: "p", x: "We do not share consumer health data with third-party advertising networks, analytics platforms, or data brokers for their own use, and we do not share it with third parties for their own independent marketing. Where we use analytics or advertising-measurement tools, we configure them so that consumer health data is not disclosed to those platforms for their own purposes." },
      { t: "h3", x: "We do not sell your consumer health data" },
      { t: "p", x: "Orenwell does not sell consumer health data, and we do not exchange it for money or other valuable consideration. We will not sell your consumer health data without obtaining your valid, separate authorization as required by law." },
      { t: "h3", x: "Consent and how to withdraw it" },
      { t: "p", x: "We collect your consumer health data only with your consent or as necessary to provide the service you requested, and we obtain separate consent before sharing your consumer health data with our telehealth partner. Consent is not a condition of any unrelated product or service." },
      { t: "p", x: "You may withdraw your consent at any time by emailing [support@orenwell.com](mailto:support@orenwell.com). Withdrawing consent does not affect processing that already occurred, and it will not reach data you separately provided directly to LegUpRX or a licensed provider (contact them to address data they hold)." },
      { t: "h3", x: "5. Your rights and how to exercise them" },
      { t: "p", x: "Depending on your state, you may have the right to:" },
      { t: "ul", items: [
        "Confirm whether we are collecting, sharing, or selling your consumer health data, and access that data;",
        "Delete your consumer health data;",
        "Withdraw consent to our collection and/or sharing of your consumer health data.",
      ] },
      { t: "p", x: "To exercise any of these rights, email [support@orenwell.com](mailto:support@orenwell.com) with your request and the email address you used. We will verify your request and respond within the timeframes required by applicable law. We will not discriminate against you for exercising these rights." },
      { t: "p", x: "**Appeals.** If we decline your request, you may appeal by replying to our decision or emailing [support@orenwell.com](mailto:support@orenwell.com) with the subject \"Privacy Appeal.\" If your appeal is denied, you may contact your state Attorney General." },
      { t: "h3", x: "No geofencing" },
      { t: "p", x: "We do not use geofences around any healthcare facility to identify, track, collect data from, or send notifications to consumers related to their consumer health data." },
      { t: "h3", x: "Data retention" },
      { t: "p", x: "We keep consumer health data only as long as necessary for the purposes described in this CHD Policy or as required by law, after which we delete or de-identify it. You may request deletion at any time as described above." },
      { t: "h3", x: "Data security" },
      { t: "p", x: "We maintain reasonable administrative, technical, and physical safeguards designed to protect consumer health data, and we limit access to personnel and processors who need it. No method of transmission or storage is 100% secure." },
      { t: "h3", x: "Children" },
      { t: "p", x: "Our website and services are intended for adults 18 and older. We do not knowingly collect consumer health data from anyone under 18." },
      { t: "h3", x: "Changes to this CHD Policy" },
      { t: "p", x: "We may update this CHD Policy from time to time. We will post the updated version with a new \"Last updated\" date and, where required, obtain renewed consent." },
      { t: "h3", x: "Contact us" },
      { t: "p", x: "Orenwell (a brand of Renovo Holdings, LLC)" },
      { t: "p", x: "Email: [support@orenwell.com](mailto:support@orenwell.com)" },
      { t: "p", x: "Mailing address: 7901 4th St N, STE 300, St. Petersburg, FL 33702" },
    ],
  },

  pharmacy: {
    eyebrow: "Policy", title: "Pharmacy Information", updated: "Licensed US pharmacies that fulfill your prescriptions",
    blocks: [
      { t: "notice", x: OW_NOTICE_SHORT },
      { t: "h3", x: "About Our Pharmacy Partners" },
      { t: "p", x: "All prescription medications are fulfilled by licensed US-based pharmacies. These pharmacies are fully accredited and operate in compliance with all state and federal regulations." },
      { t: "h3", x: "Current Pharmacy Partners" },
      { t: "pharmacies", items: [
        ["TX Performance Meds", "1646 Blaisdale Road, STE 2200, Richmond, Texas 77406", "346-899-8976"],
        ["Boothwyn Pharmacy", "221 Gale Ln, Kennett Square, PA 19348", "800-476-7496"],
        ["The Pharmacy Hub LLC", "3661 S Miami Ave Suite 806, Miami, FL 33133", "888-958-1382"],
        ["Gogomeds", "525 Alexandria Pike, Southgate, KY 41071", "888-795-5826"],
        ["Partell Specialty Pharmacy", "5835 S Eastern Ave Ste 101, Las Vegas, NV 89119", "702-791-3800"],
        ["Hillcrest Pharmacy", "781 Fort Union Blvd, Midvale, UT 84047", "385-900-1400"],
        ["Hallandale Pharmacy", "2666 SW 36th St, Fort Lauderdale, FL 33312", "954-455-3822"],
        ["Greenwich RX", "116 Greenwich Ave, Greenwich, CT 06830", "203-661-2721"],
        ["Mycelium Pharmacy LLC", "141 E Commercial Blvd, Fort Lauderdale, FL 33334", "888-612-2908"],
        ["VialsRX", "6220 Westpark Dr, STE 111, Houston, TX 77057", ""],
      ] },
      { t: "h3", x: "Questions About Your Prescription?" },
      { t: "p", x: "If you have questions about your prescription or any medical concerns, please visit the Patient Portal to contact your healthcare provider." },
    ],
  },
};

function LegalNotice({ x }) {
  return (
    <div style={{ display: "flex", gap: 13, alignItems: "flex-start", background: "var(--amber-50)", border: "1px solid var(--amber-200)", borderRadius: "var(--radius-lg)", padding: "18px 20px", marginBottom: 30 }}>
      <Icon name="info" size={20} color="var(--amber-700)" style={{ flexShrink: 0, marginTop: 2 }} />
      <div>
        <div style={{ fontSize: 13, fontWeight: 700, letterSpacing: "0.06em", textTransform: "uppercase", color: "var(--amber-700)", marginBottom: 7 }}>Important Notice</div>
        <p style={{ fontSize: 14, color: "var(--gray-600)", lineHeight: 1.65, margin: 0 }}><RichText text={x} /></p>
      </div>
    </div>
  );
}

function LegalBlock({ b }) {
  if (b.t === "notice") return <LegalNotice x={b.x} />;
  if (b.t === "h3") return <h2 style={{ fontFamily: "var(--font-display)", fontWeight: 600, fontSize: 22, color: "var(--teal-700)", margin: "30px 0 10px" }}>{b.x}</h2>;
  if (b.t === "p") return <p style={{ fontSize: 15.5, color: "var(--gray-600)", lineHeight: 1.72, margin: "0 0 14px" }}><RichText text={b.x} /></p>;
  if (b.t === "caps") return <p style={{ fontSize: 12.5, fontWeight: 600, letterSpacing: "0.02em", color: "var(--ink-800)", lineHeight: 1.7, margin: "0 0 14px", background: "var(--off-white)", border: "1px solid var(--border)", borderRadius: "var(--radius-md)", padding: "14px 16px" }}>{b.x}</p>;
  if (b.t === "note") return <p style={{ fontSize: 12.5, fontStyle: "italic", color: "var(--gray-500)", lineHeight: 1.6, margin: "0 0 12px" }}>{b.x}</p>;
  if (b.t === "ul") return (
    <ul style={{ margin: "0 0 14px", paddingLeft: 20, display: "flex", flexDirection: "column", gap: 7 }}>
      {b.items.map((it, i) => <li key={i} style={{ fontSize: 15.5, color: "var(--gray-600)", lineHeight: 1.6 }}><RichText text={it} /></li>)}
    </ul>
  );
  if (b.t === "table") return (
    <div role="region" aria-label={b.caption || "Data table"} tabIndex={0} style={{ overflowX: "auto", WebkitOverflowScrolling: "touch", margin: "4px 0 18px", border: "1px solid var(--border)", borderRadius: "var(--radius-md)" }}>
      <table style={{ width: "100%", minWidth: 580, borderCollapse: "collapse", fontFamily: "var(--font-body)" }}>
        {b.caption && <caption style={{ position: "absolute", width: 1, height: 1, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0 0 0 0)", whiteSpace: "nowrap", border: 0 }}>{b.caption}</caption>}
        <thead>
          <tr>
            {b.head.map((h, i) => (
              <th key={i} scope="col" style={{ textAlign: "left", verticalAlign: "top", padding: "12px 16px", background: "var(--off-white)", color: "var(--teal-700)", fontWeight: 700, fontSize: 12.5, letterSpacing: "0.02em", lineHeight: 1.45, borderBottom: "1px solid var(--border)", borderRight: i < b.head.length - 1 ? "1px solid var(--border)" : "none", width: i === 0 ? "26%" : "37%" }}>{h}</th>
            ))}
          </tr>
        </thead>
        <tbody>
          {b.rows.map((r, ri) => (
            <tr key={ri}>
              {r.map((c, ci) => (
                ci === 0
                  ? <th key={ci} scope="row" style={{ textAlign: "left", verticalAlign: "top", padding: "13px 16px", color: "var(--ink-800)", fontWeight: 700, fontSize: 14, lineHeight: 1.55, borderTop: ri ? "1px solid var(--border)" : "none", borderRight: "1px solid var(--border)" }}><RichText text={c} /></th>
                  : <td key={ci} style={{ textAlign: "left", verticalAlign: "top", padding: "13px 16px", color: "var(--gray-600)", fontSize: 14, lineHeight: 1.6, borderTop: ri ? "1px solid var(--border)" : "none", borderRight: ci < r.length - 1 ? "1px solid var(--border)" : "none" }}><RichText text={c} /></td>
              ))}
            </tr>
          ))}
        </tbody>
      </table>
    </div>
  );
  if (b.t === "pharmacies") return (
    <div className="ow-pharm-grid">
      {b.items.map(([name, addr, phone], i) => (
        <div key={i} style={{ background: "var(--off-white)", border: "1px solid var(--border)", borderRadius: "var(--radius-md)", padding: "16px 18px" }}>
          <div style={{ fontWeight: 700, fontSize: 15.5, color: "var(--teal-700)", marginBottom: 5 }}>{name}</div>
          <div style={{ fontSize: 13.5, color: "var(--gray-600)", lineHeight: 1.5 }}>{addr}</div>
          {phone && <div style={{ fontSize: 13.5, color: "var(--gray-500)", marginTop: 3 }}>{phone}</div>}
        </div>
      ))}
    </div>
  );
  return null;
}

function LegalPage({ slug, nav }) {
  const page = OW_LEGAL[slug] || OW_LEGAL.disclaimer;
  return (
    <div>
      <PageHero eyebrow={page.eyebrow} title={page.title} />
      <section style={{ background: "var(--white)" }}>
        <div className="ow-inner" style={{ paddingTop: 36, paddingBottom: 52, maxWidth: 780 }}>
          <p style={{ fontSize: 13, color: "var(--gray-500)", margin: "0 0 24px", fontWeight: 500 }}>{page.updated}</p>
          {page.blocks.map((b, i) => <LegalBlock key={i} b={b} />)}
          <div style={{ display: "flex", flexWrap: "wrap", gap: 12, marginTop: 32, paddingTop: 24, borderTop: "1px solid var(--border)" }}>
            <Button variant="secondary" size="md" onClick={() => nav("contact")}>Contact us</Button>
            <a href="https://patient.leguprecovery.com/login" target="_blank" rel="noopener noreferrer" style={{ textDecoration: "none", display: "inline-flex" }}>
              <Button variant="secondary" size="md">Patient Portal</Button>
            </a>
          </div>
        </div>
      </section>
    </div>
  );
}

Object.assign(window, { LegalPage, OW_LEGAL });
