/* Timeless Totes — Legal pages */

function LegalPage({ eyebrow, title, children }) {
  return (
    <main>
      <section style={{ borderBottom: '1px solid var(--line)', padding: 'clamp(26px,4vw,44px) 0', background: 'var(--bone)' }}>
        <div className="wrap-narrow">
          <nav style={{ display: 'flex', alignItems: 'center', gap: 8, fontSize: '.88rem', color: 'var(--ink-faint)', marginBottom: 14 }}>
            <a href="#/" style={{ color: 'var(--ink-soft)' }}>Home</a>
            <span>/</span>
            <span style={{ color: 'var(--ink)', fontWeight: 600 }}>{eyebrow}</span>
          </nav>
          <h1 style={{ fontSize: 'clamp(1.8rem,3vw,2.4rem)' }}>{title}</h1>
          <p style={{ fontSize: '.9rem', color: 'var(--ink-faint)', marginTop: 8 }}>Last updated: June 2026 — Placeholder content for client review</p>
        </div>
      </section>
      <section className="section">
        <div className="wrap-narrow">
          <div style={{ maxWidth: 720, lineHeight: 1.75, color: 'var(--ink-soft)', fontSize: '1rem' }}>
            {children}
          </div>
        </div>
      </section>
    </main>
  );
}

function LegalH2({ children }) {
  return <h2 style={{ fontSize: '1.3rem', color: 'var(--ink)', marginTop: 36, marginBottom: 10 }}>{children}</h2>;
}
function LegalP({ children }) {
  return <p style={{ marginBottom: 16 }}>{children}</p>;
}

/* ── Privacy Policy ───────────────────────────────────── */
function PrivacyPage() {
  return (
    <LegalPage eyebrow="Privacy Policy" title="Privacy Policy">
      <LegalP>Timeless Totes (Simply Sew LLC) is a family-owned custom bag manufacturer based in Santa Ana, California. This Privacy Policy describes how we collect and use information submitted through this website.</LegalP>

      <LegalH2>Information we collect</LegalH2>
      <LegalP>When you submit a quote request or contact form on this site, we collect the information you provide — such as your name, business name, email address, phone number, shipping location, and project details. We do not collect payment information through this website. All invoicing is handled separately through QuickBooks after your written approval.</LegalP>

      <LegalH2>How we use your information</LegalH2>
      <LegalP>We use the information you submit to respond to your inquiry, prepare a quote, communicate about your order, and follow up on your project. We do not sell, rent, or share your information with third parties for marketing purposes.</LegalP>

      <LegalH2>Email and communications</LegalH2>
      <LegalP>By submitting a quote request or contact form, you consent to receiving follow-up communications from Timeless Totes regarding your inquiry. We will not add you to any mailing list without your explicit consent.</LegalP>

      <LegalH2>Cookies and analytics</LegalH2>
      <LegalP>This site may use basic analytics tools to understand how visitors use the site. No personally identifiable information is collected through cookies. You can disable cookies in your browser settings at any time.</LegalP>

      <LegalH2>Data retention</LegalH2>
      <LegalP>Quote and contact form submissions are retained for the purpose of order follow-up and internal records. You may request deletion of your information by contacting us at timelesstotes@yahoo.com.</LegalP>

      <LegalH2>Contact</LegalH2>
      <LegalP>Questions about this policy? Reach us at timelesstotes@yahoo.com or (714) 973-6353.</LegalP>
    </LegalPage>
  );
}

/* ── Terms of Service ─────────────────────────────────── */
function TermsPage() {
  return (
    <LegalPage eyebrow="Terms of Service" title="Terms of Service">
      <LegalP>By using this website, you agree to the following terms. This site is operated by Timeless Totes (Simply Sew LLC), Santa Ana, California.</LegalP>

      <LegalH2>No purchase on this website</LegalH2>
      <LegalP>This website does not process payments or complete purchases. Submitting a quote request is not an order and does not create a binding contract. All orders are confirmed through a separate written quote reviewed and approved by both parties.</LegalP>

      <LegalH2>Quote process</LegalH2>
      <LegalP>Submitting a quote request starts a review process. Timeless Totes will review your request, confirm specifications and artwork, and provide a written quote. No production begins and no payment is due until you have reviewed and approved both the digital proof and the final written quote.</LegalP>

      <LegalH2>Accuracy of information</LegalH2>
      <LegalP>Pricing estimates shown on this site are illustrative only. Final pricing is confirmed in writing on your quote and may vary based on artwork complexity, materials, custom specifications, and order quantity. Timeless Totes reserves the right to correct pricing errors before confirming any order.</LegalP>

      <LegalH2>Artwork and intellectual property</LegalH2>
      <LegalP>By submitting artwork or logo files, you represent that you own or are authorized to use the artwork for commercial printing. Timeless Totes is not liable for intellectual property claims arising from artwork submitted by customers.</LegalP>

      <LegalH2>Limitations</LegalH2>
      <LegalP>This website and its content are provided as-is. Timeless Totes makes no warranties, express or implied, about the accuracy of estimates or availability of products. Liability is limited to the amount paid for a specific confirmed order.</LegalP>

      <LegalH2>Contact</LegalH2>
      <LegalP>Questions about these terms? Email timelesstotes@yahoo.com or call (714) 973-6353.</LegalP>
    </LegalPage>
  );
}

/* ── Shipping Policy ──────────────────────────────────── */
function ShippingPolicyPage() {
  return (
    <LegalPage eyebrow="Shipping Policy" title="Shipping Policy">
      <LegalP>Timeless Totes ships custom orders to addresses within the United States. Shipping terms are confirmed on your written quote before production begins.</LegalP>

      <LegalH2>Standard lead time</LegalH2>
      <LegalP>Standard production lead time is approximately 6-8 weeks from the date of artwork approval, quote approval, and invoice/payment confirmation. Lead times may vary based on order complexity, component availability, and production schedule. Timeless Totes will communicate any delays that affect your timeline.</LegalP>

      <LegalH2>Rush orders</LegalH2>
      <LegalP>If your order has a specific required deadline, please indicate this in your quote request. Rush or front-of-line scheduling may be available depending on production capacity and will be reviewed case-by-case. Any applicable rush fee will be confirmed in writing on your final quote before invoicing. Rush availability is not guaranteed.</LegalP>

      <LegalH2>Shipping method and cost</LegalH2>
      <LegalP>Shipping method and cost are determined based on order size, destination, and timeline, and will be included in your written quote. Timeless Totes ships via standard domestic carriers. Expedited shipping is available on request and may incur additional cost.</LegalP>

      <LegalH2>Shipping destination</LegalH2>
      <LegalP>We ship to addresses within the continental United States. For orders outside the continental US, please contact us to discuss availability and rates.</LegalP>

      <LegalH2>Receiving your order</LegalH2>
      <LegalP>Please inspect your order promptly upon delivery. If you notice a production defect or shipping damage, contact us within 5 business days at timelesstotes@yahoo.com with photos and your order details.</LegalP>

      <LegalH2>Contact</LegalH2>
      <LegalP>Questions about shipping? Email timelesstotes@yahoo.com or call (714) 973-6353.</LegalP>
    </LegalPage>
  );
}

/* ── Quote / Production Policy ────────────────────────── */
function QuotePolicyPage() {
  return (
    <LegalPage eyebrow="Quote & Production Policy" title="Quote & Production Policy">
      <LegalP>This page explains how the Timeless Totes quoting and production process works. Our process is designed to protect both the customer and the production team — no surprises, no payment before approval.</LegalP>

      <LegalH2>How quoting works</LegalH2>
      <LegalP>Submitting a quote request through this website begins a review process. A member of the Timeless Totes team will review your request and follow up, typically within one business day. Your quote is not confirmed until you receive a written quote from Timeless Totes and indicate your approval.</LegalP>

      <LegalH2>Order minimum</LegalH2>
      <LegalP>The minimum order quantity is 50 pieces total across your order. Custom size requests have a 100-piece minimum due to the additional production setup involved. Minimums are confirmed on your quote.</LegalP>

      <LegalH2>Artwork review and proof approval</LegalH2>
      <LegalP>Every artwork file is reviewed by our artwork partner before production. You will receive a digital proof for your approval. No production begins until you have approved the proof in writing. If an artwork file requires cleanup or preparation before it can go to screen, we will advise you and confirm any artwork prep fee before proceeding.</LegalP>

      <LegalH2>Quote approval and invoicing</LegalH2>
      <LegalP>After reviewing your request and preparing a proof, Timeless Totes will send a confirmed written quote via QuickBooks. Payment is due after you have approved both the digital proof and the written quote. We do not collect payment on this website and do not invoice before your written approval.</LegalP>

      <LegalH2>Changes after approval</LegalH2>
      <LegalP>Changes to specifications, artwork, or quantity after you have approved a quote may require a revised quote and may affect your production timeline. Please review your quote and proof carefully before approving.</LegalP>

      <LegalH2>Cancellations</LegalH2>
      <LegalP>Orders may be cancelled before production begins without charge. If production has already started after your written approval, cancellation may result in charges for work completed to that point. Contact us as soon as possible if your needs change.</LegalP>

      <LegalH2>Rush and tight timeline requests</LegalH2>
      <LegalP>If you have a deadline that falls inside the standard 6-8 week production window, please indicate this in your quote request. We will review whether your timeline is achievable and communicate clearly. Rush availability is not guaranteed. Any rush fee will be confirmed in writing before invoicing.</LegalP>

      <LegalH2>Contact</LegalH2>
      <LegalP>Questions about the quote process? Email timelesstotes@yahoo.com or call (714) 973-6353.</LegalP>
    </LegalPage>
  );
}

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