/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page, will be #F2FFF6 */
  background: var(--background-color); /* Default background color for the page, will be #08160F */
  padding-bottom: 40px; /* Add some padding at the bottom */
}

/* Variables for custom colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

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

/* Section titles */
.page-gdpr__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-gdpr__sub-section-title {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Paragraphs and general text */
.page-gdpr p {
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-gdpr__subtitle {
  font-size: 1.1em;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 30px;
}

/* Links */
.page-gdpr a {
  color: var(--secondary-color); /* Use a bright green for links */
  text-decoration: underline;
}

.page-gdpr a:hover {
  color: var(--glow-color); /* Lighter green on hover */
  text-decoration: none;
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  background: var(--deep-green); /* Use deep green for hero background to differentiate */
  overflow: hidden; /* Ensure image doesn't overflow */
}

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

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

.page-gdpr__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-gdpr__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__description {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-gdpr__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-gdpr__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-gdpr__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
  box-shadow: 0 0 15px var(--glow-color);
}

.page-gdpr__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  margin-left: 15px;
}

.page-gdpr__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--background-color); /* Dark text on light green hover */
  box-shadow: 0 0 15px var(--secondary-color);
}

.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Intro and Text Block Sections */
.page-gdpr__intro-section,
.page-gdpr__security-measures-section,
.page-gdpr__contact-section {
  padding: 60px 0;
  background: var(--background-color); /* Dark background */
  color: var(--text-main); /* Light text */
}

.page-gdpr__data-processing-section,
.page-gdpr__cookies-section,
.page-gdpr__conclusion-section {
  padding: 60px 0;
  background: var(--card-bg); /* Slightly lighter dark background */
  color: var(--text-main); /* Light text */
}

/* Image wrappers within content */
.page-gdpr__image-wrapper {
  margin: 30px auto;
  text-align: center;
  max-width: 800px; /* Max width for content images */
}

.page-gdpr__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it behaves as a block element for max-width */
}

/* Card Grid for Principles Section */
.page-gdpr__principles-section {
  padding: 60px 0;
  background: var(--card-bg); /* Darker green background */
}

.page-gdpr__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-gdpr__card {
  background: var(--deep-green); /* Use deep green for cards */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.page-gdpr__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--gold-color); /* Use gold for card titles for emphasis */
  margin-bottom: 15px;
}

/* Lists */
.page-gdpr__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-gdpr__list li {
  margin-bottom: 8px;
  color: var(--text-main);
}

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

.page-gdpr__contact-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: var(--text-main);
}

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

.page-gdpr__faq-list {
  margin-top: 40px;
}

.page-gdpr__faq-item {
  background: var(--deep-green); /* Use deep green for FAQ items */
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: var(--text-main);
  background: var(--deep-green);
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details summary */
}

/* Hide default details marker */
.page-gdpr__faq-item summary::-webkit-details-marker,
.page-gdpr__faq-item summary::marker {
  display: none;
}

.page-gdpr__faq-question:hover {
  background-color: var(--deep-green); /* Keep same background on hover for now */
  filter: brightness(1.2); /* Slight brightness increase */
}

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

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color);
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  content: "−";
}

.page-gdpr__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.1em;
  color: var(--text-secondary);
}

.page-gdpr__faq-answer p {
  margin-bottom: 10px;
  color: var(--text-secondary);
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

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

  .page-gdpr__hero-image-wrapper {
    max-height: 400px;
  }
}

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

  .page-gdpr__container {
    padding: 0 15px;
  }

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

  .page-gdpr__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-gdpr__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-gdpr__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-gdpr__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-gdpr__sub-section-title {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-gdpr__cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .page-gdpr__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 20px;
    font-size: 1em;
    margin-left: 0 !important; /* Remove margin-left for secondary button */
  }

  .page-gdpr__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-gdpr__card {
    padding: 20px;
  }

  .page-gdpr__card-title {
    font-size: 1.3em;
  }

  .page-gdpr__list {
    margin-left: 20px;
  }

  .page-gdpr__image-wrapper {
    margin: 20px auto;
  }

  .page-gdpr__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

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

  /* General mobile container padding */
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

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