/* style/gdpr.css */

/* Custom color variables */
:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --card-bg: #D32F2F;
  --background: #B71C1C;
  --text-main: #FFF5E1;
  --border: #F2B544;
  --glow: #FFCC66;
  --gold: #F4D34D;
  --deep-red: #7A0E0E;
}

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color from custom palette */
  background-color: var(--background); /* Default background from custom palette */
}

/* General container for content sections */
.page-gdpr__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  color: #ffffff; /* Ensure white text on dark hero */
  background-color: var(--deep-red); /* Dark background for hero */
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-gdpr__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-gdpr__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold); /* Gold color for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-gdpr__intro-text {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-main); /* Main text color */
}

/* CTA Button Styles */
.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary {
  background: var(--button-gradient); /* Custom button gradient */
  color: #333333; /* Dark text for bright button to ensure contrast */
  border: none;
}

.page-gdpr__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Content Sections */
.page-gdpr__content-section {
  padding: 60px 0;
}

.page-gdpr__light-bg {
  background-color: var(--background); /* Main background color */
  color: var(--text-main); /* Light text on main background */
}

.page-gdpr__dark-section {
  background-color: var(--card-bg); /* Card background color */
  color: var(--text-main); /* Light text on dark section */
}

.page-gdpr__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--gold); /* Gold color for section titles */
}

.page-gdpr__paragraph {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

.page-gdpr__image-wrapper {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border); /* Border color */
}

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

/* FAQ Section */
.page-gdpr__faq-section {
  padding: 60px 0;
  background-color: var(--background);
  color: var(--text-main);
}

.page-gdpr__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-gdpr__faq-item {
  background-color: var(--card-bg); /* Card background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border); /* Border color */
  overflow: hidden;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--gold); /* Gold for FAQ questions */
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
  background-color: var(--deep-red);
}

.page-gdpr__faq-item[open] > .page-gdpr__faq-question {
  background-color: var(--deep-red);
}

.page-gdpr__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-gdpr__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--glow); /* Glow color for toggle */
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-gdpr__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--text-main); /* Main text color for answers */
  line-height: 1.7;
  /* For details tag, content will naturally expand */
}

/* Ensure details summary marker is hidden */
.page-gdpr__faq-item summary::-webkit-details-marker {
  display: none;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  .page-gdpr__container {
    padding: 20px 15px;
  }

  .page-gdpr__hero-section {
    padding: 40px 15px;
  }

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

  .page-gdpr__intro-text {
    font-size: 1rem;
  }

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

  .page-gdpr__paragraph {
    font-size: 0.95rem;
  }

  .page-gdpr__cta-button {
    font-size: 1rem;
    padding: 12px 25px;
  }

  /* Mobile responsive for images */
  .page-gdpr img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-gdpr__image-wrapper,
  .page-gdpr__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile responsive for buttons */
  .page-gdpr__cta-button,
  .page-gdpr__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__hero-content .page-gdpr__cta-button {
    margin-left: auto;
    margin-right: auto;
  }

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

  .page-gdpr__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.9rem;
  }
}