.custom-legal-block-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  z-index: 10000000; /* Overlay z-index */
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.custom-legal-block-popup {
  background-color: white;
  padding: 30px;
  border-radius: 0px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 100%; /* Full width */
  max-width: none; /* Remove max-width */
  margin-bottom: 0px; /* Remove margin */
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  position: fixed; /* Fixed position */
  bottom: 0; /* Align to bottom */
  left: 0; /* Align to left */
  z-index: 10000001; /* Popup z-index, higher than overlay */
}

.legal-popup-container {
    max-width: 1336px;
    margin-right: auto;
    margin-left: auto;
    display: block;
}

.legal-popup-container h2 {
    font-family: 'SNEmericWeb-SemiBold';
    font-weight: normal;
    font-style: normal;
    font-size: 2.0em;
    color: #4C5156
}

.legal-popup-container .inner { max-width: 1200px }

.custom-legal-block-overlay .legal-popup-container .inner p, .custom-legal-block-paragraph p, 
#legalParagraph p { 
    color: #717275 !important;   
    font-size: 1.1em !important;
    line-height: 1.4em !important;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 1.2em;
    padding: 0.8em 3.5em;
    margin: 1.0em 1.0em 1.0em 0em;
    border-radius: .5em;
    border: 2px solid #00729c;
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: background-color .25s, opacity .25s;
    cursor: pointer;
    font-family: 'SNEmericWeb-SemiBold';
    font-weight: normal; 
    font-style: normal;
}

.cta-button-primary {
    background-color: #00729c;
    color: #FFF;
}

.cta-button-primary:hover {
    background-color: #008cc0;
}

.cta-button-secondary:hover {
    background-color: #cff2ff;
}

.cta-button-secondary {
    background-color: #FFF;
    border: 2px solid #00729c;
    color: #00729c;
}


.custom-legal-block-popup.show {
    transform: translateY(0);
}

.custom-legal-block-buttons {
  margin-top: 20px;
}

.custom-legal-block-buttons button {
  cursor: pointer;
}

.legal-popup-buttons {
    margin-right: auto;
    margin-left: auto;
    text-align: right;
}

#closeLegalBtn {
  position: relative;
  display: inline-block;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background-image: url('../images/footer-popup-close.png'); /* Updated path */
  background-size: contain;
  border: none;
  cursor: pointer;
  /*padding: 6px;*/
  /*border: 2px solid #00729c;*/
  border: none;
  
}

@media(max-width: 600px) {
   .legal-popup-container h2 {
        font-size: 1.1em;
    }
    
    .custom-legal-block-overlay .legal-popup-container .inner p,.custom-legal-block-paragraph p, 
    #legalParagraph p { 
        font-size: 1.0em !important;
        line-height: 1.2em !important;
    }
    
    .cta-button {
        font-size: 1.0em;
        padding: 1.5em;
        width: 100%;
        box-sizing: border-box;
    }

}
