/* style/gdpr.css */

/* Assuming --background-color from shared.css is #0D0E12 */
:root {
  --gdpr-primary-color: #FF8C1A;
  --gdpr-secondary-color: #FFA53A;
  --gdpr-card-bg: #17191F;
  --gdpr-body-bg: #0D0E12; /* From custom palette */
  --gdpr-text-main: #FFF3E6;
  --gdpr-border-color: #A84F0C;
  --gdpr-glow-color: #FFB04D;
  --gdpr-deep-orange: #D96800;
}

.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--gdpr-text-main); /* Default text color for dark body bg */
  background-color: var(--gdpr-body-bg); /* Ensure consistency if body bg is not set globally */
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
  z-index: 1;
  margin-bottom: 20px; /* Space between image and content */
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text readability */
  border-radius: 8px;
  box-sizing: border-box;
}

.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--gdpr-text-main);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--gdpr-secondary-color) 0%, var(--gdpr-deep-orange) 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* General Section Styles */
.page-gdpr__content-section {
  padding: 60px 0;
  background-color: var(--gdpr-body-bg); /* Default to body bg */
  color: var(--gdpr-text-main);
}

.page-gdpr__section--dark-bg {
  background-color: var(--gdpr-card-bg); /* Use card background for contrast sections */
}

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

.page-gdpr__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gdpr-primary-color);
  line-height: 1.3;
}

.page-gdpr__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--gdpr-secondary-color);
}

.page-gdpr__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

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

.page-gdpr__principle-card {
  background-color: var(--gdpr-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--gdpr-border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__principle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-gdpr__card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--gdpr-secondary-color);
}

.page-gdpr__card-text {
  font-size: 1em;
  color: var(--gdpr-text-main);
}

.page-gdpr__principle-card--full-width {
  grid-column: 1 / -1; /* Span full width for the last card if needed */
}

/* Image Text Layout */
.page-gdpr__image-text-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-gdpr__image-text-layout--reverse {
  flex-direction: row-reverse;
}

.page-gdpr__image-text-content {
  flex: 1;
}

.page-gdpr__image-text-media {
  flex: 1;
  min-width: 300px; /* Ensure image doesn't get too small */
}

.page-gdpr__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-height: 200px; /* Minimum size */
}

/* Rights List */
.page-gdpr__rights-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-gdpr__list-item {
  background-color: var(--gdpr-card-bg);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  border-left: 5px solid var(--gdpr-primary-color);
  color: var(--gdpr-text-main);
  font-size: 1.05em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-gdpr__list-item strong {
  color: var(--gdpr-secondary-color);
}

/* Contact Info */
.page-gdpr__contact-info {
  background-color: var(--gdpr-card-bg);
  padding: 30px;
  border-radius: 12px;
  margin-top: 40px;
  text-align: center;
  border: 1px solid var(--gdpr-border-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__contact-item {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: var(--gdpr-text-main);
}

.page-gdpr__contact-item a {
  color: var(--gdpr-secondary-color);
  text-decoration: none;
  font-weight: 600;
}

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

/* CTA Buttons Group */
.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-gdpr__btn-primary {
  background: linear-gradient(180deg, var(--gdpr-secondary-color) 0%, var(--gdpr-deep-orange) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__btn-secondary {
  background: #ffffff;
  color: var(--gdpr-primary-color);
  border: 2px solid var(--gdpr-primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 40px;
}

.page-gdpr__faq-item {
  background-color: var(--gdpr-card-bg);
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--gdpr-border-color);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-gdpr__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--gdpr-secondary-color);
  transition: background-color 0.3s ease;
}

.page-gdpr__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-gdpr__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-gdpr__faq-qtext {
  flex-grow: 1;
}

.page-gdpr__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  margin-left: 15px;
  color: var(--gdpr-primary-color);
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-gdpr__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: var(--gdpr-text-main);
  line-height: 1.7;
}

.page-gdpr__faq-answer p {
  margin-bottom: 0;
}

.page-gdpr__faq-answer a {
  color: var(--gdpr-secondary-color);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__section-title {
    font-size: 2em;
  }
  .page-gdpr__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-gdpr__image-text-layout {
    flex-direction: column;
    gap: 30px;
  }
  .page-gdpr__image-text-layout--reverse {
    flex-direction: column; /* Keep column for reverse on tablet */
  }
  .page-gdpr__hero-image-wrapper {
    max-height: 450px;
  }
}

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

  /* Hero Section */
  .page-gdpr__hero-section {
    padding: 10px 15px 40px;
  }
  .page-gdpr__hero-image-wrapper {
    max-height: 300px;
  }
  .page-gdpr__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important;
  }
  .page-gdpr__hero-content {
    padding: 15px;
  }
  .page-gdpr__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
    margin-bottom: 10px;
  }
  .page-gdpr__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-gdpr__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Section Styles */
  .page-gdpr__content-section {
    padding: 40px 0;
  }
  .page-gdpr__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-gdpr__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-gdpr__sub-title {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-gdpr__text-block {
    font-size: 1em;
    margin-bottom: 15px;
  }

  /* Principles Grid */
  .page-gdpr__principles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-gdpr__principle-card {
    padding: 25px;
  }
  .page-gdpr__card-title {
    font-size: 1.3em;
    margin-bottom: 10px;
  }

  /* Image Text Layout */
  .page-gdpr__image-text-layout {
    gap: 20px;
    margin-bottom: 40px;
  }
  .page-gdpr__image-text-media {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-gdpr__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important;
  }

  /* Rights List */
  .page-gdpr__list-item {
    padding: 12px 15px;
    font-size: 1em;
  }

  /* Contact Info */
  .page-gdpr__contact-info {
    padding: 25px;
  }
  .page-gdpr__contact-item {
    font-size: 1.1em;
    margin-bottom: 10px;
  }

  /* CTA Buttons Group */
  .page-gdpr__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    margin-top: 30px;
  }
  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ Section */
  .page-gdpr__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-gdpr__faq-toggle {
    font-size: 1.5em;
  }
  .page-gdpr__faq-answer {
    padding: 0 20px 15px;
    font-size: 1em;
  }
}