/* Base styles for the GDPR page */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #333333);
  background: var(--bg-color, #F5F7FA); /* Default background, will be overridden by shared.css */
}

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

.page-gdpr__section {
  padding: 60px 0;
  text-align: center;
}

.page-gdpr__section-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-main, #333333);
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand gradient for hero background */
}

.page-gdpr__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-gdpr__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover for desktop */
  display: block;
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-gdpr__main-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-gdpr__intro-text {
  font-size: 20px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-gdpr__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-gdpr__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-gdpr__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.page-gdpr__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-gdpr__btn-secondary:hover {
  background: #f0f0f0;
  color: #FF5A4F;
  border-color: #FF5A4F;
  transform: translateY(-2px);
}

/* Section specific styles */
.page-gdpr__section--what-is-gdpr .page-gdpr__section-title,
.page-gdpr__section--your-rights .page-gdpr__section-title,
.page-gdpr__section--contact .page-gdpr__section-title,
.page-gdpr__section--faq .page-gdpr__section-title {
  color: var(--text-main, #333333);
}

.page-gdpr__section--commitment,
.page-gdpr__section--security-measures {
  background: #E53935; /* Main brand color for dark sections */
  color: #ffffff;
}

.page-gdpr__section--commitment .page-gdpr__section-title,
.page-gdpr__section--security-measures .page-gdpr__section-title {
  color: #ffffff;
}

.page-gdpr__section--commitment .page-gdpr__text-block,
.page-gdpr__section--security-measures .page-gdpr__text-block {
  color: #f0f0f0;
}

.page-gdpr__section-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  margin-top: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-gdpr__list-item {
  font-size: 18px;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: inherit;
}

.page-gdpr__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #FF5A4F; /* Auxiliary color for checkmark */
  font-weight: bold;
}

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

.page-gdpr__right-card {
  background: var(--card-bg, #FFFFFF);
  border: 1px solid var(--border-color, #E0E0E0);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main, #333333);
}

.page-gdpr__right-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.page-gdpr__right-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E53935; /* Main brand color for titles */
}

.page-gdpr__right-description {
  font-size: 16px;
  color: var(--text-main, #333333);
}

/* Security List */
.page-gdpr__security-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 900px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-gdpr__security-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-gdpr__security-heading {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-gdpr__security-description {
  font-size: 16px;
  color: #f0f0f0;
}

/* Contact List */
.page-gdpr__contact-list {
  list-style: none;
  padding: 0;
  margin: 20px auto 40px auto;
  max-width: 600px;
  text-align: left;
}

.page-gdpr__contact-item {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-main, #333333);
}

.page-gdpr__contact-item a {
  color: #E53935;
  text-decoration: none;
  font-weight: 600;
}

.page-gdpr__contact-item a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-gdpr__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color, #e0e0e0);
  overflow: hidden;
  background: var(--card-bg, #fff);
}
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;
  transition: background-color 0.3s ease;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question::-webkit-details-marker {
  display: none;
}
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;
  text-align: left;
  color: var(--text-main, #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: var(--text-main, #333333);
}

/* General image responsiveness */
.page-gdpr img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-gdpr__section-title {
    font-size: 32px;
  }

  .page-gdpr__intro-text {
    font-size: 18px;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-gdpr__text-block,
  .page-gdpr__list-item,
  .page-gdpr__right-description,
  .page-gdpr__security-description,
  .page-gdpr__contact-item {
    font-size: 16px;
  }

  .page-gdpr__right-title,
  .page-gdpr__security-heading {
    font-size: 20px;
  }

  .page-gdpr__faq-qtext {
    font-size: 16px;
  }
}

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

  .page-gdpr__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* HERO Section mobile */
  .page-gdpr__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }

  .page-gdpr__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-gdpr__hero-image {
    object-fit: contain !important; /* Mobile: contain, not cover */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-gdpr__main-title {
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 15px;
  }

  .page-gdpr__intro-text {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* General content text and list items */
  .page-gdpr__text-block,
  .page-gdpr__list-item,
  .page-gdpr__right-description,
  .page-gdpr__security-description,
  .page-gdpr__contact-item {
    font-size: 15px;
    text-align: left;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-gdpr__list-item::before {
    left: 15px;
  }
  .page-gdpr__list-item {
    padding-left: 45px;
  }

  /* Rights Grid mobile */
  .page-gdpr__rights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    padding: 0 15px;
  }

  .page-gdpr__right-card {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* Security List mobile */
  .page-gdpr__security-list {
    margin-top: 30px;
    padding: 0 15px;
  }

  .page-gdpr__security-item {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-gdpr__security-heading {
    font-size: 18px;
  }

  /* Contact List mobile */
  .page-gdpr__contact-list {
    margin: 15px auto 30px auto;
    padding: 0 15px;
  }

  /* FAQ Section mobile */
  .page-gdpr__faq-list {
    margin-top: 30px;
    padding: 0 15px;
  }

  details.page-gdpr__faq-item summary.page-gdpr__faq-question {
    padding: 15px;
  }
  .page-gdpr__faq-qtext {
    font-size: 15px;
  }
  .page-gdpr__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
    margin-left: 10px;
  }
  details.page-gdpr__faq-item .page-gdpr__faq-answer {
    padding: 0 15px 15px;
  }

  /* Universal image responsiveness for mobile */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-gdpr__section-image {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box !important;
  }
}

/* Color contrast safety */
.page-gdpr__light-bg {
  background: var(--bg-color, #F5F7FA);
  color: var(--text-main, #333333);
}

.page-gdpr__dark-bg {
  background: #E53935;
  color: #ffffff;
}

/* Ensure text readability on cards */
.page-gdpr__right-card p,
.page-gdpr__faq-answer p {
  color: var(--text-main, #333333);
}