<footer class="footer">
    <div class="container footer-row">
        <a class="footer-brand" href="<?php echo h(app_url('home')); ?>">
            <span class="brand-logo" aria-hidden="true">
                <img src="assets/img/logo.webp" alt="">
            </span>
            <span>UK TRAIL RUN 2026</span>
        </a>

        <div class="footer-links">
            <a href="#"><?php echo tr('Privacy Policy', 'Kebijakan Privasi'); ?></a>
            <a href="#"><?php echo tr('Terms of Service', 'Ketentuan Layanan'); ?></a>
            <a href="<?php echo h(app_url('contact')); ?>"><?php echo tr('Contact', 'Kontak'); ?></a>
            <a href="<?php echo h(app_url('home', null, 'sponsors')); ?>"><?php echo tr('Sponsorship', 'Sponsor'); ?></a>
        </div>

        <p class="footer-meta">&copy; 2026 Corelabs UK. </p>
    </div>
</footer>


<button class="back-to-top" id="backToTop" type="button" aria-label="<?php echo tr('Back to top', 'Kembali ke atas'); ?>">
    <svg viewBox="0 0 24 24" aria-hidden="true"><path d="m18 15-6-6-6 6"></path></svg>
</button>

<?php
$appText = [
    'resultsTotalPrefix' => lang_text('Total:', 'Total:'),
    'resultsTotalWord' => lang_text('results', 'hasil'),
    'contactSending' => lang_text('Sending...', 'Mengirim...'),
    'regAgreeTerms' => lang_text('You must agree to the terms', 'Anda harus menyetujui ketentuan'),
    'regRequired' => lang_text('This field is required', 'Kolom ini wajib diisi'),
    'regInvalidEmail' => lang_text('Enter a valid email address', 'Masukkan alamat email yang valid'),
    'regSubmitting' => lang_text('Submitting...', 'Mengirim...'),
];
?>
<script>
    window.AppText = <?php echo json_encode($appText, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); ?>;
</script>
<script src="assets/js/main.js?v=2.3"></script>
</body>
</html>
