/* style/gdpr.css */

/* --- Base Styles --- */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Using Text Main: #F2FFF6 */
  background-color: var(--background); /* Using Background: #08160F */
  line-height: 1.6;
  padding-bottom: 60px; /* Ensure space above footer */
}

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

.page-gdpr__section {
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

.page-gdpr__section-title {
  font-size: clamp(28px, 4vw, 42px); /* Clamp for responsive H2 */
  color: var(--gold); /* Using Gold: #F2C14E for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-gdpr__paragraph {
  font-size: 17px;
  margin-bottom: 20px;
  color: var(--text-secondary); /* Using Text Secondary: #A7D9B8 */
}

/* --- Hero Section --- */
.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body handles top padding, this is decorative */
  overflow: hidden; /* Ensure no overflow from image */
}

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

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Ensure minimum height */
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-gdpr__main-title {
  font-size: clamp(32px, 5vw, 56px); /* Clamp for responsive H1 */
  color: var(--text-main); /* Using Text Main: #F2FFF6 */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-gdpr__description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-secondary); /* Using Text Secondary: #A7D9B8 */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 18px;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button color */
  color: var(--text-main); /* Using Text Main: #F2FFF6 */
  border: none;
  margin: 10px;
}

.page-gdpr__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-gdpr__btn-secondary {
  background: transparent;
  color: var(--primary-color); /* Using Primary Color: #11A84E */
  border: 2px solid var(--border); /* Using Border: #2E7A4E */
  margin: 10px;
}

.page-gdpr__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-main);
  transform: translateY(-2px);
}

.page-gdpr__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-gdpr__grid--2-col {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* --- Cards --- */
.page-gdpr__card {
  background-color: var(--card-bg); /* Using Card BG: #11271B */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: var(--text-secondary); /* Ensure light text on dark card background */
  border: 1px solid var(--border); /* Using Border: #2E7A4E */
}

.page-gdpr__card-title {
  font-size: 24px;
  color: var(--text-main); /* Using Text Main: #F2FFF6 */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-gdpr__card--bordered {
  border: 2px solid var(--deep-green); /* Using Deep Green: #0A4B2C */
}

/* --- Image Wrappers in content --- */
.page-gdpr__image-wrapper {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-gdpr__content-image {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Dark Section Specifics --- */
.page-gdpr__dark-section {
  background-color: var(--deep-green); /* Using Deep Green: #0A4B2C */
  color: var(--text-main); /* Ensure light text on dark background */
}
.page-gdpr__dark-section .page-gdpr__section-title {
  color: var(--gold); /* Gold for titles in dark sections */
}
.page-gdpr__dark-section .page-gdpr__paragraph {
  color: var(--text-secondary);
}

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

.page-gdpr__faq-item {
  background-color: var(--card-bg); /* Using Card BG: #11271B */
  border: 1px solid var(--border); /* Using Border: #2E7A4E */
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px;
  color: var(--text-secondary); /* Light text on dark card */
}

.page-gdpr__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 20px;
  color: var(--text-main); /* Main text for questions */
}

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

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

.page-gdpr__faq-toggle {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--primary-color); /* Primary color for toggle icon */
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-gdpr__faq-answer {
  padding-top: 15px;
  font-size: 16px;
  color: var(--text-secondary);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-gdpr__hero-image-wrapper {
    max-height: 400px;
  }
  .page-gdpr__hero-image {
    min-height: 250px;
  }
}

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

  .page-gdpr__section {
    padding: 40px 0;
  }

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

  .page-gdpr__main-title {
    font-size: clamp(28px, 7vw, 48px);
  }

  .page-gdpr__description {
    font-size: clamp(16px, 3.5vw, 20px);
  }

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

  .page-gdpr__grid--2-col {
    grid-template-columns: 1fr;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    margin: 5px 0;
  }

  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 10px;
    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;
  }
  
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__image-wrapper,
  .page-gdpr__hero-section,
  .page-gdpr__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
  
  .page-gdpr__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-gdpr__hero-image-wrapper {
    max-height: 300px;
  }
  .page-gdpr__hero-image {
    min-height: 200px;
  }
  .page-gdpr__card-title {
    font-size: 20px;
  }
  .page-gdpr__faq-item summary {
    font-size: 18px;
  }
}

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

/* Color Contrast Enforcement - overriding default text colors if needed */
/* Since body background is --background (#08160F), a dark color, default text should be light */
.page-gdpr__section {
  color: var(--text-secondary); /* Default text for sections */
}

/* Ensure titles are visible */
.page-gdpr__section-title {
  color: var(--gold); /* Gold for titles */
}

/* Specific elements that might have different backgrounds */
.page-gdpr__card {
  background-color: var(--card-bg); /* #11271B - dark */
  color: var(--text-secondary); /* #A7D9B8 - light */
}

.page-gdpr__dark-section {
  background-color: var(--deep-green); /* #0A4B2C - dark */
  color: var(--text-main); /* #F2FFF6 - light */
}

.page-gdpr__btn-primary {
  color: var(--text-main); /* #F2FFF6 - light */
}

.page-gdpr__btn-secondary {
  color: var(--primary-color); /* #11A84E - dark enough on transparent/light background */
}