/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background: #FFFFFF; /* Matches body background from shared.css */
}

/* Section padding and max-width */
.page-gdpr__section {
  padding: 60px 20px;
  text-align: center;
  overflow: hidden; /* Prevent content overflow */
}

.page-gdpr__section--intro {
  background-color: #f8f8f8;
}

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

/* 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;
  /* body padding-top handles header offset, this is just for spacing below header */
  padding-top: 10px;
  background-color: #f0f8ff; /* Lightest blue tone for hero background */
}

.page-gdpr__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width within max-width */
}

.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;
}

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

.page-gdpr__main-title {
  font-weight: 700;
  color: #26A9E0; /* Brand primary color for title */
  margin-bottom: 20px;
  line-height: 1.2;
  /* clamp for H1 as per instructions */
  font-size: clamp(28px, 4vw, 40px);
}

.page-gdpr__hero-description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #26A9E0; /* Primary brand color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__cta-button:hover {
  background: #1e87c0; /* Slightly darker primary color */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Titles */
.page-gdpr__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #26A9E0; /* Primary brand color */
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.page-gdpr__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: #26A9E0;
  border-radius: 2px;
}

.page-gdpr__section-title--light {
  color: #ffffff;
}
.page-gdpr__section-title--light::after {
  background-color: #ffffff;
}

/* Paragraphs */
.page-gdpr__paragraph {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left; /* Default text alignment for content paragraphs */
}

.page-gdpr__paragraph--light {
  color: #f0f0f0;
}

/* Images in content */
.page-gdpr__image {
  margin-top: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__image--center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Dark section for contrast */
.page-gdpr__dark-section {
  background-color: #26A9E0; /* Primary brand color as background */
  color: #ffffff;
}

/* Grid layout for principles and compliance measures */
.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: #ffffff; /* Light background for cards */
  color: #333333;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  border: 1px solid #e0e0e0;
}

.page-gdpr__card-title {
  font-size: 20px;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-gdpr__card-text {
  font-size: 15px;
  color: #555555;
}

/* List styles */
.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__list-item {
  background: #f9f9f9;
  border-left: 4px solid #26A9E0;
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 16px;
  color: #444444;
}

.page-gdpr__list-item strong {
  color: #26A9E0;
}

/* Contact section specific */
.page-gdpr__section--contact a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-gdpr__section--contact a:hover {
  color: #1e87c0;
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 40px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  text-align: left;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none; /* Remove default marker */
  transition: background-color 0.3s ease;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question:hover {
  background: #f5f5f5;
}
.page-gdpr__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
}
.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-gdpr__faq-item .page-gdpr__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
  font-size: 15px;
}
.page-gdpr__faq-answer p {
  margin: 0;
  padding-top: 10px;
}
.page-gdpr__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}
.page-gdpr__faq-answer a:hover {
  color: #1e87c0;
}

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

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__main-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-gdpr__hero-description {
    font-size: 16px;
  }

  .page-gdpr__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }

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

  .page-gdpr__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .page-gdpr__paragraph {
    font-size: 15px;
    text-align: justify;
  }

  .page-gdpr__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-gdpr__card {
    padding: 20px;
  }

  .page-gdpr__card-title {
    font-size: 18px;
  }

  .page-gdpr__list-item {
    padding: 12px 15px;
    font-size: 15px;
  }

  details.page-gdpr__faq-item summary.page-gdpr__faq-question {
    padding: 15px;
  }
  .page-gdpr__faq-qtext {
    font-size: 15px;
  }
  details.page-gdpr__faq-item .page-gdpr__faq-answer {
    padding: 0 15px 15px;
  }

  /* Image responsive rules */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}