<?php
    // NOTE: All database and session logic has been removed,
    // but we retain the logic that includes site config variables
    require_once 'get_setting.php'; 
?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title><?php echo htmlspecialchars($site_settings['site_title'] ?? 'ReliParcel Express'); ?> | Terms and Conditions</title> 
        <meta name="description" content="Official Terms and Conditions governing the use of our courier, freight, and logistics services. Read carefully before booking.">
        
        <?php if (isset($use_favicon) && $use_favicon): ?>
        <link rel="icon" type="<?php echo $favicon_mime; ?>" href="<?php echo $favicon_path; ?>">
        <?php else: ?>
        <link rel="icon" type="image/x-icon" href="../assets/images/favicon.ico">
        <?php endif; ?>
        
        <link href="assets/css/style.css" rel="stylesheet">
        <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
        <link rel="stylesheet" href="assets/css/font-awesome-pro.css">
        <link rel="stylesheet" href="assets/css/gtranslate.css">
        <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
        
        <style>
            .text-crimson {
                color: #6d0000 !important;
            }
            .legal-section {
                margin-bottom: 30px;
                padding-bottom: 20px;
                border-bottom: 1px dashed #eee;
            }
            .legal-section h4 {
                font-weight: 700;
                margin-bottom: 15px;
                padding-bottom: 5px;
                border-bottom: 2px solid #fcebeb;
            }
            .legal-section p, .legal-section ul {
                line-height: 1.8;
                font-size: 0.95rem;
                color: #444;
            }
            .legal-section ul {
                list-style: disc;
                margin-left: 20px;
            }
        </style>
    </head>
    <body>
        
        <?php include "nav.php" ?>
        
        <header class="hero-gradient-bg text-white text-center pt-5 pb-5 shadow-lg">
            <div class="container mt-5 pt-5">
			<div class="mx-auto text-center" style="max-width: 800px;">
                <h1 class="display-6 fw-bolder mb-3">SERVICE AGREEMENT TERMS AND CONDITIONS</h1>
                <p class="lead mb-0 fs-5">
                    Effective Date: November 8, 2025. This document governs all services provided by <?php echo htmlspecialchars($site_settings['site_title'] ?? 'ReliParcel'); ?>.
                </p>
			</div>	
            </div>
        </header>

        <section id="legal-content" class="py-5">
            <div class="container">
                <div class="row justify-content-center">
                    <div class="col-lg-10">
                        
                        <p class="mb-4 text-muted">
                            IMPORTANT NOTICE: By utilizing any services provided by <?php echo htmlspecialchars($site_settings['site_title'] ?? 'ReliParcel'); ?> (the "Carrier"), you ("The Shipper") agree to be bound by these Terms and Conditions of Carriage. These terms limit our liability.
                        </p>
                        <hr>
                        
                        <div class="legal-section">
                            <h4 class="text-crimson">Article I: Definitions</h4>
                            <ul>
                                <li>Carrier: Refers to <?php echo htmlspecialchars($site_settings['site_title'] ?? 'ReliParcel'); ?>, including its employees, agents, and independent contractors.</li>
                                <li>Shipper: The party contracting with the Carrier for the carriage of Goods.</li>
                                <li>Consignee: The recipient of the Goods specified on the shipping label.</li>
                                <li>Goods: Any articles of commerce, package, document, or item accepted by the Carrier for transport.</li>
                                <li>Air Waybill (AWB): The non-negotiable document used for air freight shipments, incorporating these Terms.</li>
                            </ul>
                        </div>

                        <div class="legal-section">
                            <h4 class="text-crimson">Article II: Acceptance and Scope of Service</h4>
                            <p>
                                2.1. Agreement: The Shipper agrees that carriage is subject to the conditions herein, and that these Terms apply to all employees and agents of the Carrier.
                            </p>
                            <p>
                                2.2. Documentation: The Shipper is responsible for providing complete and accurate documentation, including the Commercial Invoice, Packing List, and customs declarations. Incorrect or incomplete documentation may result in delays, fines, or seizure of Goods, for which the Carrier accepts no liability.
                            </p>
                        </div>

                        <div class="legal-section">
                            <h4 class="text-crimson">Article III: Prohibited and Restricted Items</h4>
                            <p>
                                The Carrier reserves the right to refuse, hold, or return any Goods deemed unacceptable for transport. Prohibited Goods include, but are not limited to:
                            </p>
                            <ul>
                                <li>Hazardous materials (HAZMAT) not declared and packaged according to IATA/IMO regulations.</li>
                                <li>Illegal goods (e.g., narcotics, counterfeit items).</li>
                                <li>Live animals (unless specifically agreed upon under Cold Chain Logistics terms).</li>
                                <li>Firearms, explosives, and ammunition.</li>
                                <li>Perishable items requiring specialized temperature control without prior agreement.</li>
                            </ul>
                            <p class="text-danger fw-semibold mt-3">
                                NOTE: If the Shipper tenders Prohibited Goods, the Shipper shall indemnify the Carrier against all claims, fines, and expenses incurred as a result.
                            </p>
                        </div>

                        <div class="legal-section">
                            <h4 class="text-crimson">Article IV: Limitation of Liability and Insurance</h4>
                            <p>
                                4.1. Limitation of Liability: The liability of the Carrier for loss or damage to the Goods is strictly limited by national and international conventions (e.g., Montreal Convention for air carriage). Unless the Shipper purchases additional insurance, the Carrier’s liability shall not exceed the lower of:
                            </p>
                            <ul>
                                <li>The proven value of the Goods; or</li>
                                <li>The statutory limit applicable to the mode of transport (e.g., 19 Special Drawing Rights (SDR) per kilogram for Air Freight).</li>
                            </ul>
                            <p>
                                4.2. Indirect Damages: The Carrier shall NOT be liable for any indirect, incidental, special, or consequential loss or damage, including, but not limited to, loss of income, profits, interest, or market.
                            </p>
                            <p>
                                4.3. Time Limits for Claims: Any claims for damage (visible or concealed) or partial loss must be submitted to the Carrier in writing within 7 calendar days of delivery. Claims for total loss or non-delivery must be submitted within 60 days from the date the Goods were accepted by the Carrier.
                            </p>
                            <p>
                                4.4. Enhanced Insurance: The Shipper may purchase enhanced All-Risk Insurance coverage for the full declared commercial value of the Goods at the time of booking.
                            </p>
                        </div>

                        <div class="legal-section">
                            <h4 class="text-crimson">Article V: Delay and Transit Times</h4>
                            <p>
                                5.1. Non-Guaranteed Transit: Delivery and transit times quoted are estimates only and are NOT GUARANTEED unless expressly stated in the Service description (e.g., "International Priority Express").
                            </p>
                            <p>
                                5.2. Circumstances Beyond Control (Force Majeure): The Carrier is not responsible for delays caused by events beyond its control, including but not limited to: Acts of God, war, acts of public enemies, weather conditions, aircraft or vehicle mechanical delays, acts of civil or military authority, or delays due to customs procedures.
                            </p>
                        </div>

                        <div class="legal-section">
                            <h4 class="text-crimson">Article VI: Charges and Payment</h4>
                            <p>
                                6.1. Calculation: All charges are calculated based on the greater of the actual gross weight or the volumetric weight (dimensional weight), as assessed by the Carrier.
                            </p>
                            <p>
                                6.2. Duties and Taxes: If a shipment is sent DDU (Delivered Duty Unpaid) and the Consignee refuses to pay the required duties, the Shipper remains primarily liable for all customs fees, storage charges, and any costs associated with the return or disposal of the Goods.
                            </p>
                        </div>
                        
                        <div class="legal-section" style="border-bottom: none;">
                            <h4 class="text-crimson">Article VII: Governing Law and Jurisdiction</h4>
                            <p>
                                These Terms and Conditions shall be governed by and construed in accordance with the laws of [Your Company's Primary Jurisdiction, e.g., The State of Texas, USA], without regard to its conflict of law provisions. Any dispute arising under these Terms shall be subject to the exclusive jurisdiction of the courts located in [Your Company's Primary City/Region].
                            </p>
                        </div>
                        
                        <div class="alert alert-warning text-center mt-5" role="alert">
                            <i class="bi bi-exclamation-triangle-fill me-2"></i> Agreement to Terms: By clicking 'Proceed to Payment' or engaging our services, you acknowledge you have read, understood, and agreed to be bound by the Terms and Conditions effective on the date of booking.
                        </div>

                    </div>
                </div>
            </div>
        </section>

        <?php include "footer.php" ?>
        <script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js"></script>
        <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
        <?php include "custom_script.php" ?>
    </body>
</html>
