<?php
require_once '../ext/db.php'; 

// --- SEO CONFIGURATION ---
$pageTitle = "Terms of Service | Starent.";
$pageDesc = "Read the Terms of Service for Starent. By accessing our website, you agree to comply with these terms and conditions.";
$currentUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$baseUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]";

// --- SCHEMA.ORG ---
$schemaData = [
    "@context" => "https://schema.org",
    "@graph" => [
        [
            "@type" => "NewsMediaOrganization",
            "@id" => $baseUrl . "/#organization",
            "name" => "Starent.",
            "url" => $baseUrl
        ],
        [
            "@type" => "WebPage",
            "@id" => $currentUrl,
            "url" => $currentUrl,
            "name" => $pageTitle,
            "description" => $pageDesc,
            "isPartOf" => ["@id" => $baseUrl . "/#website"]
        ]
    ]
];
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    <title><?php echo $pageTitle; ?></title>
    <meta name="description" content="<?php echo $pageDesc; ?>">
    <link rel="canonical" href="<?php echo $currentUrl; ?>">
    <meta name="robots" content="noindex, follow">
    
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link href="https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,400&family=Oswald:wght@400;500;700&family=Poppins:wght@400;600;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    
    <link rel="stylesheet" href="/styles/home.css">
    <?php include '../ext/header.php' ?>

    <style>
        .terms-header {
            background: #f8fafc;
            padding: 60px 20px;
            text-align: center;
            border-bottom: 1px solid #e2e8f0;
        }

        .terms-header h1 {
            font-family: 'Oswald', sans-serif;
            font-size: 3rem;
            text-transform: uppercase;
            color: #1e293b;
            margin: 0 0 10px 0;
        }

        .terms-header span {
            color: #64748b;
            font-size: 0.9rem;
            text-transform: uppercase;
            font-weight: 600;
        }

        .terms-content {
            max-width: 800px;
            margin: 60px auto;
            padding: 0 20px;
        }

        .terms-section {
            margin-bottom: 40px;
        }

        .terms-section h2 {
            font-family: 'Oswald', sans-serif;
            font-size: 1.8rem;
            color: #1e293b;
            margin-bottom: 15px;
            border-left: 4px solid #0ea5e9;
            padding-left: 15px;
        }

        .terms-section p {
            color: #475569;
            line-height: 1.8;
            margin-bottom: 15px;
            font-size: 1rem;
        }

        .terms-section ul {
            list-style: disc;
            margin-left: 20px;
            color: #475569;
            line-height: 1.8;
        }

        .terms-section ul li {
            margin-bottom: 10px;
        }
    </style>

    <script type="application/ld+json">
        <?php echo json_encode($schemaData, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); ?>
    </script>
</head>
<body>
    <?php include '../ext/nav.php' ?>

    <header class="terms-header">
        <div class="container">
            <h1>Terms of Service</h1>
            <span>Effective Date: 07 january 2026</span>
        </div>
    </header>

    <div class="container">
        <div class="terms-content">
            
            <section class="terms-section">
                <h2>1. Acceptance of Terms</h2>
                <p>Welcome to <strong>Starent.</strong> By accessing or using our website, you agree to be bound by these Terms of Service and our Privacy Policy. If you do not agree to these terms, please do not use our services.</p>
            </section>

            <section class="terms-section">
                <h2>2. Intellectual Property Rights</h2>
                <p>All content published on Starent., including but not limited to articles, images, logos, graphics, and code, is the property of Starent. or its content creators and is protected by copyright laws.</p>
                <p>You may view, read, and share our content for personal, non-commercial use. You may not reproduce, distribute, modify, or create derivative works from our content without prior written consent.</p>
            </section>

            <section class="terms-section">
                <h2>3. User Conduct</h2>
                <p>When using our website, you agree not to:</p>
                <ul>
                    <li>Use the site for any unlawful purpose.</li>
                    <li>Attempt to gain unauthorized access to our servers or database.</li>
                    <li>Submit false or misleading information through our contact forms.</li>
                    <li>Engage in any activity that disrupts or interferes with the site's performance.</li>
                </ul>
            </section>

            <section class="terms-section">
                <h2>4. Disclaimer of Warranties</h2>
                <p>The content on Starent. is provided for general information and entertainment purposes only. While we strive for accuracy, we make no warranties, expressed or implied, regarding the completeness, reliability, or accuracy of the information presented.</p>
                <p>Your use of the website is at your own risk. The site is provided on an "as is" and "as available" basis.</p>
            </section>

            <section class="terms-section">
                <h2>5. Limitation of Liability</h2>
                <p>In no event shall Starent., its owners, or its affiliates be liable for any direct, indirect, incidental, or consequential damages arising out of your use of, or inability to use, this website.</p>
            </section>

            <section class="terms-section">
                <h2>6. Third-Party Links</h2>
                <p>Our website may contain links to third-party websites or services that are not owned or controlled by Starent. We have no control over, and assume no responsibility for, the content, privacy policies, or practices of any third-party websites.</p>
            </section>

            <section class="terms-section">
                <h2>7. Changes to Terms</h2>
                <p>We reserve the right to modify these terms at any time. We will notify users of any changes by updating the "Effective Date" at the top of this page. Your continued use of the site after any changes constitutes your acceptance of the new terms.</p>
            </section>

            <section class="terms-section">
                <h2>8. Contact Us</h2>
                <p>If you have any questions about these Terms of Service, please contact us at <a href="mailto:info@starent.co.za" style="color:#0ea5e9;">info@starent.co.za</a>.</p>
            </section>

        </div>
    </div>

    <?php include '../ext/footer.php' ?>
</body>
</html>