<?php
/**
 * Public Website Footer — shared across all public pages.
 */
if (!function_exists('getSetting')) { include __DIR__ . '/settings-helper.php'; }
$siteName = getSetting('site_name', 'Deutsche Bank Holdings Delaware');
$footerText = getSetting('footer_text', 'Deutsche Bank Holdings Delaware provides secure personal banking, business banking, digital banking, transfers, cards, and wealth management to clients worldwide.');
$contactEmail = getSetting('contact_email', 'support@dbhacu.com');
$contactPhone = getSetting('contact_phone', '+1 (800) 555-0199');
$address = getSetting('office_address', '1209 Orange Street, Wilmington, DE 19801');
$logo = getSetting('logo_path', 'logo.png');
$logoVersion = file_exists($logo) ? '?v=' . filemtime($logo) : '';
?>
<footer class="db-footer" role="contentinfo">
  <div class="db-container">
    <div class="db-footer-grid">
      <div class="db-footer-brand">
        <img src="<?= htmlspecialchars($logo) ?><?= $logoVersion ?>" alt="<?= htmlspecialchars($siteName) ?>" width="160" height="40">
        <p><?= htmlspecialchars($footerText) ?></p>
        <div class="db-footer-social db-mt-4">
          <?php if (getSetting('facebook_url')): ?><a href="<?= htmlspecialchars(getSetting('facebook_url')) ?>" aria-label="Facebook"><i class="fab fa-facebook-f"></i></a><?php endif; ?>
          <?php if (getSetting('twitter_url')): ?><a href="<?= htmlspecialchars(getSetting('twitter_url')) ?>" aria-label="Twitter"><i class="fab fa-twitter"></i></a><?php endif; ?>
          <?php if (getSetting('linkedin_url')): ?><a href="<?= htmlspecialchars(getSetting('linkedin_url')) ?>" aria-label="LinkedIn"><i class="fab fa-linkedin-in"></i></a><?php endif; ?>
          <?php if (getSetting('instagram_url')): ?><a href="<?= htmlspecialchars(getSetting('instagram_url')) ?>" aria-label="Instagram"><i class="fab fa-instagram"></i></a><?php endif; ?>
        </div>
      </div>
      <div class="db-footer-col"><h4>Personal</h4><ul class="db-footer-links"><li><a href="accounts">Accounts</a></li><li><a href="transfers">Transfers</a></li><li><a href="cards">Cards</a></li><li><a href="digital-banking">Digital Banking</a></li><li><a href="open-account">Open an Account</a></li></ul></div>
      <div class="db-footer-col"><h4>Business</h4><ul class="db-footer-links"><li><a href="business-banking">Business Overview</a></li><li><a href="business-account">Business Accounts</a></li><li><a href="corporate-bank">Corporate Banking</a></li><li><a href="open-account">Open an Account</a></li></ul></div>
      <div class="db-footer-col"><h4>Security &amp; Help</h4><ul class="db-footer-links"><li><a href="security-centre">Security Centre</a></li><li><a href="report-fraud">Report Fraud</a></li><li><a href="scam-awareness">Scam Awareness</a></li><li><a href="help-centre">Help Centre</a></li><li><a href="faq">FAQs</a></li><li><a href="customer-support">Customer Support</a></li></ul></div>
      <div class="db-footer-col"><h4>Company</h4><ul class="db-footer-links"><li><a href="about-us">About Us</a></li><li><a href="careers">Careers</a></li><li><a href="investor-relations">Investor Relations</a></li><li><a href="contact">Contact Us</a></li><li><a href="account/login">Log In</a></li><li><a href="account/register">Register</a></li></ul></div>
    </div>
    <div class="db-footer-bottom">
      <div class="db-footer-copyright">&copy; <?= date('Y') ?> <?= htmlspecialchars($siteName) ?>. All rights reserved.</div>
      <div class="db-footer-legal">
        <a href="privacy-policy">Privacy Policy</a>
        <a href="terms">Terms of Use</a>
        <a href="cookie-policy">Cookie Policy</a>
        <a href="accessibility">Accessibility</a>
        <a href="sitemap">Sitemap</a>
      </div>
    </div>
  </div>
</footer>

<script src="plugin/jquery.min.js"></script>
<script src="plugin/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/landing.js"></script>
</body>
</html>
