/* style/gdpr.css */

/* Custom Colors */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --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;
}

/* General Page Styling */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text-main); /* Default text color for dark body background */
  background-color: var(--color-background); /* Ensures consistent dark background */
}

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

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

.page-gdpr__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--color-text-secondary);
}

.page-gdpr__text-main {
  color: var(--color-text-main);
}

.page-gdpr__text-secondary {
  color: var(--color-text-secondary);
}

.page-gdpr__text-link {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* Section Backgrounds */
.page-gdpr__dark-bg {
  background-color: var(--color-background);
  color: var(--color-text-main);
}

.page-gdpr__light-bg {
  background-color: #f8f9fa; /* A very light background to contrast with dark body */
  color: #333333; /* Dark text for light background */
}

.page-gdpr__light-bg .page-gdpr__section-title,
.page-gdpr__light-bg .page-gdpr__text-block,
.page-gdpr__light-bg .page-gdpr__usage-item-title,
.page-gdpr__light-bg .page-gdpr__rights-item-title,
.page-gdpr__light-bg .page-gdpr__faq-qtext {
  color: #333333; /* Ensure dark text on light background */
}

.page-gdpr__card-bg {
  background-color: var(--color-card-bg);
  color: var(--color-text-main);
}

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

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

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

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

.page-gdpr__hero-description {
  font-size: 1.2em;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  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;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
}

.page-gdpr__btn-primary {
  background: var(--color-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-gdpr__btn-secondary:hover {
  background-color: var(--color-gold);
  color: var(--color-background);
}

.page-gdpr__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Lists */
.page-gdpr__data-list,
.page-gdpr__usage-list,
.page-gdpr__protection-list,
.page-gdpr__rights-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-gdpr__data-item,
.page-gdpr__usage-item,
.page-gdpr__protection-item,
.page-gdpr__rights-item {
  background-color: rgba(17, 168, 78, 0.1); /* Subtle green tint */
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-gdpr__light-bg .page-gdpr__data-item,
.page-gdpr__light-bg .page-gdpr__usage-item,
.page-gdpr__light-bg .page-gdpr__protection-item,
.page-gdpr__light-bg .page-gdpr__rights-item {
  background-color: #ffffff;
  border-color: #e0e0e0;
  color: #333333;
}

.page-gdpr__data-item:hover,
.page-gdpr__usage-item:hover,
.page-gdpr__protection-item:hover,
.page-gdpr__rights-item:hover {
  transform: translateY(-5px);
}

.page-gdpr__data-item-title,
.page-gdpr__usage-item-title,
.page-gdpr__protection-item-title,
.page-gdpr__rights-item-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--color-gold);
}

.page-gdpr__light-bg .page-gdpr__data-item-title,
.page-gdpr__light-bg .page-gdpr__usage-item-title,
.page-gdpr__light-bg .page-gdpr__protection-item-title,
.page-gdpr__light-bg .page-gdpr__rights-item-title {
  color: var(--color-primary);
}

/* Images in Content */
.page-gdpr__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 40px auto;
  max-width: 800px;
  object-fit: cover;
}

/* Contact Info */
.page-gdpr__contact-info {
  font-style: normal;
  margin-top: 20px;
  font-size: 1.1em;
  color: var(--color-text-main);
}

.page-gdpr__contact-info p {
  margin-bottom: 10px;
}

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

/* FAQ Section */
.page-gdpr__faq-section {
  padding: 60px 0;
  background-color: #f8f9fa; /* Light background for contrast */
  color: #333333;
}

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

.page-gdpr__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

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

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

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

.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
  border-top: 1px solid #e0e0e0;
  padding: 20px;
  color: #555555;
}

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

/* Call to Action Section */
.page-gdpr__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--color-deep-green);
  color: var(--color-text-main);
}

.page-gdpr__cta-section .page-gdpr__section-title {
  color: var(--color-gold);
}

.page-gdpr__cta-section .page-gdpr__text-secondary {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__section-title {
    font-size: 2em;
  }

  .page-gdpr__text-block {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-gdpr__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

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

  .page-gdpr__hero-description {
    font-size: 1em;
  }

  .page-gdpr__hero-section,
  .page-gdpr__introduction,
  .page-gdpr__data-collection,
  .page-gdpr__data-usage,
  .page-gdpr__data-protection-measures,
  .page-gdpr__user-rights,
  .page-gdpr__cookie-policy-overview,
  .page-gdpr__data-retention,
  .page-gdpr__data-transfer,
  .page-gdpr__data-breach-response,
  .page-gdpr__contact-dpo,
  .page-gdpr__faq-section,
  .page-gdpr__cta-section {
    padding: 30px 15px !important; /* Adjust padding for mobile */
  }

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

  /* Mobile 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__content-area,
  .page-gdpr__container,
  .page-gdpr__data-list,
  .page-gdpr__usage-list,
  .page-gdpr__protection-list,
  .page-gdpr__rights-list,
  .page-gdpr__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .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 {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-gdpr__data-list,
  .page-gdpr__usage-list,
  .page-gdpr__protection-list,
  .page-gdpr__rights-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-gdpr__data-item,
  .page-gdpr__usage-item,
  .page-gdpr__protection-item,
  .page-gdpr__rights-item {
    padding: 20px;
  }

  .page-gdpr__data-item-title,
  .page-gdpr__usage-item-title,
  .page-gdpr__protection-item-title,
  .page-gdpr__rights-item-title {
    font-size: 1.2em;
  }

  .page-gdpr__hero-section {
    padding-top: 10px !important;
  }
}