/* style/gdpr.css */

/* Root variables for colors (if not defined in shared.css) */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --bg-dark: #08160F; /* Background */
  --card-bg: #11271B; /* Card BG */
  --text-main: #F2FFF6; /* Text Main */
  --text-secondary: #A7D9B8; /* Text Secondary */
  --border-color: #2E7A4E; /* Border */
  --glow-color: #57E38D; /* Glow */
  --gold-color: #F2C14E; /* Gold */
  --divider-color: #1E3A2A; /* Divider */
  --deep-green: #0A4B2C; /* Deep Green */
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* General page styling */
.page-gdpr {
  background-color: var(--bg-dark); /* Dark background for the main content area */
  color: var(--text-main); /* Light text on dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom */
}

/* Fixed header offset - handled by body in shared.css, so no padding-top here */

.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding for the first section */
  margin-bottom: 40px;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  max-height: 500px; /* Limit height for hero image */
  object-fit: cover;
  display: block;
}

.page-gdpr__hero-content {
  padding: 30px 20px;
  max-width: 900px;
  background-color: rgba(17, 39, 27, 0.9); /* Semi-transparent dark background for text block */
  border-radius: 8px;
  margin-top: -80px; /* Overlap slightly with the image for visual effect */
  position: relative;
  z-index: 1; /* Ensure content is above the image */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-gdpr__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

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

.page-gdpr__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-gdpr__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-gdpr__section {
  padding: 60px 20px;
  margin-bottom: 40px;
}

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

.page-gdpr__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
  padding-bottom: 15px;
}

.page-gdpr__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--gold-color);
  border-radius: 2px;
}

.page-gdpr__content-block {
  background-color: var(--card-bg); /* Dark card background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: var(--text-main); /* Light text */
}

.page-gdpr__content-block p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.page-gdpr__content-block h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-gdpr__list-item {
  margin-bottom: 20px;
  padding-left: 0;
  border-bottom: 1px solid var(--divider-color);
  padding-bottom: 20px;
}

.page-gdpr__list-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-gdpr__sub-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 10px;
  color: var(--text-secondary);
}

.page-gdpr__sub-list li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.page-gdpr__sub-list li strong {
  color: var(--text-main);
}

.page-gdpr__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  display: block;
  min-width: 200px; /* Min size enforcement */
  min-height: 200px; /* Min size enforcement */
  object-fit: cover;
}

.page-gdpr__contact-info {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  margin-top: 30px;
  border: 1px solid var(--border-color);
}

.page-gdpr__contact-title {
  color: var(--gold-color);
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.page-gdpr__contact-info p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.page-gdpr__contact-info strong {
  color: var(--text-main);
}

.page-gdpr__link {
  color: var(--secondary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-gdpr__link:hover {
  color: var(--glow-color);
}

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

.page-gdpr__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: rgba(34, 199, 104, 0.1); /* Slightly lighter background for question */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-gdpr__faq-question:hover {
  background-color: rgba(34, 199, 104, 0.2);
}

.page-gdpr__faq-qtext {
  flex-grow: 1;
  color: var(--text-main);
}

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

.page-gdpr__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* For <details> tag, we don't need max-height transition */
.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
  max-height: 1000px; /* Sufficiently large for content */
  padding-top: 15px;
  transition: max-height 0.5s ease-in, padding 0.3s ease-in;
}

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

/* CTA Bottom Section */
.page-gdpr__cta-container {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-gdpr__cta-container .page-gdpr__section-title {
  color: var(--gold-color);
  margin-bottom: 20px;
}

.page-gdpr__cta-container .page-gdpr__intro-text {
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.page-gdpr__button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

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

.page-gdpr__cta-button--secondary {
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

.page-gdpr__cta-button--secondary:hover {
  background-color: var(--secondary-color);
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-gdpr__hero-content {
    margin-top: -60px;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding-top: 10px !important; /* body already has offset */
    margin-bottom: 20px;
  }

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

  .page-gdpr__hero-content {
    padding: 20px 15px;
    margin-top: -40px;
    margin-left: 15px;
    margin-right: 15px;
    max-width: calc(100% - 30px) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-gdpr__intro-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-gdpr__section {
    padding: 30px 15px;
    margin-bottom: 20px;
  }

  .page-gdpr__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-gdpr__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-gdpr__content-block {
    padding: 20px;
  }

  .page-gdpr__content-block p {
    font-size: 0.95rem;
  }

  .page-gdpr__content-block h3 {
    font-size: 1.3rem;
  }

  .page-gdpr__list-item h3 {
    font-size: 1.2rem;
  }

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

  .page-gdpr__contact-title {
    font-size: 1.4rem;
  }

  .page-gdpr__contact-info p {
    font-size: 1rem;
  }

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

  .page-gdpr__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9rem;
  }
  
  .page-gdpr__button-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-gdpr__cta-button--small {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

/* Ensure images in content areas are not smaller than 200px */
.page-gdpr__content-block img {
  min-width: 200px;
  min-height: 200px;
}

/* Contrast fix for general text in case of issues */
.page-gdpr__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-gdpr__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}