<?php
require_once '../ext/db.php'; 

// --- SEO CONFIGURATION ---
$pageTitle = "Privacy Policy | Starent.";
$pageDesc = "Read our privacy policy to understand how Starent. handles your data. We prioritize transparency and do not use internal tracking cookies.";
$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">
    
    <?php include '../ext/header.php' ?>
    <style>
        .policy-header {
            background: #f8fafc;
            padding: 60px 20px;
            text-align: center;
            border-bottom: 1px solid #e2e8f0;
        }

        .policy-header h1 {
            font-family: 'Oswald', sans-serif;
            font-size: 3rem;
            text-transform: uppercase;
            color: #1e293b;
            margin: 0 0 10px 0;
        }

        .policy-header span {
            color: #64748b;
            font-size: 0.9rem;
            text-transform: uppercase;
            font-weight: 600;
            font-family: "Roboto", serif;
        }

        .policy-content {
            max-width: 800px;
            margin: 60px auto;
            padding: 0 20px;
        }

        .policy-section {
            margin-bottom: 40px;
        }

        .policy-section h2 {
            font-family: 'Oswald', sans-serif;
            font-size: 1.8rem;
            color: #1e293b;
            margin-bottom: 15px;
            border-left: 4px solid #0ea5e9;
            padding-left: 15px;
        }

        .policy-section p {
            color: #475569;
            line-height: 1.8;
            margin-bottom: 15px;
            font-size: 1rem;
            font-family: "Roboto", serif;
        }

        .policy-section ul {
            list-style: disc;
            margin-left: 20px;
            color: #475569;
            line-height: 1.8;
            font-family: "Roboto", serif;
        }

        .policy-section ul li {
            margin-bottom: 10px;
        }

        .policy-contact {
            background: #f0f9ff;
            border: 1px solid #0ea5e9;
            padding: 30px;
            border-radius: 8px;
            text-align: center;
            font-family: "Roboto", serif;
        }

        .policy-contact h3 {
            margin-top: 0;
            color: #0369a1;
        }

        .policy-contact a {
            color: #0ea5e9;
            font-weight: 600;
            text-decoration: underline;
            font-family: "Roboto", serif;
        }
    </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="policy-header">
        <div class="container">
            <h1>Privacy Policy</h1>
            <span>Last Updated: 07 january 2026</span>
        </div>
    </header>

    <div class="container">
        <div class="policy-content">
            
            <section class="policy-section">
                <h2>1. Introduction</h2>
                <p>Welcome to <strong>Starent.</strong> We value your privacy and are committed to protecting your personal information. This Privacy Policy outlines how we collect, use, and safeguard your data when you visit our website.</p>
                <p>By using our website, you agree to the terms outlined in this policy.</p>
            </section>

            <section class="policy-section">
                <h2>2. No Personal Data Collection</h2>
                <p><strong>Starent.</strong> operates with a privacy-first approach. We do not require you to create an account to read our articles, nor do we collect personally identifiable information (PII) such as your name, address, or phone number simply by browsing the site.</p>
                <p>We do not use internal tracking cookies to monitor your individual behavior or build a profile on you.</p>
            </section>

            <section class="policy-section">
                <h2>3. Use of Google Analytics</h2>
                <p>While we do not track you personally, we use <strong>Google Analytics</strong> to understand how our audience interacts with the website as a whole. This helps us improve our content and user experience.</p>
                <p>Google Analytics may place a cookie on your browser to collect anonymous traffic data, such as:</p>
                <ul>
                    <li>The pages you visit.</li>
                    <li>The time spent on each page.</li>
                    <li>Your general geographic location (e.g., country or city).</li>
                    <li>The device and browser type you are using.</li>
                </ul>
                <p>This data is <strong>aggregated and anonymized</strong>. We cannot use it to identify you personally. You can learn more about how Google uses data by visiting <a href="https://policies.google.com/technologies/partner-sites" target="_blank" rel="nofollow">Google's Privacy & Terms</a>.</p>
            </section>

            <section class="policy-section">
                <h2>4. Newsletter Subscription</h2>
                <p>If you choose to subscribe to our newsletter, you voluntarily provide us with your email address. This email address is used solely for the purpose of sending you the newsletter.</p>
                <p>We do not sell, rent, or share your email address with third parties. You may unsubscribe at any time by clicking the "Unsubscribe" link at the bottom of our emails.</p>
            </section>

            <section class="policy-section">
                <h2>5. External Links</h2>
                <p>Our articles may contain links to external websites (e.g., source articles, social media, advertisements). We are not responsible for the privacy practices or content of these third-party sites. We encourage you to review the privacy policies of any external sites you visit.</p>
            </section>

            <section class="policy-section">
                <h2>6. Changes to This Policy</h2>
                <p>We may update this Privacy Policy from time to time to reflect changes in our practices or for legal reasons. The "Last Updated" date at the top of this page will indicate the latest revision.</p>
            </section>

            <div class="policy-contact">
                <h3>Have Questions?</h3>
                <p>If you have any questions about this Privacy Policy, please contact us at:</p>
                <a href="mailto:info@starent.co.za">info@starent.co.za</a>
            </div>

        </div>
    </div>

    <?php include '../ext/footer.php' ?>
</body>
</html>