/* style/gdpr.css */

/* General styles for the GDPR page */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background: #B71C1C; /* Background */
}

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

/* Hero Section */
.page-gdpr__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 50px;
  background: #B71C1C; /* Background color */
  color: #FFF5E1; /* Text Main */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-gdpr__hero-section .page-gdpr__container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-gdpr__hero-content {
  flex: 1;
  min-width: 300px;
  z-index: 1;
}

.page-gdpr__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFD86A; /* Gold-like for emphasis */
}

.page-gdpr__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.page-gdpr__hero-image {
  flex: 1;
  min-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
}

.page-gdpr__hero-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  object-fit: cover; /* Default for desktop */
}

/* CTA Buttons */
.page-gdpr__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-gdpr__cta-buttons--center {
  justify-content: center;
  margin-top: 40px;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-gdpr__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #7A0E0E; /* Deep Red for contrast */
  border: 2px solid transparent;
}

.page-gdpr__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 216, 106, 0.4);
}

.page-gdpr__btn-secondary {
  background: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544; /* Border */
}

.page-gdpr__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(211, 47, 47, 0.4);
  background: #E53935; /* Auxiliary color */
}

/* Generic Section Styles */
.page-gdpr__principles-section,
.page-gdpr__rights-section,
.page-gdpr__security-section,
.page-gdpr__faq-section,
.page-gdpr__conclusion-section {
  padding: 80px 0;
}

.page-gdpr__light-bg {
  background: #B71C1C; /* Background */
  color: #FFF5E1; /* Text Main */
}

.page-gdpr__dark-bg {
  background: #7A0E0E; /* Deep Red */
  color: #FFF5E1; /* Text Main */
}

.page-gdpr__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD86A; /* Gold-like for emphasis */
}

.page-gdpr__article-body {
  max-width: 900px;
  margin: 0 auto;
  text-align: justify;
}

.page-gdpr__article-body p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.page-gdpr__article-figure {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Grid Container for Principles and Security Features */
.page-gdpr__grid-container,
.page-gdpr__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-gdpr__card {
  background: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid #F2B544; /* Border */
}

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

.page-gdpr__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD86A; /* Gold-like for emphasis */
}

.page-gdpr__card p {
  font-size: 1rem;
  margin-bottom: 0;
}

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

.page-gdpr__list-item {
  background: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid #F2B544; /* Border */
}

.page-gdpr__list-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  color: #FFD86A; /* Gold-like for emphasis */
}

.page-gdpr__list-item p {
  font-size: 1rem;
  margin-bottom: 0;
}

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

details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #F2B544; /* Border */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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: #E53935; /* Auxiliary color */
}
.page-gdpr__faq-qtext {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD86A; /* Gold-like for emphasis */
}
.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFF5E1; /* Text Main */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-gdpr__faq-item .page-gdpr__faq-answer {
  padding: 0 25px 25px;
  background: #7A0E0E; /* Deep Red */
  border-radius: 0 0 10px 10px;
}
.page-gdpr__faq-answer p {
  font-size: 1rem;
  margin-bottom: 0;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__hero-section .page-gdpr__container {
    flex-direction: column;
    text-align: center;
  }
  .page-gdpr__hero-content {
    order: 2; /* Content below image on smaller screens */
    margin-top: 30px;
  }
  .page-gdpr__hero-image {
    order: 1;
    min-width: unset;
    max-width: 80%;
  }
  .page-gdpr__hero-image img {
    object-fit: cover; /* Default for desktop, will be overridden by 849px and 768px */
    aspect-ratio: unset;
  }
  .page-gdpr__main-title,
  .page-gdpr__hero-description,
  .page-gdpr__section-title {
    text-align: center;
  }
  .page-gdpr__cta-buttons {
    justify-content: center;
  }
}

/* Specific 849px breakpoint for Hero image object-fit contain */
@media (max-width: 849px) {
  .page-gdpr__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding-top: 10px; /* Still small top padding */
    padding-bottom: 40px;
  }
  .page-gdpr__hero-section .page-gdpr__container {
    gap: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-gdpr__hero-image {
    max-width: 100%;
  }
  .page-gdpr__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* HERO main image mobile contain */
    aspect-ratio: unset !important;
  }

  .page-gdpr__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .page-gdpr__hero-description {
    font-size: 1rem;
  }

  /* Universal image responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-gdpr__article-figure {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  /* Section and Container responsiveness */
  .page-gdpr__principles-section,
  .page-gdpr__rights-section,
  .page-gdpr__security-section,
  .page-gdpr__faq-section,
  .page-gdpr__conclusion-section {
    padding: 60px 0;
  }
  .page-gdpr__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-gdpr__article-body {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-gdpr__section-title {
    font-size: clamp(1.8rem, 7vw, 2rem);
    margin-bottom: 30px;
  }
  .page-gdpr__article-body p {
    font-size: 0.95rem;
  }

  /* Grid layout for cards */
  .page-gdpr__grid-container,
  .page-gdpr__security-features {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  .page-gdpr__card {
    padding: 25px;
  }
  .page-gdpr__card-title {
    font-size: 1.2rem;
  }

  /* Rights list */
  .page-gdpr__list-item {
    padding: 20px;
  }
  .page-gdpr__list-title {
    font-size: 1.1rem;
  }

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

  /* Button responsiveness */
  .page-gdpr__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
  }
}