const router = require('express').Router({ mergeParams: true });

router.get('/', (req, res) => {
  res.render('home', { title: req.t?.hero?.headline || 'Vianexu' });
});

router.get('/privacy', (req, res) => res.render('legal/privacy', { title: 'Privacy Policy' }));
router.get('/terms',   (req, res) => res.render('legal/terms',   { title: 'Terms of Use'  }));

module.exports = router;
