/* style/gdpr.css */

/* Global styles for the GDPR page content */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main color, suitable for light background */
  background-color: #F4F7FB; /* Background color from custom palette */
  padding-bottom: 40px; /* Add some padding at the bottom */
}

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

/* Hero Section */
.page-gdpr__hero-section {
  display: flex;
  flex-direction: column; /* Default to column for mobile first */
  align-items: center;
  gap: 30px;
  padding: 40px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #F4F7FB; /* Match body background */
  text-align: center;
}

.page-gdpr__hero-content {
  max-width: 800px;
}

.page-gdpr__hero-title {
  font-weight: 700;
  line-height: 1.2;
  color: #2F6BFF; /* Use primary brand color for emphasis */
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle shadow for readability */
}

.page-gdpr__hero-description {
  font-size: 1.1em;
  color: #1F2D3D;
  margin-bottom: 30px;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 1000px; /* Adjust max-width for the image */
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-gdpr__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

/* General Section Styles */
.page-gdpr__section {
  padding: 60px 0;
}

.page-gdpr__light-bg {
  background-color: #F4F7FB;
  color: #1F2D3D;
}

.page-gdpr__dark-bg {
  background-color: #2F6BFF; /* Primary brand color as background */
  color: #ffffff; /* White text for dark background */
}

.page-gdpr__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
}

.page-gdpr__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__text-block strong {
  color: inherit; /* Maintain contrast */
}

/* Buttons */
.page-gdpr__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-gdpr__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  background-color: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-gdpr__btn-secondary:hover {
  background-color: #e0eaff; /* Lighter shade of primary for hover */
  color: #2F6BFF;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__btn-center {
  display: block;
  margin: 30px auto 0 auto;
  max-width: 280px; /* Limit button width for centered display */
  width: 100%;
}

/* Rights Section Grid */
.page-gdpr__rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-gdpr__card {
  background-color: #ffffff; /* Card BG color */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: #1F2D3D; /* Dark text for light card background */
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribute content vertically */
}

.page-gdpr__card:hover {
  transform: translateY(-8px);
}

.page-gdpr__card-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
  object-fit: cover; /* Ensure images fill their space nicely */
}

.page-gdpr__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #2F6BFF; /* Primary color for card titles */
  margin-bottom: 15px;
}

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

/* Protection Section Features */
.page-gdpr__protection-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-gdpr__feature-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: #1F2D3D;
  transition: transform 0.3s ease;
}

.page-gdpr__feature-item:hover {
  transform: translateY(-8px);
}

.page-gdpr__feature-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
  object-fit: cover;
}

.page-gdpr__feature-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #2F6BFF;
  margin-bottom: 15px;
}

.page-gdpr__feature-text {
  font-size: 1em;
  color: #1F2D3D;
}

/* Contact Section */
.page-gdpr__contact-section .page-gdpr__text-block {
  color: #ffffff;
}
.page-gdpr__contact-note {
  font-size: 0.9em;
  opacity: 0.8;
  margin-top: 30px;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-gdpr__hero-section {
    flex-direction: row; /* Desktop: row layout */
    text-align: left;
    padding: 80px 20px;
    padding-top: 10px; /* Keep small top padding */
  }

  .page-gdpr__hero-content {
    flex: 1;
    padding-right: 40px;
  }

  .page-gdpr__hero-image-wrapper {
    flex: 1;
    max-width: 60%; /* Adjust as needed */
  }

  .page-gdpr__hero-title {
    font-size: clamp(2.5em, 4vw, 3.5em); /* Use clamp for H1 font-size */
    text-align: left;
  }

  .page-gdpr__hero-description {
    text-align: left;
  }

  .page-gdpr__btn-center {
    margin-left: 0; /* Align to left on desktop */
  }

  .page-gdpr__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
  }
}

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

  .page-gdpr__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* body already handles header offset */
  }

  .page-gdpr__hero-title {
    font-size: clamp(2em, 8vw, 2.5em); /* Smaller H1 for mobile */
    margin-bottom: 15px;
  }

  .page-gdpr__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-gdpr__container {
    padding: 0 15px !important; /* Force padding for mobile */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-gdpr__section-title {
    font-size: clamp(1.6em, 7vw, 2em);
    margin-bottom: 30px;
  }

  .page-gdpr__text-block {
    font-size: 0.95em;
    text-align: left; /* Align text left for better mobile readability */
  }

  /* Image responsive adaptations */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all image containers are responsive */
  .page-gdpr__hero-image-wrapper,
  .page-gdpr__card,
  .page-gdpr__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Button responsive adaptations */
  .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 15px !important; /* Adjust padding for mobile buttons */
  }

  .page-gdpr__btn-center {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* If multiple buttons are in a flex container, ensure they wrap or stack */
  .page-gdpr__hero-content .page-gdpr__btn-primary { /* Example for specific button */
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  /* Card and Feature item specific mobile adjustments */
  .page-gdpr__card,
  .page-gdpr__feature-item {
    padding: 20px;
  }
}