/* style/gdpr.css */

/* Custom colors */
:root {
  --main-color: #11A84E;
  --auxiliary-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;
}

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

.page-gdpr__section {
  padding: 60px 20px;
  background-color: var(--background);
}

.page-gdpr__section--intro {
  background-color: var(--card-bg);
}

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

.page-gdpr__section-title {
  font-size: 2.5em;
  color: var(--gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-gdpr h3 {
  font-size: 1.8em;
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-gdpr p,
.page-gdpr ol,
.page-gdpr ul,
.page-gdpr li {
  margin-bottom: 1em;
  color: var(--text-main);
}

.page-gdpr ol,
.page-gdpr ul {
  padding-left: 20px;
}

.page-gdpr li {
  margin-bottom: 0.5em;
}

.page-gdpr__text-block {
  margin-bottom: 20px;
}

.page-gdpr strong {
  color: var(--gold);
}

/* Hero Section - Image above text */
.page-gdpr__hero-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background);
}

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

.page-gdpr__hero-content {
  max-width: 800px;
  padding: 20px;
  box-sizing: border-box;
  color: var(--text-main);
  margin-top: 30px; /* Space between image and text */
}

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

.page-gdpr__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-main);
}

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Invert gradient for hover */
}

.page-gdpr__cta-button--large {
  padding: 18px 35px;
  font-size: 1.3em;
}

/* Image styling */
.page-gdpr__image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
  object-fit: cover;
  filter: none; /* Ensure no CSS filter */
}

.page-gdpr__image--right {
  float: right;
  margin-left: 30px;
  max-width: 40%; /* Adjust width for desktop layout */
}

.page-gdpr__image--left {
  float: left;
  margin-right: 30px;
  max-width: 40%; /* Adjust width for desktop layout */
}

/* Clearfix for floated images */
.page-gdpr__section--principles .page-gdpr__container::after,
.page-gdpr__section--rights .page-gdpr__container::after,
.page-gdpr__section--compliance .page-gdpr__container::after {
  content: "";
  display: table;
  clear: both;
}

/* FAQ section */
.page-gdpr__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  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;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main);
  background-color: var(--deep-green);
  transition: background-color 0.3s ease;
}

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

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

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

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

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 2000px; /* Sufficiently large to show content */
  padding: 15px 25px;
  transition: max-height 0.5s ease-in, padding 0.3s ease;
}

/* Details/Summary for FAQ */
.page-gdpr__faq-item details > summary {
  list-style: none;
}

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

/* Color Contrast Fixes (as per instructions) */
.page-gdpr__dark-bg {
  color: #ffffff;
  background: #11A84E;
}

.page-gdpr__light-bg {
  color: #333333;
  background: #ffffff;
}

/* Ensure minimum image size for content area */
.page-gdpr__text-block img {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-gdpr__hero-image {
    max-height: 500px;
  }
  .page-gdpr__main-title {
    font-size: clamp(1.8em, 4vw, 3em);
  }
  .page-gdpr__hero-description {
    font-size: 1.1em;
  }
  .page-gdpr__section-title {
    font-size: 2em;
  }
  .page-gdpr h3 {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-image {
    max-height: 400px;
  }
  .page-gdpr__hero-content {
    padding: 15px;
    margin-top: 20px; /* Adjust spacing for mobile */
  }
  .page-gdpr__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
    max-width: 100%;
    word-wrap: break-word;
  }
  .page-gdpr__hero-description {
    font-size: 1em;
  }
  .page-gdpr__section {
    padding: 40px 15px;
  }
  .page-gdpr__section-title {
    font-size: 1.8em;
  }
  .page-gdpr h3 {
    font-size: 1.4em;
  }

  /* Images responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 20px !important;
  }
  .page-gdpr__image--right,
  .page-gdpr__image--left {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Container padding for mobile */
  .page-gdpr__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Buttons responsiveness */
  .page-gdpr__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    font-size: 1em !important;
  }

  /* No video section on this page, but include the general responsive rules */
  .page-gdpr video,
  .page-gdpr__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-gdpr__video-section,
  .page-gdpr__video-container,
  .page-gdpr__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }
  .page-gdpr__video-section {
    padding-top: 10px !important; /* Small top padding for video section */
  }
}

@media (max-width: 480px) {
  .page-gdpr__main-title {
    font-size: clamp(1.2em, 8vw, 2em);
  }
  .page-gdpr__section-title {
    font-size: 1.5em;
  }
  .page-gdpr h3 {
    font-size: 1.2em;
  }
  .page-gdpr__cta-button {
    font-size: 0.9em !important;
    padding: 12px 20px !important;
  }
}