/* style/gdpr.css */

/* Custom color variables from prompt */
:root {
  --main-color: #113B7A;
  --accent-color: #1D5FD1;
  --btn-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border: #244D84;
  --glow: #4FA8FF;
  --gold: #F2C14E;
  --divider: #1B3357;
  --deep-navy: #08162B;
  --card-bg-rgb: 16, 35, 63; /* RGB for #10233F for rgba use */
}

/* Base styles for the page content wrapper */
.page-gdpr {
  color: var(--text-main); /* Light text for dark body background */
  background-color: var(--deep-navy); /* From shared.css, dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Min size requirement */
}

.page-gdpr__hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 1;
  padding: 0 20px;
}

.page-gdpr__main-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width for flex-wrap */
  box-sizing: border-box;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

.page-gdpr__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  border: none;
}

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

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

.page-gdpr__btn-secondary:hover {
  background: var(--glow);
  color: var(--deep-navy);
  transform: translateY(-2px);
}

/* General Section Styles */
.page-gdpr__section {
  padding: 60px 0;
  border-top: 1px solid var(--divider);
}

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

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

.page-gdpr__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  min-height: 200px; /* Min size requirement */
  object-fit: cover;
}

/* Commitment List */
.page-gdpr__commitment-list,
.page-gdpr__rights-list,
.page-gdpr__protection-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-gdpr__list-item {
  background-color: var(--card-bg); /* Dark card background */
  color: var(--text-main); /* Light text */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  border-left: 5px solid var(--glow);
  font-size: 16px;
}

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

/* Contact Privacy Section */
.page-gdpr__contact-info {
  text-align: center;
  margin-top: 30px;
}

.page-gdpr__link {
  color: var(--glow);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-gdpr__link:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* FAQ Section - Details/Summary based */
details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card-bg); /* Dark card background */
  color: var(--text-main); /* Light text */
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question::-webkit-details-marker {
  display: none;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question:hover {
  background: rgba(var(--card-bg-rgb), 0.8); /* Slightly lighter hover for dark background */
}
.page-gdpr__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main); /* Light text */
}
.page-gdpr__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--glow);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-gdpr__faq-item .page-gdpr__faq-answer {
  padding: 0 20px 20px;
  background: rgba(var(--card-bg-rgb), 0.9); /* Slightly different background for answer */
  border-radius: 0 0 8px 8px;
  color: var(--text-secondary); /* Secondary text for answers */
}
details.page-gdpr__faq-item .page-gdpr__faq-answer p {
  margin-bottom: 10px;
  color: var(--text-secondary); /* Ensure paragraph text is secondary */
}
details.page-gdpr__faq-item .page-gdpr__faq-answer a {
  color: var(--glow);
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 40px;
  }
  .page-gdpr__section-title {
    font-size: 32px;
  }
  .page-gdpr__hero-image-wrapper {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  /* General mobile adaptations */
  .page-gdpr__container {
    padding: 0 15px; /* Added padding for content */
  }

  .page-gdpr__hero-section {
    padding-top: 10px !important; /* Fixed header spacing */
    padding-bottom: 30px;
  }

  .page-gdpr__hero-image-wrapper {
    max-height: 300px; /* Smaller image on mobile */
    margin-bottom: 20px;
  }

  .page-gdpr__hero-image,
  .page-gdpr__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px;
  }

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

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

  .page-gdpr__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* Buttons and button containers */
  .page-gdpr__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 15px;
  }

  /* General section padding */
  .page-gdpr__section {
    padding: 40px 0;
  }

  .page-gdpr__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-gdpr__text-block,
  .page-gdpr__list-item {
    font-size: 15px;
    padding-left: 15px;
    padding-right: 15px;
    text-align: left;
  }
  .page-gdpr__list-item {
    padding-left: 20px; /* Adjust for border-left */
  }

  /* FAQ specific mobile styles */
  details.page-gdpr__faq-item summary.page-gdpr__faq-question {
    padding: 15px;
  }
  .page-gdpr__faq-qtext {
    font-size: 16px;
  }
  .page-gdpr__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-gdpr__faq-item .page-gdpr__faq-answer {
    padding: 0 15px 15px;
  }
  details.page-gdpr__faq-item .page-gdpr__faq-answer p {
    padding-left: 0;
    padding-right: 0;
  }

  /* All containing elements for images/buttons must be full width */
  .page-gdpr__gdpr-intro,
  .page-gdpr__us8-commitment,
  .page-gdpr__user-rights,
  .page-gdpr__data-protection,
  .page-gdpr__contact-privacy,
  .page-gdpr__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}