/* style/gdpr.css */

/* Base styles for GDPR page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-gdpr__section {
  padding: 60px 0;
}

.page-gdpr__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for sections */
  color: #ffffff;
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  padding: 80px 0 60px; /* Adjust padding-top to accommodate fixed header */
  padding-top: var(--header-offset, 120px);
  text-align: center;
  background-color: #26A9E0; /* Use primary brand color for hero background */
  color: #ffffff;
  overflow: hidden;
}

.page-gdpr__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-gdpr__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-gdpr__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-gdpr__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-gdpr__btn-primary:hover {
  background-color: #d86a00;
  border-color: #d86a00;
}

.page-gdpr__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-gdpr__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Section titles and intros */
.page-gdpr__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #26A9E0;
  font-weight: bold;
}

.page-gdpr__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #f0f0f0;
}

.page-gdpr__principles-section .page-gdpr__section-intro,
.page-gdpr__security-section .page-gdpr__section-intro {
  color: #333333;
}

.page-gdpr__subtitle {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-gdpr__paragraph {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-gdpr__principles-section .page-gdpr__paragraph,
.page-gdpr__security-section .page-gdpr__paragraph {
  color: #333333;
}

/* Cards */
.page-gdpr__principles-grid,
.page-gdpr__rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-gdpr__card {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-gdpr__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-gdpr__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-gdpr__card-text {
  font-size: 1em;
  color: #333333;
}

/* Lists */
.page-gdpr__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-gdpr__principles-section .page-gdpr__list,
.page-gdpr__security-section .page-gdpr__list {
  color: #333333;
}

.page-gdpr__list-item {
  margin-bottom: 10px;
}

.page-gdpr__security-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.page-gdpr__security-item {
  background-color: #ffffff;
  color: #333333;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.page-gdpr__list-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-gdpr__list-text {
  color: #333333;
}

/* Images within content */
.page-gdpr__image-container {
  text-align: center;
  margin: 40px 0;
}

.page-gdpr__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.page-gdpr__contact-detail {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-gdpr__contact-section .page-gdpr__paragraph {
  color: #333333;
}

.page-gdpr__contact-section .page-gdpr__link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-gdpr__contact-section .page-gdpr__link:hover {
  color: #1a7bbd;
}

.page-gdpr__contact-cta {
  margin-top: 20px;
}

/* FAQ Section */
.page-gdpr__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-gdpr__faq-item {
  background-color: #2a2a2a; /* Slightly lighter dark background for FAQ item */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #26A9E0; /* Primary brand color for question background */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
  background-color: #1a7bbd;
}

.page-gdpr__faq-title {
  margin: 0;
  color: #ffffff;
  font-size: 1.1em; /* Ensure title size is consistent */
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #2a2a2a;
  color: #f0f0f0;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to accommodate content */
  padding: 20px 25px;
}

/* General links */
.page-gdpr__link {
  color: #26A9E0;
  text-decoration: none;
}

.page-gdpr__link:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-gdpr__hero-title {
    font-size: 2.8em;
  }

  .page-gdpr__section-title {
    font-size: 2em;
  }

  .page-gdpr__principles-grid,
  .page-gdpr__rights-grid,
  .page-gdpr__security-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-gdpr__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    padding-bottom: 40px;
  }

  .page-gdpr__hero-title {
    font-size: 2.2em;
  }

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

  .page-gdpr__section {
    padding: 40px 0;
  }

  .page-gdpr__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-gdpr__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-gdpr__principles-grid,
  .page-gdpr__rights-grid,
  .page-gdpr__security-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-gdpr__card {
    padding: 20px;
  }

  .page-gdpr__card-title {
    font-size: 1.3em;
  }

  .page-gdpr__list-title {
    font-size: 1.1em;
  }

  /* Image responsive rules */
  .page-gdpr img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-gdpr__hero-image-wrapper,
  .page-gdpr__image-container,
  .page-gdpr__principles-grid,
  .page-gdpr__rights-grid,
  .page-gdpr__security-list,
  .page-gdpr__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Button responsive rules */
  .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: 12px 20px;
    font-size: 1em;
  }

  .page-gdpr__hero-cta {
    margin-left: auto;
    margin-right: auto;
  }

  .page-gdpr__contact-cta {
    margin-left: auto;
    margin-right: auto;
  }

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

  .page-gdpr__faq-answer {
    padding: 15px 20px;
  }
}