/* style/gdpr.css */

/* Global page styles for GDPR content within the main area */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Light text for dark body background */
  background-color: transparent; /* Inherit body background */
  padding-bottom: 40px; /* Add some padding at the bottom */
}

/* Color variables from custom palette */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B; /* Body background color from shared.css */
}

/* Sections */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  padding-top: 10px; /* Small top padding for visual separation */
  background-color: var(--deep-navy); /* Ensure section background is dark */
}

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

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  max-width: 1200px; /* Max width for the image itself */
  margin: 0 auto;
}

.page-gdpr__hero-content {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 0 20px;
  z-index: 1;
}

.page-gdpr__main-title {
  font-size: clamp(2em, 3.5vw, 2.8em); /* Responsive font size for H1 */
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-gdpr__description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--text-main);
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure button adapts to mobile */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__content-section {
  padding: 60px 20px;
}

.page-gdpr__dark-section {
  background-color: var(--deep-navy);
  color: var(--text-main);
}

.page-gdpr__light-bg {
  background-color: #ffffff; /* Explicit white background for light sections */
  color: #333333; /* Dark text for light background */
}

.page-gdpr__light-bg .page-gdpr__section-title,
.page-gdpr__light-bg .page-gdpr__card-title {
  color: var(--primary-color); /* Use primary color for titles on light background */
}

.page-gdpr__light-bg .page-gdpr__link {
  color: var(--secondary-color); /* Use secondary color for links on light background */
}

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

.page-gdpr__section-title {
  font-size: 2.2em;
  color: var(--text-main); /* Default for dark sections */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-gdpr__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
  color: inherit; /* Inherit color from parent section */
}

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

.page-gdpr__card {
  background-color: var(--card-bg); /* Dark card background */
  color: var(--text-main); /* Light text for dark card background */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-color);
}

.page-gdpr__card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: var(--gold-color); /* Gold color for card titles */
  font-weight: 600;
}

.page-gdpr__card-text {
  font-size: 0.95em;
  color: var(--text-secondary);
  flex-grow: 1; /* Allow text to take up available space */
  margin-bottom: 15px;
}

.page-gdpr__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 5px;
  margin-top: 15px;
  display: block;
}

.page-gdpr__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: inherit;
}

.page-gdpr__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: inherit;
}

.page-gdpr__list-item strong {
  color: var(--gold-color); /* Highlight strong text in lists */
}

.page-gdpr__link {
  color: var(--secondary-color); /* Use secondary color for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-gdpr__link:hover {
  color: var(--glow-color);
}

.page-gdpr__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__footer-note {
  padding: 30px 20px;
  text-align: center;
  background-color: var(--deep-navy); /* Footer note section also dark */
  color: var(--text-secondary);
  border-top: 1px solid var(--divider-color);
}

.page-gdpr__copyright,
.page-gdpr__disclaimer {
  font-size: 0.9em;
  margin-bottom: 5px;
}


/* --- Responsive Design --- */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
  }

  .page-gdpr__section-title {
    font-size: 1.8em;
  }
  
  .page-gdpr__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .page-gdpr__hero-section {
    padding: 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is for visual padding */
  }

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

  .page-gdpr__main-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 10px;
  }

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

  .page-gdpr__cta-button {
    padding: 10px 20px;
    font-size: 0.95em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 10px; /* Space between buttons if stacked */
  }
  
  /* Button container mobile adaptation */
  .page-gdpr__hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__content-section {
    padding: 40px 15px;
  }

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

  .page-gdpr__text-block,
  .page-gdpr__list-item {
    font-size: 1em;
  }

  .page-gdpr__grid {
    grid-template-columns: 1fr; /* Single column layout for cards */
    gap: 20px;
  }

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

  .page-gdpr__card-text {
    font-size: 0.9em;
  }

  .page-gdpr__card-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-gdpr__content-image {
    margin: 20px auto;
  }
  
  /* Mobile image responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Image containers */
  .page-gdpr__hero-image-wrapper,
  .page-gdpr__container,
  .page-gdpr__card,
  .page-gdpr__content-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }
  
  /* Special handling for hero image container if it has padding */
  .page-gdpr__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-gdpr__hero-image-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__footer-note {
    padding: 20px 15px;
  }
}