/* style/gdpr.css */

/* Custom properties for colors */
: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-color: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

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

/* Container for content, ensuring responsiveness and max-width */
.page-gdpr__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

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

.page-gdpr__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin-bottom: 30px;
}

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

.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main);
  max-width: 100%;
}

.page-gdpr__subtitle {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 40px;
  color: var(--text-secondary);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  min-width: 150px;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: none;
}

.page-gdpr__btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

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

.page-gdpr__btn-secondary:hover {
  transform: translateY(-2px);
  background-color: rgba(34, 199, 104, 0.1);
}

/* Section common styles */
.page-gdpr__introduction-section,
.page-gdpr__principles-section,
.page-gdpr__rights-section,
.page-gdpr__protection-section,
.page-gdpr__cookies-section,
.page-gdpr__contact-section,
.page-gdpr__commitment-section,
.page-gdpr__faq-section {
  padding: 60px 0;
}

/* Alternating background colors for sections */
.page-gdpr__introduction-section,
.page-gdpr__rights-section,
.page-gdpr__cookies-section,
.page-gdpr__commitment-section {
  background-color: var(--background);
  color: var(--text-main);
}

.page-gdpr__principles-section,
.page-gdpr__protection-section,
.page-gdpr__contact-section,
.page-gdpr__faq-section {
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-gdpr__section-title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main);
}

.page-gdpr__text-block p {
  margin-bottom: 1em;
  font-size: 1.05em;
  color: var(--text-secondary);
}

.page-gdpr__text-block h3 {
  font-size: 1.4em;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  color: var(--text-main);
}

/* Lists */
.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-gdpr__list li {
  margin-bottom: 20px;
  padding-left: 25px;
  position: relative;
  color: var(--text-secondary);
}

.page-gdpr__list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--glow);
  font-weight: bold;
}

.page-gdpr__list-title {
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 5px;
}

/* Images within content */
.page-gdpr__image-content {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* FAQ Section */
.page-gdpr__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-gdpr__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main);
  list-style: none;
}

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

.page-gdpr__faq-item[open] summary {
  background-color: var(--deep-green);
}

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

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding-bottom: 40px;
  }

  .page-gdpr__hero-image {
    margin-bottom: 20px;
  }

  .page-gdpr__main-title {
    font-size: 2.5em;
    margin-bottom: 15px;
  }

  .page-gdpr__subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-gdpr__introduction-section,
  .page-gdpr__principles-section,
  .page-gdpr__rights-section,
  .page-gdpr__protection-section,
  .page-gdpr__cookies-section,
  .page-gdpr__contact-section,
  .page-gdpr__commitment-section,
  .page-gdpr__faq-section {
    padding: 40px 0;
  }

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

  .page-gdpr img,
  .page-gdpr video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-gdpr__hero-section,
  .page-gdpr__introduction-section,
  .page-gdpr__principles-section,
  .page-gdpr__rights-section,
  .page-gdpr__protection-section,
  .page-gdpr__cookies-section,
  .page-gdpr__contact-section,
  .page-gdpr__commitment-section,
  .page-gdpr__faq-section,
  .page-gdpr__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-gdpr__hero-section {
    padding-top: 10px !important;
  }
}

/* Ensure images and videos within content areas are responsive */
.page-gdpr img,
.page-gdpr video {
  max-width: 100%;
  height: auto;
  display: block;
}