
import React, { useEffect } from 'react'
import { Helmet } from 'react-helmet-async'

export default function TermsofUse() {
  useEffect(() => {
    window.scrollTo(0, 0)
  }, [])

  return (
    <section className="section">
      <Helmet><title>Terms of Use | Annaville SDA Church</title></Helmet>
      <div className="container max-w-4xl">
        <h1 className="font-heading text-display30 mb-8">Terms of Use</h1>

        <div className="prose prose-lg max-w-none">
          <p className="text-muted mb-6">
            <em>Last updated: {new Date().toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric' })}</em>
          </p>

          <h2 className="font-heading text-h2 mt-8 mb-4">Agreement to Terms</h2>
          <p className="text-body mb-4">
            By accessing and using the Annaville Seventh-day Adventist Church website ("Website"), you accept and agree
            to be bound by the terms and provisions of this agreement. If you do not agree to abide by these Terms of Use,
            please do not use this Website.
          </p>

          <h2 className="font-heading text-h2 mt-8 mb-4">Use of Website</h2>
          <p className="text-body mb-4">
            This Website is provided for informational and ministry purposes. You may use the Website for lawful purposes
            only. You agree not to use the Website:
          </p>
          <ul className="list-disc pl-6 mb-4 space-y-2">
            <li>In any way that violates any applicable federal, state, local, or international law or regulation</li>
            <li>To transmit any material that is unlawful, threatening, abusive, harassing, defamatory, vulgar, obscene, or otherwise objectionable</li>
            <li>To impersonate or attempt to impersonate the church, a church employee, another user, or any other person or entity</li>
            <li>To engage in any conduct that restricts or inhibits anyone's use or enjoyment of the Website</li>
            <li>To introduce any viruses, trojan horses, worms, logic bombs, or other material that is malicious or technologically harmful</li>
          </ul>

          <h2 className="font-heading text-h2 mt-8 mb-4">Intellectual Property Rights</h2>
          <p className="text-body mb-4">
            The Website and its entire contents, features, and functionality (including but not limited to all information,
            software, text, displays, images, video, and audio, and the design, selection, and arrangement thereof) are
            owned by Annaville Seventh-day Adventist Church, its licensors, or other providers of such material and are
            protected by United States and international copyright, trademark, patent, trade secret, and other intellectual
            property or proprietary rights laws.
          </p>
          <p className="text-body mb-4">
            You may view, download, and print pages from the Website for your personal, non-commercial use, subject to the
            restrictions set out below and elsewhere in these Terms of Use:
          </p>
          <ul className="list-disc pl-6 mb-4 space-y-2">
            <li>You must not modify copies of any materials from this Website</li>
            <li>You must not use any illustrations, photographs, video or audio sequences, or any graphics separately from the accompanying text</li>
            <li>You must not delete or alter any copyright, trademark, or other proprietary rights notices from copies of materials from this Website</li>
          </ul>

          <h2 className="font-heading text-h2 mt-8 mb-4">User Contributions</h2>
          <p className="text-body mb-4">
            The Website may contain features that allow users to post, submit, publish, display, or transmit content or
            materials (collectively, "User Contributions") on or through the Website. All User Contributions must comply
            with these Terms of Use.
          </p>
          <p className="text-body mb-4">
            Any User Contribution you post to the Website will be considered non-confidential and non-proprietary. By
            providing any User Contribution on the Website, you grant us the right to use, reproduce, modify, perform,
            display, distribute, and otherwise disclose to third parties any such material for any purpose.
          </p>

          <h2 className="font-heading text-h2 mt-8 mb-4">Donations</h2>
          <p className="text-body mb-4">
            Donations made through this Website are processed securely through third-party payment processors. All donations
            are final and non-refundable unless otherwise required by law. Annaville Seventh-day Adventist Church is a
            501(c)(3) nonprofit organization, and donations may be tax-deductible to the extent allowed by law.
          </p>

          <h2 className="font-heading text-h2 mt-8 mb-4">Links to Third-Party Websites</h2>
          <p className="text-body mb-4">
            This Website may contain links to third-party websites or services that are not owned or controlled by
            Annaville Seventh-day Adventist Church. We have no control over, and assume no responsibility for, the content,
            privacy policies, or practices of any third-party websites or services. You acknowledge and agree that we shall
            not be responsible or liable for any damage or loss caused by or in connection with the use of any such content,
            goods, or services available on or through any such websites or services.
          </p>

          <h2 className="font-heading text-h2 mt-8 mb-4">Disclaimer of Warranties</h2>
          <p className="text-body mb-4">
            The Website is provided on an "AS IS" and "AS AVAILABLE" basis. We make no representations or warranties of any
            kind, express or implied, as to the operation of the Website or the information, content, materials, or products
            included on the Website. You expressly agree that your use of the Website is at your sole risk.
          </p>
          <p className="text-body mb-4">
            To the full extent permissible by applicable law, we disclaim all warranties, express or implied, including,
            but not limited to, implied warranties of merchantability and fitness for a particular purpose.
          </p>

          <h2 className="font-heading text-h2 mt-8 mb-4">Limitation of Liability</h2>
          <p className="text-body mb-4">
            In no event will Annaville Seventh-day Adventist Church, its officers, directors, employees, or agents be
            liable to you or any third party for any direct, indirect, consequential, exemplary, incidental, special, or
            punitive damages, including lost profit, lost revenue, loss of data, or other damages arising from your use of
            the Website, even if we have been advised of the possibility of such damages.
          </p>

          <h2 className="font-heading text-h2 mt-8 mb-4">Indemnification</h2>
          <p className="text-body mb-4">
            You agree to defend, indemnify, and hold harmless Annaville Seventh-day Adventist Church, its officers,
            directors, employees, and agents from and against any claims, liabilities, damages, judgments, awards, losses,
            costs, expenses, or fees (including reasonable attorneys' fees) arising out of or relating to your violation of
            these Terms of Use or your use of the Website.
          </p>

          <h2 className="font-heading text-h2 mt-8 mb-4">Governing Law</h2>
          <p className="text-body mb-4">
            These Terms of Use shall be governed by and construed in accordance with the laws of the State of Texas,
            without regard to its conflict of law provisions. Any legal action or proceeding arising under these Terms of
            Use will be brought exclusively in the federal or state courts located in Nueces County, Texas.
          </p>

          <h2 className="font-heading text-h2 mt-8 mb-4">Changes to Terms</h2>
          <p className="text-body mb-4">
            We reserve the right to modify these Terms of Use at any time. We will notify you of any changes by posting
            the new Terms of Use on this page and updating the "Last updated" date. Your continued use of the Website
            following the posting of changes constitutes your acceptance of such changes.
          </p>

          <h2 className="font-heading text-h2 mt-8 mb-4">Contact Information</h2>
          <p className="text-body mb-4">
            If you have any questions about these Terms of Use, please contact us:
          </p>
          <div className="bg-sand p-6 rounded-lg mb-8">
            <p className="mb-2"><strong>Annaville Seventh-day Adventist Church</strong></p>
            <p className="mb-2">2710 Violet Rd, Corpus Christi, TX 78410</p>
            <p className="mb-2">Phone: <a href="tel:+13612415501" className="text-primary hover:underline">(361) 241-5501</a></p>
            <p>Email: <a href="mailto:info@annavillesda.org" className="text-primary hover:underline">info@annavillesda.org</a></p>
          </div>
        </div>
      </div>
    </section>
  )
}
