<?php
declare(strict_types=1);
$_footerLang = dbnToolsCurrentLanguage();
function _ft(string $key, string $lang): string {
    return htmlspecialchars(dbnToolsT($key, $lang));
}
?>
<footer class="lt-footer">
  <div class="lt-footer__inner">

    <div class="lt-footer__brand">
      <picture>
        <source srcset="assets/images/logo-header.webp" type="image/webp">
        <img class="lt-footer__logo" src="assets/images/logo-header.png" alt="Do Better Norge" width="140" height="34" loading="lazy">
      </picture>
      <p class="lt-footer__tagline">
        <?= _ft('footer_tagline', $_footerLang) ?>
        <?= $_footerLang === 'no' ? 'Drevet av' : 'Powered by' ?> <a href="https://bluenotelogic.com/caveauai" target="_blank" rel="noopener noreferrer">CaveauAI</a>.
      </p>
      <p class="lt-footer__privacy-note">
        <?= _ft('footer_privacy_note', $_footerLang) ?>
      </p>
    </div>

    <nav class="lt-footer__links" aria-label="Footer links">
      <div class="lt-footer__link-col">
        <a href="https://dobetternorge.no" target="_blank" rel="noopener noreferrer">Do Better Norge</a>
        <a href="https://dobetternorge.no/library.php"><?= _ft('footer_legal_lib', $_footerLang) ?></a>
        <a href="/pricing.php"><?= _ft('pricing_nav_link', $_footerLang) ?></a>
        <a href="/why-ours.php"><?= _ft('why_ours_trust_link', $_footerLang) ?></a>
        <a href="mailto:support@dobetternorge.no"><?= _ft('footer_report', $_footerLang) ?></a>
      </div>
      <div class="lt-footer__link-col">
        <a href="https://bluenotelogic.com/caveauai" target="_blank" rel="noopener noreferrer"><?= _ft('footer_about_caveau', $_footerLang) ?></a>
        <a href="https://bluenotelogic.com" target="_blank" rel="noopener noreferrer">Blue Note Logic</a>
      </div>
    </nav>

  </div>
  <div class="lt-footer__bottom">
    <p class="lt-footer__copy">&copy; 2026 Blue Note Logic Inc. All rights reserved.</p>
    <p class="lt-footer__disclaimer"><?= _ft('footer_disclaimer', $_footerLang) ?></p>
  </div>
</footer>
