/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Explicitly set for clarity, though shared.css likely handles body */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* 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 80px; /* Adjusted padding-top is handled by .page-gdpr itself */
  background: linear-gradient(135deg, var(--primary-color), #FFFFFF); /* Brand gradient */
  color: #FFFFFF;
}

.page-gdpr__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-gdpr__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-gdpr__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  filter: none; /* Ensure no CSS filter is applied */
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-gdpr__main-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFFFFF; /* White text on dark hero background */
}

.page-gdpr__intro-text {
  font-size: 18px;
  margin-bottom: 40px;
  color: #f0f0f0; /* Slightly off-white for contrast */
}

.page-gdpr__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
}

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure buttons adapt to container width */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-gdpr__btn-primary {
  background: var(--primary-color); /* Main brand color */
  color: #ffffff; /* White text for contrast */
  border: 2px solid var(--primary-color);
}

.page-gdpr__btn-primary:hover {
  background: #005a2d; /* Slightly darker green */
  border-color: #005a2d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-gdpr__btn-secondary {
  background: #ffffff;
  color: var(--primary-color); /* Brand color text on white background */
  border: 2px solid var(--primary-color);
}

.page-gdpr__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Custom colors for Register/Login buttons */
.page-gdpr__btn-register,
.page-gdpr__btn-login {
  background: #C30808; /* Red for Register/Login */
  color: #FFFF00; /* Yellow font for Register/Login */
  border: 2px solid #C30808;
}

.page-gdpr__btn-register:hover,
.page-gdpr__btn-login:hover {
  background: #a00606; /* Darker red on hover */
  border-color: #a00606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Content Sections */
.page-gdpr__content-section {
  padding: 60px 0;
}

.page-gdpr__section-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: var(--primary-color); /* Brand color for section titles */
}

.page-gdpr__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #333333;
}

.page-gdpr__text-block a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-gdpr__text-block a:hover {
  color: #005a2d;
}

.page-gdpr__dark-bg {
  background-color: #f5f5f5; /* Light grey background for contrast with white sections */
  color: #333333;
}

.page-gdpr__dark-bg .page-gdpr__section-title {
  color: var(--primary-color);
}

.page-gdpr__dark-section {
  background-color: var(--primary-color); /* Primary brand color background */
  color: #ffffff; /* White text for contrast */
}

.page-gdpr__dark-section .page-gdpr__section-title {
  color: #ffffff;
}

.page-gdpr__dark-section .page-gdpr__text-block {
  color: #f0f0f0;
}

.page-gdpr__dark-section .page-gdpr__text-block a {
  color: #FFFF00; /* Yellow for links on dark background */
}

.page-gdpr__dark-section .page-gdpr__text-block a:hover {
  color: #ffd700;
}

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

.page-gdpr__image-full {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto 30px;
  border-radius: 8px;
  object-fit: cover;
  filter: none; /* Ensure no CSS filter is applied */
}

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

.page-gdpr__card {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  color: #333333;
}

.page-gdpr__card-title {
  font-size: 22px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Lists */
.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-gdpr__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 16px;
  color: #333333;
}

.page-gdpr__list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.page-gdpr__dark-section .page-gdpr__list li {
  color: #f0f0f0;
}

.page-gdpr__dark-section .page-gdpr__list li::before {
  color: #FFFF00; /* Yellow checkmark on dark background */
}

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

.page-gdpr__dark-section .page-gdpr__list-strong {
  color: #FFFF00;
}

.page-gdpr__center-text {
  text-align: center;
}

/* FAQ Section */
.page-gdpr__faq-area {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer hidden */
.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important to ensure priority, value large enough for any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 5px 5px;
  border: 1px solid #e0e0e0;
  border-top: none;
  color: #333333;
}

/* Question style */
.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #333333;
}

.page-gdpr__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-gdpr__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-gdpr__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--primary-color);
}