/* style/gdpr.css */

/* Base styles for the page-gdpr scope */
.page-gdpr {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff); /* Default to white if var not set */
}

/* Color contrast adjustments based on body background-color */
/* Assuming var(--background-color) is generally light, if it were dark, these would flip */
.page-gdpr__dark-section {
  background: #C91F17; /* Main brand color for dark sections */
  color: #ffffff; /* White text for dark backgrounds */
}

.page-gdpr__medium-bg {
  background: #E53935; /* Auxiliary brand color for medium sections */
  color: #ffffff; /* White text for medium-dark backgrounds */
}

.page-gdpr__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  text-align: center;
  overflow: hidden;
  background-color: #B71C1C;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 900px;
  color: #FFF5E1;
}

.page-gdpr__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FFF5E1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-gdpr__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 2px solid #F2B544;
}

.page-gdpr__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-gdpr__cta-button--large {
  padding: 18px 35px;
  font-size: 1.25rem;
}

/* Section common styles */
.page-gdpr__introduction-section, 
.page-gdpr__principles-section, 
.page-gdpr__rights-section, 
.page-gdpr__data-collection-section, 
.page-gdpr__security-section, 
.page-gdpr__dpo-section, 
.page-gdpr__cookies-section, 
.page-gdpr__faq-section, 
.page-gdpr__call-to-action-section {
  padding: 60px 0;
}

.page-gdpr__section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #C91F17;
}

.page-gdpr__dark-section .page-gdpr__section-title, 
.page-gdpr__medium-bg .page-gdpr__section-title {
  color: #FFF5E1;
}

.page-gdpr__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-gdpr__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-gdpr__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  text-align: justify;
}

.page-gdpr__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #E6B800;
  font-weight: bold;
  font-size: 1.2rem;
}

.page-gdpr__content-image {
  display: block;
  margin: 30px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Links within content */
.page-gdpr a {
  color: #C91F17;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-gdpr a:hover {
  color: #E6B800;
  text-decoration: underline;
}

.page-gdpr__dark-section a, 
.page-gdpr__medium-bg a {
  color: #FFD86A;
}

.page-gdpr__dark-section a:hover, 
.page-gdpr__medium-bg a:hover {
  color: #FFF5E1;
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 40px;
}

.page-gdpr__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #C91F17;
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
  border-bottom: 1px solid #E53935;
}

.page-gdpr__faq-qtext {
  flex-grow: 1;
}

.page-gdpr__faq-toggle {
  margin-left: 15px;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  transform: rotate(45deg);
}

.page-gdpr__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: #333333;
  background-color: #ffffff;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
  border-top: none;
}

.page-gdpr__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-gdpr__faq-item summary {
  list-style: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-gdpr__hero-section {
    padding-bottom: 30px;
  }

  .page-gdpr__hero-image {
    height: 300px; /* Adjust height for smaller screens */
  }

  .page-gdpr__main-title {
    font-size: 2.2rem;
  }

  .page-gdpr__hero-description {
    font-size: 1rem;
  }

  .page-gdpr__cta-button, .page-gdpr__cta-button--large {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
    margin-top: 15px;
  }

  .page-gdpr__introduction-section, 
  .page-gdpr__principles-section, 
  .page-gdpr__rights-section, 
  .page-gdpr__data-collection-section, 
  .page-gdpr__security-section, 
  .page-gdpr__dpo-section, 
  .page-gdpr__cookies-section, 
  .page-gdpr__faq-section, 
  .page-gdpr__call-to-action-section {
    padding: 30px 0;
  }

  .page-gdpr__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__section-title {
    font-size: 1.8rem;
  }

  .page-gdpr__text-block, .page-gdpr__list-item {
    font-size: 1rem;
  }

  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-gdpr__hero-section, .page-gdpr__introduction-section, 
  .page-gdpr__principles-section, .page-gdpr__rights-section, 
  .page-gdpr__data-collection-section, .page-gdpr__security-section, 
  .page-gdpr__dpo-section, .page-gdpr__cookies-section, 
  .page-gdpr__faq-section, .page-gdpr__call-to-action-section,
  .page-gdpr__hero-image-wrapper,
  .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-gdpr__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-gdpr__faq-answer {
    padding: 15px;
  }

  .page-gdpr__faq-toggle {
    font-size: 1.2rem;
  }
}