/* style/gdpr.css */

/* Root variables for colors */
:root {
  --g88-primary-color: #11A84E;
  --g88-secondary-color: #22C768;
  --g88-card-bg: #11271B;
  --g88-bg-color: #08160F;
  --g88-text-main: #F2FFF6;
  --g88-text-secondary: #A7D9B8;
  --g88-border-color: #2E7A4E;
  --g88-glow-color: #57E38D;
  --g88-gold-color: #F2C14E;
  --g88-divider-color: #1E3A2A;
  --g88-deep-green: #0A4B2C;
}

/* General body styling for GDPR page, relying on shared.css for padding-top */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--g88-text-main); /* Default text color for dark background */
  background-color: var(--g88-bg-color); /* Default background color */
}

.page-gdpr__dark-section {
  background-color: var(--g88-bg-color);
  color: var(--g88-text-main);
}

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

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

.page-gdpr__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-gdpr__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-gdpr__main-title {
  font-size: clamp(2em, 5vw, 3.2em);
  font-weight: 700;
  color: var(--g88-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-gdpr__description {
  font-size: 1.1em;
  color: var(--g88-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* General Container and Section Styling */
.page-gdpr__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-gdpr__section-title {
  font-size: 2.2em;
  color: var(--g88-primary-color);
  text-align: center;
  margin-bottom: 40px;
  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(--g88-gold-color);
  border-radius: 2px;
}

.page-gdpr__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: var(--g88-text-main);
  text-align: justify;
}

.page-gdpr__light-bg .page-gdpr__text-block {
  color: #333333;
}

/* Buttons */
.page-gdpr__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-gdpr__btn-center {
  display: block;
  margin: 30px auto 0 auto;
  width: fit-content;
}

/* Principles Section */
.page-gdpr__principles-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-gdpr__principle-card {
  background-color: var(--g88-card-bg);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--g88-border-color);
}

.page-gdpr__principle-card .page-gdpr__card-title {
  font-size: 1.5em;
  color: var(--g88-gold-color);
  margin-bottom: 15px;
}

.page-gdpr__principle-card p {
  color: var(--g88-text-main);
  text-align: justify;
}

/* Rights Section */
.page-gdpr__rights-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-gdpr__right-item {
  background-color: var(--g88-card-bg);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 5px solid var(--g88-primary-color);
}

.page-gdpr__right-title {
  font-size: 1.4em;
  color: var(--g88-text-main);
  margin-bottom: 10px;
}

.page-gdpr__right-item p {
  color: var(--g88-text-secondary);
  text-align: justify;
}

/* Security Section */
.page-gdpr__security-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-gdpr__security-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
  padding: 25px;
  background-color: var(--g88-card-bg);
  border-radius: 10px;
  border: 1px solid var(--g88-border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__feature-icon {
  width: 100%; /* Ensure image fills container */
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-gdpr__security-feature p {
  color: var(--g88-text-secondary);
  text-align: justify;
}

/* Contact Section */
.page-gdpr__contact-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-gdpr__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-gdpr__contact-item {
  background-color: var(--g88-card-bg);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: var(--g88-text-main);
  border-left: 4px solid var(--g88-gold-color);
}

.page-gdpr__contact-link {
  color: var(--g88-primary-color);
  text-decoration: none;
}

.page-gdpr__contact-link:hover {
  text-decoration: underline;
  color: var(--g88-glow-color);
}

/* FAQ Section */
.page-gdpr__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

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

.page-gdpr__faq-item[open] {
  border-color: var(--g88-primary-color);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--g88-text-main);
  cursor: pointer;
  background-color: var(--g88-deep-green);
  border-bottom: 1px solid var(--g88-divider-color);
  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: var(--g88-primary-color);
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--g88-gold-color);
  transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  transform: rotate(45deg);
}

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

.page-gdpr__faq-answer p {
  margin: 0;
}

/* Back to Top Button */
.page-gdpr__back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.page-gdpr__back-to-top::before {
  content: '↑';
}

.page-gdpr__back-to-top.show {
  opacity: 1;
  visibility: visible;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__hero-content {
    padding: 15px;
  }
  .page-gdpr__main-title {
    font-size: clamp(1.8em, 4.5vw, 2.8em);
  }
  .page-gdpr__description {
    font-size: 1em;
  }
  .page-gdpr__section-title {
    font-size: 2em;
  }
  .page-gdpr__container {
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-gdpr__hero-content {
    padding: 10px;
  }
  .page-gdpr__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-gdpr__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-gdpr__btn-primary {
    padding: 10px 20px;
    font-size: 0.95em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-gdpr__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-gdpr__text-block {
    font-size: 0.95em;
  }
  .page-gdpr__principle-card, .page-gdpr__right-item, .page-gdpr__security-feature, .page-gdpr__contact-item, .page-gdpr__faq-item {
    padding: 20px;
    margin-bottom: 15px;
  }
  .page-gdpr__card-title, .page-gdpr__right-title, .page-gdpr__feature-title {
    font-size: 1.3em;
  }
  .page-gdpr__feature-icon {
    max-width: 250px;
  }
  .page-gdpr__faq-question {
    font-size: 1.05em;
    padding: 15px 20px;
  }
  .page-gdpr__faq-answer {
    padding: 15px 20px;
  }
  .page-gdpr__back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.3em;
  }

  /* Image responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-gdpr__hero-image-wrapper,
  .page-gdpr__container,
  .page-gdpr__principles-section,
  .page-gdpr__rights-section,
  .page-gdpr__security-section,
  .page-gdpr__contact-section,
  .page-gdpr__faq-section {
    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 */
  }

  /* Video responsiveness (if any, though none explicitly here) */
  .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;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-gdpr__video-section {
    padding-top: 10px !important;
  }

  /* Button responsiveness */
  .page-gdpr__cta-button,
  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary,
  .page-gdpr a[class*="button"],
  .page-gdpr a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-gdpr__cta-buttons,
  .page-gdpr__button-group,
  .page-gdpr__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-gdpr__cta-buttons {
    display: flex;
    flex-direction: column; 
  }
}

@media (max-width: 480px) {
  .page-gdpr__main-title {
    font-size: clamp(1.3em, 7vw, 2em);
  }
  .page-gdpr__section-title {
    font-size: 1.6em;
  }
  .page-gdpr__principle-card, .page-gdpr__right-item, .page-gdpr__security-feature, .page-gdpr__contact-item, .page-gdpr__faq-item {
    padding: 15px;
  }
  .page-gdpr__card-title, .page-gdpr__right-title, .page-gdpr__feature-title {
    font-size: 1.2em;
  }
  .page-gdpr__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-gdpr__faq-answer {
    padding: 12px 15px;
  }
  .page-gdpr__back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
  }
}