import { Metadata } from "next";

export const metadata: Metadata = {
  title: "Terms of Service – Americas.Pet",
  description: "Read the Americas.Pet terms of service governing use of our website, products, and insurance services.",
};

export default function TermsPage() {
  return (
    <div className="min-h-screen bg-gray-50">
      <div className="bg-primary-600 text-white py-14">
        <div className="max-w-4xl mx-auto px-4 text-center">
          <h1 className="text-4xl font-bold mb-3">Terms of Service</h1>
          <p className="text-primary-100">Last updated: January 15, 2026</p>
        </div>
      </div>

      <div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-14">
        <div className="bg-white rounded-2xl shadow-sm p-8 lg:p-12 border border-gray-100 prose prose-gray max-w-none">
          <h2>1. Agreement to Terms</h2>
          <p>By accessing or using the Americas.Pet website ("Service"), you agree to be bound by these Terms of Service ("Terms"). If you disagree with any part of the terms, you may not access the Service. These Terms apply to all visitors, users, and others who access or use the Service.</p>

          <h2>2. Products and Services</h2>
          <p>Americas.Pet provides an online marketplace for pet products and pet insurance services. All products are subject to availability. We reserve the right to limit quantities, refuse orders, or discontinue products without prior notice.</p>
          <ul>
            <li>Product descriptions and images are as accurate as possible but may vary slightly from actual products.</li>
            <li>Prices are subject to change without notice. Sale prices are valid for the duration indicated.</li>
            <li>We are not responsible for typographical errors in pricing. If an error occurs, we will notify you and give you the option to proceed or cancel.</li>
          </ul>

          <h2>3. Orders and Payment</h2>
          <p>When you place an order, you are making an offer to purchase. We reserve the right to accept or decline any order. Payment is processed at the time of order placement via secure third-party processors.</p>
          <ul>
            <li>You must provide accurate and complete billing and shipping information.</li>
            <li>We accept Visa, Mastercard, American Express, and other major payment methods.</li>
            <li>By placing an order, you represent that the payment method used belongs to you or you are authorized to use it.</li>
          </ul>

          <h2>4. Shipping and Delivery</h2>
          <p>Shipping times are estimates and not guaranteed. Americas.Pet is not responsible for delays caused by carriers, weather, or other circumstances beyond our control. Risk of loss transfers to you upon delivery to the carrier.</p>

          <h2>5. Returns and Refunds</h2>
          <p>Our 30-day return policy applies to eligible items as described on our Shipping & Returns page. Refunds are processed within 5 business days of receiving the returned item. Original shipping costs are non-refundable unless the return is due to our error.</p>

          <h2>6. Pet Insurance Services</h2>
          <p>Pet insurance plans offered through Americas.Pet are subscription-based services. Coverage details, exclusions, waiting periods, and claim procedures are outlined in your policy documents. Insurance plans are subject to their own specific terms and conditions provided at enrollment.</p>
          <ul>
            <li>Pre-existing conditions are not covered unless explicitly stated in your plan.</li>
            <li>You may cancel your insurance plan at any time. Refunds for prepaid annual plans are prorated.</li>
            <li>Claims must be submitted within 90 days of the date of service.</li>
          </ul>

          <h2>7. User Accounts</h2>
          <p>You are responsible for safeguarding your account credentials and for all activities under your account. Notify us immediately of any unauthorized access. We reserve the right to terminate accounts that violate these Terms.</p>

          <h2>8. Intellectual Property</h2>
          <p>All content on Americas.Pet — including text, graphics, logos, images, and software — is the property of Americas.Pet or its content suppliers and is protected by intellectual property laws. You may not reproduce, distribute, or create derivative works without written permission.</p>

          <h2>9. Limitation of Liability</h2>
          <p>Americas.Pet shall not be liable for any indirect, incidental, special, consequential, or punitive damages arising from your use of the Service, products, or insurance plans. Our total liability shall not exceed the amount paid by you in the preceding 12 months.</p>

          <h2>10. Indemnification</h2>
          <p>You agree to indemnify and hold Americas.Pet harmless from any claims, damages, or expenses arising from your use of the Service, violation of these Terms, or infringement of any third-party rights.</p>

          <h2>11. Governing Law</h2>
          <p>These Terms shall be governed by the laws of the State of Florida, without regard to conflict of law provisions. Any disputes shall be resolved in the courts of Miami-Dade County, Florida.</p>

          <h2>12. Changes to Terms</h2>
          <p>We reserve the right to modify these Terms at any time. Changes will be posted on this page with an updated revision date. Continued use of the Service after changes constitutes acceptance of the new Terms.</p>

          <h2>13. Contact</h2>
          <p>If you have questions about these Terms, contact us at:</p>
          <p>Americas.Pet<br />123 Pet Avenue<br />Miami, FL 33101<br />Email: legal@americas.pet<br />Phone: 1-800-AMERICAS-PET</p>
        </div>
      </div>
    </div>
  );
}
