<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cookies Policy Pop-Up</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
line-height: 1.6;
}
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
justify-content: center;
align-items: center;
}
.modal-content {
background-color: #fff;
padding: 20px;
border-radius: 5px;
max-width: 500px;
text-align: center;
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}
.close:hover,
.close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
</style>
</head>
<body>

<div id="cookieModal" class="modal">
<div class="modal-content">
<span class="close">&times;</span>
<h2>Cookies Policy</h2>
<p>We use cookies. Many are necessary to operate the website and its functions, others are for statistical or marketing purposes.</p>
<p>By choosing "Accept only essential cookies" we will respect your privacy and not set any cookies that are not necessary for the operation of the site.</p>
<p>Are you under 16 years old? Then you cannot consent to optional services. You can ask your parents or guardians to consent to these services with you.</p>
</div>
</div>

<script>
document.addEventListener('DOMContentLoaded', function() {
var modal = document.getElementById('cookieModal');
var closeBtn = document.querySelector('.close');

// Show the modal
modal.style.display = 'flex';

// Close the modal when the user clicks on the close button
closeBtn.onclick = function() {
modal.style.display = 'none';
}

// Close the modal when the user clicks anywhere outside of the modal
window.onclick = function(event) {
if (event.target === modal) {
modal.style.display = 'none';
}
}
});
</script>

</body>
</html>