document.addEventListener("DOMContentLoaded",function(){const c=document.querySelector(".btn-contract-print");c&&c.addEventListener("click",function(){window.print()});const o=document.getElementById("contract-content"),d=document.getElementById("contract-toc-card"),i=document.getElementById("contract-toc-list");if(o&&d&&i){const a=o.querySelectorAll("h2, h3");a.length>2&&(a.forEach(function(e,r){const s="contract-section-"+r;e.setAttribute("id",s);const t=document.createElement("li");t.classList.add("mb-1"),e.tagName==="H3"&&t.classList.add("ms-3");const n=document.createElement("a");n.href="#"+s,n.textContent=e.textContent,n.classList.add("text-decoration-none"),t.appendChild(n),i.appendChild(t)}),d.style.display="block")}});
