(function() { if (document.cookie.indexOf('moaai_cookie_consent=') !== -1) return; var s = document.createElement('style'); s.textContent = '.moaai-cc{position:fixed;bottom:0;left:0;right:0;background:rgba(30,30,30,.97);color:#fff;padding:16px 24px;z-index:99999;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;font-family:-apple-system,BlinkMacSystemFont,sans-serif;font-size:14px;box-shadow:0 -2px 10px rgba(0,0,0,.3);transition:transform .3s}.moaai-cc.h{transform:translateY(100%)}.moaai-cc button{border:none;padding:8px 20px;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500}.moaai-cc .a{background:#2563eb;color:#fff}.moaai-cc .d{background:transparent;border:1px solid #666;color:#fff;margin-right:8px}'; document.head.appendChild(s); var b = document.createElement('div'); b.className = 'moaai-cc'; b.innerHTML = '이 웹사이트는 사용자 경험 향상과 광고 개인화를 위해 쿠키를 사용합니다. 개인정보처리방침에서 자세한 내용을 확인하세요.
'; document.body.appendChild(b); function setCk(v) { document.cookie='moaai_cookie_consent='+v+';path=/;max-age='+(365*86400)+';SameSite=Lax'; b.classList.add('h'); setTimeout(function(){b.remove()},300); } b.querySelector('.a').onclick = function(){ setCk('accepted'); }; b.querySelector('.d').onclick = function(){ setCk('declined'); }; })();
