window.addEventListener('c15t:consent-updated', function (event) {
const consent = event.detail;
// Senior Dev Tip: GTM should usually fire if Statistics OR Marketing is accepted
if (consent.statistics || consent.marketing) {
if (typeof loadGTM === 'function') {
loadGTM();
}
}
});