/* Cookie Consent Modal */
.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 45rem;
  width: 90%;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  overflow: hidden;
  transition: opacity 0.3s ease;
  display: none; /* Hidden by default, shown by JS */
  font-family: 'Poppins', sans-serif;
}

.cookie-modal-content {
  padding: 2.5rem;
  text-align: center;
}

.cookie-title {
  font-size: 2rem;
  color: #444;
  margin-bottom: 1rem;
}

.cookie-text {
  font-size: 1.4rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cookie-btn {
  padding: 1rem 2rem;
  border-radius: 5px;
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.cookie-btn--accept {
  background-color: #5ec576;
  color: white;
}

.cookie-btn--accept:hover {
  background-color: #4bbb7d;
}

.cookie-btn--decline {
  background-color: #f3f3f3;
  color: #555;
  border: 1px solid #ddd;
}

.cookie-btn--decline:hover {
  background-color: #e9e9e9;
}

.cookie-info {
  font-size: 1.2rem;
  margin-top: 1rem;
}

.cookie-link {
  color: #5ec576;
  text-decoration: underline;
}

/* Privacy policy highlight effect */
.section-privacy.highlight {
  animation: highlight-privacy 2s ease;
}

@keyframes highlight-privacy {
  0% {
    background-color: transparent;
  }
  20% {
    background-color: rgba(94, 197, 118, 0.2); /* Vihreä korostus */
  }
  100% {
    background-color: transparent;
  }
}

/* Responsiveness for small screens */
@media screen and (max-width: 480px) {
  .cookie-modal {
    width: 85%;
  }

  .cookie-modal-content {
    padding: 2rem;
  }

  .cookie-title {
    font-size: 1.8rem;
  }

  .cookie-text {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.3rem;
  }
}
