/* style/gdpr.css */

/* Custom Color Variables */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient-start: #2AD16F;
  --color-button-gradient-end: #13994A;
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--color-deep-green); /* Slightly different background for hero */
  overflow: hidden; /* Ensure no overflow issues */
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure it doesn't overflow */
  margin-bottom: 30px; /* Space between image and content */
  box-sizing: border-box;
}

.page-gdpr__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  width: 1200px; /* Display width */
  height: 675px; /* Display height */
}

.page-gdpr__hero-content {
  max-width: 900px;
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  color: var(--color-gold); /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-gdpr__hero-description {
  font-size: 1.1em;
  color: var(--color-text-secondary); /* Secondary text color */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Content Section */
.page-gdpr__content-section {
  padding: 60px 20px;
  background-color: var(--color-background);
}

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

.page-gdpr__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em); /* Responsive font size */
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
  position: relative;
}

.page-gdpr__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--color-gold);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-gdpr__text-block {
  font-size: 1.05em;
  color: var(--color-text-main);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.page-gdpr__highlight {
  color: var(--color-gold);
  font-weight: bold;
}

/* CTA Button */
.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: #ffffff; /* White text for button */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-gdpr__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
}

.page-gdpr__btn-secondary {
  background: none;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  box-shadow: none;
}

.page-gdpr__btn-secondary:hover {
  background-color: rgba(var(--color-primary), 0.1);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-gdpr__card {
  background-color: var(--color-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  color: var(--color-text-main); /* Card text color */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-gdpr__card-title {
  font-size: 1.4em;
  color: var(--color-gold); /* Gold for card titles */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-gdpr__card-text {
  font-size: 1em;
  color: var(--color-text-secondary);
}

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

.page-gdpr__right-item {
  background-color: var(--color-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
}

.page-gdpr__right-title {
  font-size: 1.3em;
  color: var(--color-primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-gdpr__right-description {
  font-size: 0.95em;
  color: var(--color-text-secondary);
}

.page-gdpr__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 50px auto 20px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

.page-gdpr__detail-item {
  background-color: var(--color-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
}

.page-gdpr__detail-title {
  font-size: 1.4em;
  color: var(--color-gold);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-gdpr__detail-description {
  font-size: 1em;
  color: var(--color-text-secondary);
}

/* Contact Section */
.page-gdpr__contact-section {
  text-align: center;
  padding-bottom: 40px;
}

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

.page-gdpr__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-gdpr__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  background-color: var(--color-deep-green); /* Darker background for question */
  border-bottom: 1px solid var(--color-divider);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-gdpr__faq-item[open] > .page-gdpr__faq-question {
  background-color: var(--color-deep-green);
  border-bottom: 1px solid var(--color-primary);
}

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

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

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--color-gold);
  transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to form an X or minus */
}

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

.page-gdpr__faq-answer p {
  margin-bottom: 10px;
  color: var(--color-text-secondary);
}

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

/* Final CTA Section */
.page-gdpr__final-cta {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__hero-image {
    width: 1000px;
    height: 563px; /* Maintain aspect ratio */
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles header offset */
  }

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

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

  .page-gdpr__hero-content {
    padding: 0 10px;
  }

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

  .page-gdpr__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-gdpr__content-section {
    padding: 40px 15px;
  }

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

  .page-gdpr__text-block {
    font-size: 0.95em;
    text-align: left; /* Adjust alignment for mobile readability */
  }

  .page-gdpr__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 15px; /* Add space between buttons if stacked */
  }

  /* Image and Card responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-gdpr__card,
  .page-gdpr__right-item,
  .page-gdpr__detail-item,
  .page-gdpr__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 20px; /* Adjust padding for smaller screens */
  }

  .page-gdpr__card-grid,
  .page-gdpr__rights-list,
  .page-gdpr__implementation-details {
    grid-template-columns: 1fr; /* Single column layout on mobile */
    gap: 20px;
  }

  .page-gdpr__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-gdpr__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }
  
  /* Ensure all containers have proper padding and width on mobile */
  .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* No CSS filters on images */
.page-gdpr img {
  filter: none;
}