use leptos::prelude::*;
use crate::components::layout::{PageContent, PageTitle};

#[component]
pub fn TermsPage() -> impl IntoView {
    view! {
        <PageContent id="terms-page">
            <div class="terms-page">
                <PageTitle title="Terms of Service".to_string() id="terms-title" />
                
                <div id="terms-page__content">
                    <h2>"This User Agreement (the "Agreement") is a public offer and defines the terms of use of the Telegram bot @V_Proxy_bot (the "Bot"), hosted in the Telegram messenger, between the Bot Administration (the "Administration") and the User (the "User")."</h2>

                    <h3>"1. Subject of the Agreement"</h3>
                    <p>"1.1. The Administration provides the User with access to the Bot and its functionality under the conditions set out in this Agreement."<br/>
                    "1.2. By using the Bot, the User confirms their full and unconditional acceptance of the terms of this Agreement."<br/>
                    "1.3. This Agreement is a legally binding document."</p>

                    <h3>"2. Description of the Bot and its Functionality"</h3>
                    <p>"2.1. The @V_Proxy_bot is intended for the sale of proxy servers."<br/>
                    "2.2. The list of features and capabilities of the Bot may be changed by the Administration without prior notice to the User."</p>

                    <h3>"3. Rules of Use"</h3>
                    <p>"3.1. The User undertakes to use the Bot exclusively in accordance with its intended purpose and within the framework of applicable law."<br/>
                    "3.2. The User is prohibited from:"</p>
                    <ul>
                      <li>"Attempting to gain unauthorized access to information contained in the Bot."</li>
                      <li>"Using the Bot to distribute malicious software, spam, or other illegal information."</li>
                      <li>"Interfering with the operation of the Bot, modifying its code or functionality."</li>
                      <li>"Violating the rights of third parties when using the Bot."</li>
                    </ul>
                    <p>"3.3. The Administration reserves the right to restrict or terminate the User's access to the Bot in case of violation of this Agreement."</p>

                    <h3>"4. Liability of the Parties"</h3>
                    <p>"4.1. The Administration is not responsible for any losses caused to the User as a result of using the Bot, including possible errors, downtime, data loss, etc."<br/>
                    "4.2. The User bears full responsibility for their actions when using the Bot, as well as for the consequences of such actions."<br/>
                    "4.3. The Administration is not responsible for the content of information posted by the User in the Bot."</p>

                    <h3>"5. Processing of Personal Data"</h3>
                    <p>"5.1. The Administration undertakes to maintain the confidentiality of the User's personal data obtained during the use of the Bot."<br/>
                    "5.2. Detailed information on the processing of personal data is contained in the Privacy Policy, which is an integral part of this Agreement."</p>

                    <h3>"6. Term and Amendments"</h3>
                    <p>"6.1. This Agreement enters into force upon its acceptance by the User and remains valid indefinitely."<br/>
                    "6.2. The Administration reserves the right to amend this Agreement. Information about changes will be posted in the Bot. The User is deemed to have accepted the changes if they continue to use the Bot after such amendments."</p>

                    <h3>"7. Dispute Resolution"</h3>
                    <p>"7.1. All disputes arising between the Administration and the User in connection with this Agreement shall be resolved in accordance with applicable law."</p>

                    <h3>"8. Other Terms"</h3>
                    <p>"8.1. In all other matters not covered by this Agreement, the parties shall be guided by applicable law."<br/>
                    "8.2. If any provision of this Agreement is found invalid, this shall not affect the validity of the remaining provisions."</p>

                    <p><strong>"Contact Information of the Administration:"</strong><br/>
                    <a href="https://t.me/VProxy_Support_bot">"https://t.me/VProxy_Support_bot"</a></p>
                </div>
            </div>
        </PageContent>
    }
}
