/* style/gdpr.css */

/* Base styles for the GDPR page content */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Main text color */
  background-color: #B71C1C; /* Page background color */
  padding-bottom: 40px; /* Ensure space above footer */
}

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

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

.page-gdpr__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1; /* Ensure content is above image if any overlap occurs */
}

.page-gdpr__main-title {
  font-weight: bold;
  color: #F4D34D; /* Gold color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  /* No fixed font-size for H1, relying on responsive scaling and other properties */
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
}

.page-gdpr__subtitle {
  font-size: 1.1em;
  color: #FFF5E1;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Call to action button */
.page-gdpr__cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Gold button gradient */
  color: #7A0E0E; /* Deep Red text for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none; /* Remove default button border */
}

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

/* General Section Styling */
.page-gdpr__introduction-section,
.page-gdpr__data-collection-section,
.page-gdpr__data-usage-section,
.page-gdpr__rights-section,
.page-gdpr__security-section,
.page-gdpr__sharing-section,
.page-gdpr__cookies-policy-section,
.page-gdpr__changes-section,
.page-gdpr__contact-section,
.page-gdpr__faq-section {
  padding: 40px 20px;
  margin-bottom: 20px;
  background-color: #D32F2F; /* Card BG color */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__container {
  max-width: 1100px;
  margin: 0 auto;
}

.page-gdpr__section-title {
  font-size: 2.2em;
  color: #F4D34D; /* Gold color for section titles */
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-gdpr__sub-title {
  font-size: 1.6em;
  color: #FFCC66; /* Glow color for sub-titles */
  margin-top: 25px;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-gdpr__text-block {
  font-size: 1em;
  color: #FFF5E1; /* Main text color */
  margin-bottom: 15px;
}

.page-gdpr__text-block a,
.page-gdpr__list a {
  color: #FFD86A; /* Gold for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-gdpr__text-block a:hover,
.page-gdpr__list a:hover {
  color: #E6B800; /* Darker gold on hover */
}

.page-gdpr__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #FFF5E1;
}

.page-gdpr__list li {
  margin-bottom: 10px;
  color: #FFF5E1;
}

.page-gdpr__list strong {
  color: #FFCC66; /* Glow color for strong text in lists */
}

/* Content Grid for text and image */
.page-gdpr__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 30px;
}

.page-gdpr__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-gdpr__text-content {
  flex: 1;
}

.page-gdpr__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-gdpr__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  /* No CSS filter allowed on images */
}

/* Rights Section Specifics */
.page-gdpr__rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-gdpr__right-card {
  background-color: #7A0E0E; /* Deep Red for cards */
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544; /* Border color */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-gdpr__card-title {
  font-size: 1.3em;
  color: #FFD86A; /* Gold for card titles */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-gdpr__card-text {
  color: #FFF5E1; /* Main text color */
  font-size: 0.95em;
}

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

.page-gdpr__faq-item {
  background-color: #C91F17; /* Main color for FAQ item background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #E53935; /* Accent color border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: #FFD86A; /* Gold for FAQ question text */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-gdpr__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-gdpr__faq-item[open] > .page-gdpr__faq-question {
  background-color: #E53935; /* Brighter red on open */
  color: #FFF5E1;
}

.page-gdpr__faq-item[open] > .page-gdpr__faq-question .page-gdpr__faq-toggle {
  color: #FFF5E1;
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #FFD86A; /* Gold for toggle icon */
}

.page-gdpr__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #FFF5E1; /* Main text color for answers */
  max-height: 0; /* Default for div based, handled by JS or browser for details */
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
  max-height: 500px; /* Adjust as needed for content, for div based */
  padding-top: 10px;
}

.page-gdpr__faq-answer p {
  margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-gdpr__hero-content {
    padding: 0 40px;
  }

  .page-gdpr__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-gdpr__content-grid--reverse {
    flex-direction: column; /* Ensure it stacks on mobile too */
  }

  .page-gdpr__image-wrapper {
    order: -1; /* Image appears above text on mobile */
  }

  .page-gdpr__rights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-gdpr {
    font-size: 15px;
  }

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

  .page-gdpr__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem); /* Adjust H1 for smaller screens */
  }

  .page-gdpr__subtitle {
    font-size: 1em;
  }

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

  .page-gdpr__sub-title {
    font-size: 1.4em;
  }

  .page-gdpr__cta-button {
    width: 100% !important;
    max-width: 300px !important; /* Limit max width for smaller buttons */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    margin: 0 auto;
    display: block;
  }

  .page-gdpr__introduction-section,
  .page-gdpr__data-collection-section,
  .page-gdpr__data-usage-section,
  .page-gdpr__rights-section,
  .page-gdpr__security-section,
  .page-gdpr__sharing-section,
  .page-gdpr__cookies-policy-section,
  .page-gdpr__changes-section,
  .page-gdpr__contact-section,
  .page-gdpr__faq-section {
    padding: 30px 15px;
  }

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

  /* Mobile image responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Image containers responsiveness */
  .page-gdpr__image-wrapper,
  .page-gdpr__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Content area image sizing */
  .page-gdpr__content-area img {
    min-width: 200px !important; /* Ensure minimum size */
    min-height: 200px !important;
  }

  .page-gdpr__faq-question {
    padding: 15px 20px;
    font-size: 1.05em;
  }

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

/* Ensure no filter is applied to images */
.page-gdpr img {
  filter: none !important;
}

/* Contrast Fixes (if needed, though chosen colors should work) */
/* Assuming a dark background for the site, light text is default */
.page-gdpr__dark-bg {
  color: #ffffff; /* Deep Red background with white text */
  background: #C91F17;
}

.page-gdpr__light-bg {
  color: #333333; /* Light background with dark text */
  background: #ffffff;
}