import React from "react";

export function DisclaimerPage() {
  return (
    <div className="my-16 flex flex-col gap-8 text-zinc-600 dark:text-zinc-400">
      <h2 className="text-center text-3xl font-bold">Service Agreement and Disclaimer</h2>

      { /* Each section is now enclosed in a styled block */ }
      <section className="bg-zinc-100 dark:bg-zinc-700 p-4 rounded-md shadow-sm">
        <h3 className="text-2xl font-semibold mb-4">About the Service</h3>
        <p className="text-xl">
          This website and <a href="https://t.me/NyxTheBot" className="text-blue-600 hover:text-blue-800">@NyxTheBot</a> are privately hosted services, operated as a non-commercial hobby project. They offer a service for generating images from text inputs using the Stable Diffusion model via a Telegram bot <a href="https://t.me/NyxTheBot" className="text-blue-600 hover:text-blue-800">@NyxTheBot</a>. This service is provided free of charge, without any commercial intent, and relies solely on voluntary tips for its operating costs. You can support this project with a tip at <a href="https://ko-fi.com/nyxthebot" className="text-blue-600 hover:text-blue-800">ko-fi.com/nyxthebot</a>.
        </p>
      </section>

      <section className="bg-zinc-100 dark:bg-zinc-700 p-4 rounded-md shadow-sm">
        <h3 className="text-2xl font-semibold mb-4">Disclaimer of Warranties and Limitation of Liability</h3>
        <p className="text-xl">
          THIS WEBSITE AND ASSOCIATED SERVICES ARE PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND SERVICE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
        </p>
      </section>

      <section className="bg-zinc-100 dark:bg-zinc-700 p-4 rounded-md shadow-sm">
        <h3 className="text-2xl font-semibold mb-4">Open Source</h3>
        <p className="text-xl mb-2">
          This service is open source. The source code can be explored and utilized for your own projects.
        </p>
        <ul className="list-disc pl-6">
          <li className="text-xl">
            Find the source code at <a href="https://git.foxo.me/Akiru/nyx" className="text-blue-600 hover:text-blue-800">git.foxo.me/Akiru/nyx</a>
          </li>
          <li className="text-xl">
            Originally forked from <a href="https://git.foxo.me/pinks/eris" className="text-blue-600 hover:text-blue-800">git.foxo.me/pinks/eris</a>
          </li>
        </ul>
      </section>

      <section className="bg-zinc-100 dark:bg-zinc-700 p-4 rounded-md shadow-sm">
        <h3 className="text-2xl font-semibold mb-4">User Responsibilities</h3>
        <p className="text-xl">
          Users are solely responsible for the inputs they provide and the resulting outputs. Users must ensure that their use of the service complies with all applicable laws and regulations. The service should not be used for generating content that is considered illegal or harmful in applicable jurisdictions or interpretations of law. Content generated by this service is fictitious, generated by a randomized computing process, and any similarity to existing persons, objects, entities or situations is unintentional, regardless of input by the user.
        </p>
      </section>
      
      <section className="bg-zinc-100 dark:bg-zinc-700 p-4 rounded-md shadow-sm">
        <h3 className="text-2xl font-semibold mb-4">Data Handling and Privacy</h3>
            <p className="text-xl">
            In the course of using this service, specific data may be collected and stored. This includes associating your Telegram username with the prompts you provide to the bot and the resulting images generated. Our collection and use of this data is solely for the purpose of providing and improving the service. We are committed to handling your data responsibly and safely.
            </p>  
            <p className="text-xl">
            Please be aware that your interactions with the bot, including the prompts you submit and the images generated, are logged and may be stored for service optimization, troubleshooting, and enhancing user experience. We endeavor to protect the privacy and integrity of your data, and ensure that it is used only for the intended purposes of this service. However, since the service integrates with third parties (i.e. Telegram and potentially services local to you for data transport and storage), your use will also be subject to those third parties' data handling and privacy policies that are not within our scope.
            </p>
            <p className="text-xl">
            We respect your privacy and are dedicated to safeguarding your personal information. If you have any concerns or questions about how your data is handled, please feel free to contact us.
            </p>
      </section>

      <section className="bg-zinc-100 dark:bg-zinc-700 p-4 rounded-md shadow-sm">
        <h3 className="text-2xl font-semibold mb-4">External Links</h3>
        <p className="text-xl">
          This website may contain links to external websites that are not operated by us. We have no control over the content and practices of these sites and cannot accept responsibility or liability for their respective privacy policies.
        </p>
      </section>

      <section className="bg-zinc-100 dark:bg-zinc-700 p-4 rounded-md shadow-sm">
        <h3 className="text-2xl font-semibold mb-4">Amendments to the Agreement</h3>
        <p className="text-xl">
          The host reserves the right to make changes to this service agreement at any time without notice.
        </p>
      </section>
    </div>
  );
}
