So my question is there should be some condition on which you need to hide the logo on some pages. Can you please apply that condition on the footer in the javascript code?
Take 2 master pages, on the first master page take your wider header and on the second master page other header.
And restrict the first master page occurrence to first page only by setting the master page property " Restrict Page Occurrence" > Min Count to 1
On git changes, you can create the pipeline in Cloud Manager.
refer this:
https://experienceleague.adobe.com/docs/experience-manager-learn/cloud-service/cloud-manager/cicd-production-pipeline.html?lang=en
Once the form is rendered with outputService.generatePDFOutput() service, the dynamic behavior of the forms will not work, i.e. button, checkbox click, etc.