/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: Arial, sans-serif;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
  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;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  text-align: center;
  padding-bottom: 60px; /* Space below content */
  background-color: #E53935; /* Main color */
  color: #ffffff;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-gdpr__hero-content {
  padding: 40px 20px 0;
  max-width: 800px;
  z-index: 1; /* Ensure content is above any potential background layers */
}

.page-gdpr__main-title {
  font-size: clamp(2em, 3.5vw, 2.8em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-gdpr__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Buttons */
.page-gdpr__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary:hover {
  opacity: 0.9;
}

/* Section Titles */
.page-gdpr__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #E53935; /* Main color */
}

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

.page-gdpr__sub-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #E53935; /* Main color */
}

.page-gdpr__dark-section .page-gdpr__sub-title {
  color: #FF5A4F; /* Auxiliary color */
}

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

.page-gdpr__dark-section {
  background-color: #E53935; /* Main color */
  color: #ffffff;
  padding: 60px 0;
}

.page-gdpr__light-bg {
  background-color: #F5F7FA; /* Background */
  color: #333333; /* Text Main */
}

.page-gdpr__text-block {
  margin-bottom: 30px;
}

.page-gdpr__text-block p {
  margin-bottom: 15px;
  color: inherit; /* Inherit from parent section */
}

.page-gdpr__text-block a {
  color: #FF5A4F; /* Auxiliary color for links */
  text-decoration: underline;
}

.page-gdpr__text-block a:hover {
  text-decoration: none;
}

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

.page-gdpr__card {
  background-color: #ffffff; /* Card BG */
  color: #333333; /* Text Main */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #E0E0E0; /* Border */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-gdpr__dark-section .page-gdpr__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.page-gdpr__card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #E53935; /* Main color */
}

.page-gdpr__dark-section .page-gdpr__card-title {
  color: #FF5A4F; /* Auxiliary color */
}

.page-gdpr__card p {
  font-size: 0.95em;
  line-height: 1.5;
  color: inherit;
}

/* Flex Content for Data Collection & Security */
.page-gdpr__flex-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-gdpr__flex-content--reverse {
  flex-direction: row-reverse;
}

.page-gdpr__flex-content .page-gdpr__text-block {
  flex: 1;
}

.page-gdpr__image-box {
  flex: 1;
  min-width: 200px; /* Ensure image box doesn't shrink too much */
  text-align: center;
}

.page-gdpr__image-box img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

/* CTA Box */
.page-gdpr__cta-box {
  display: flex;
  align-items: center;
  background-color: #ffffff; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: 60px;
  border: 1px solid #E0E0E0; /* Border */
  gap: 30px;
}

.page-gdpr__cta-image {
  width: 250px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

.page-gdpr__cta-content {
  flex-grow: 1;
}

.page-gdpr__cta-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E53935; /* Main color */
}

.page-gdpr__cta-description {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #333333; /* Text Main */
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-gdpr__grid-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-gdpr__flex-content {
    flex-direction: column;
    text-align: center;
  }

  .page-gdpr__flex-content--reverse {
    flex-direction: column; /* Keep column for reverse on smaller screens */
  }

  .page-gdpr__image-box {
    order: -1; /* Image appears above text on mobile for data collection section */
    margin-bottom: 30px;
  }

  .page-gdpr__flex-content--reverse .page-gdpr__image-box {
    order: 0; /* Image appears below text on mobile for security section */
  }

  .page-gdpr__cta-box {
    flex-direction: column;
    text-align: center;
  }

  .page-gdpr__cta-image {
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding-bottom: 40px;
  }

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

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

  .page-gdpr__intro-text {
    font-size: 1em;
  }

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

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

  .page-gdpr__content-section,
  .page-gdpr__dark-section {
    padding: 40px 0;
  }

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

  /* Mobile image and video responsive styles */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all content containers are responsive */
  .page-gdpr__hero-image-wrapper,
  .page-gdpr__image-box,
  .page-gdpr__cta-image,
  .page-gdpr__video-section,
  .page-gdpr__video-container,
  .page-gdpr__video-wrapper,
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__cta-box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  
  /* Buttons mobile adaptation */
  .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,
  .page-gdpr__button-group,
  .page-gdpr__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-gdpr__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  /* Small top padding for first section, body handles header offset */
  .page-gdpr__hero-section {
    padding-top: 10px !important;
  }
}

/* Ensure minimum image sizes in content areas */
.page-gdpr__image-box img,
.page-gdpr__cta-image {
  min-width: 200px;
  min-height: 200px;
}

/* Links */
.page-gdpr a {
  color: #E53935; /* Main color for general links */
  text-decoration: none;
}
.page-gdpr a:hover {
  text-decoration: underline;
}

/* Ensure text color for general content is high contrast */
.page-gdpr p,
.page-gdpr li,
.page-gdpr__card p,
.page-gdpr__cta-description {
  color: #333333; /* Text Main */
}

/* Override for dark sections */
.page-gdpr__dark-section p,
.page-gdpr__dark-section li,
.page-gdpr__dark-section .page-gdpr__card p {
  color: #ffffff;
}

/* Specific link color for dark sections */
.page-gdpr__dark-section a {
  color: #FF5A4F; /* Auxiliary color */
}

/* Contrast fix if needed, though with current scheme should be fine */
.page-gdpr__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-gdpr__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}