/* style/gdpr.css */

/* Variables from shared.css or global context */
:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  --card-bg-color: #2A1212;
  --background-color: #140C0C; /* Assuming this is body background */
  --text-main-color: #FFF1E8;
  --border-color: #6A1E1E;
  --gold-color: #F3C54D;
  --deep-red-color: #7E0D0D;
}

/* Base styles for the GDPR page content */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color for dark background */
  background-color: var(--background-color); /* Main background color */
  padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Ensure body padding-top is handled by shared.css for header offset */
/* .page-gdpr { padding-top: var(--header-offset); } - NO, this is handled by body in shared.css */

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

.page-gdpr h1,
.page-gdpr h2,
.page-gdpr h3 {
  color: var(--gold-color); /* Using gold for headings for contrast and branding */
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-gdpr h1 {
  /* No fixed font-size for h1 in hero, let it scale or use clamp if needed */
  font-weight: bold;
  letter-spacing: 0.5px;
}

.page-gdpr h2 {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.page-gdpr h3 {
  font-size: 1.6em;
  font-weight: 600;
  margin-top: 30px;
}

.page-gdpr p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-gdpr a {
  color: var(--gold-color);
  text-decoration: none;
}

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

/* 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;
  /* Use small top padding, header offset handled by body in shared.css */
  padding-top: 10px; 
  background-color: var(--deep-red-color); /* Using deep red for hero section 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 it takes 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;
  border: 2px solid var(--gold-color); /* Add a border for branding */
}

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

.page-gdpr__hero-description {
  font-size: 1.2em;
  color: var(--text-main-color);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient); /* Use gradient for button */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* For button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__cta-button:hover {
  filter: brightness(1.1); /* Slightly brighten on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-gdpr__introduction-section {
  background-color: var(--background-color);
  padding: 60px 0;
}

/* Principles Section (Dark Background) */
.page-gdpr__principles-section {
  background-color: var(--deep-red-color); /* Use deep red for contrast */
  color: #ffffff; /* White text for dark background */
  padding: 60px 0;
}

.page-gdpr__principles-section h2,
.page-gdpr__principles-section h3 {
  color: var(--gold-color);
}

.page-gdpr__principles-section p {
  color: var(--text-main-color);
}

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

.page-gdpr__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-gdpr__card {
  background-color: var(--card-bg-color); /* Card background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-main-color); /* Text color for card */
}

.page-gdpr__card h3 {
  color: var(--gold-color);
  margin-top: 0;
  font-size: 1.4em;
}

.page-gdpr__card img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin-top: 20px;
  border-radius: 5px;
  object-fit: cover;
}

/* User Rights Section */
.page-gdpr__rights-section {
  background-color: var(--background-color);
  padding: 60px 0;
}

.page-gdpr__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-gdpr__list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-gdpr__list strong {
  color: var(--gold-color);
}

/* Data Protection Section (Medium Background - using primary color for this) */
.page-gdpr__data-protection-section {
  background-color: var(--primary-color); /* Using primary color for this section */
  color: #ffffff; /* White text for contrast */
  padding: 60px 0;
}

.page-gdpr__data-protection-section h2,
.page-gdpr__data-protection-section h3 {
  color: var(--gold-color);
}

.page-gdpr__data-protection-section p {
  color: var(--text-main-color);
}

/* Contact Section */
.page-gdpr__contact-section {
  background-color: var(--background-color);
  padding: 60px 0;
}

.page-gdpr__contact-details {
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  margin-top: 30px;
  text-align: center;
  color: var(--text-main-color);
}

.page-gdpr__contact-details p {
  font-size: 1.1em;
  margin-bottom: 10px;
}

.page-gdpr__contact-details a {
  color: var(--gold-color);
  text-decoration: underline;
}

.page-gdpr__contact-details img {
  width: 100%;
  height: auto;
  max-width: 500px; /* Limit image width */
  display: block;
  margin: 20px auto 0 auto;
  border-radius: 5px;
  object-fit: cover;
}

/* FAQ Section (Dark Background) */
.page-gdpr__faq-section {
  background-color: var(--deep-red-color);
  color: #ffffff;
  padding: 60px 0;
}

.page-gdpr__faq-section h2 {
  color: var(--gold-color);
}

.page-gdpr__faq-list {
  margin-top: 40px;
}

details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color); /* FAQ item background */
  color: var(--text-main-color);
}

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;
  color: var(--text-main-color);
}

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: rgba(var(--gold-color), 0.1); /* Subtle hover effect */
}

.page-gdpr__faq-qtext {
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--gold-color); /* FAQ question text color */
}

.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-main-color);
  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: rgba(var(--background-color), 0.8); /* Slightly lighter background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-main-color);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr h2 {
    font-size: 2em;
  }
  .page-gdpr__hero-description {
    font-size: 1.1em;
  }
  .page-gdpr__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-gdpr__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

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

  .page-gdpr__container {
    padding: 30px 15px;
  }

  /* Hero Section */
  .page-gdpr__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-gdpr__hero-image img {
    border-radius: 4px;
  }

  .page-gdpr__hero-content h1 {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-gdpr__hero-description {
    font-size: 1em;
  }

  /* Buttons */
  .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-top: 20px;
  }

  /* Sections */
  .page-gdpr__introduction-section,
  .page-gdpr__principles-section,
  .page-gdpr__rights-section,
  .page-gdpr__data-protection-section,
  .page-gdpr__contact-section,
  .page-gdpr__faq-section {
    padding: 40px 0;
  }

  .page-gdpr h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-gdpr h3 {
    font-size: 1.3em;
    margin-top: 20px;
  }

  /* Grid and Cards */
  .page-gdpr__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-gdpr__grid--2-cols {
    grid-template-columns: 1fr;
  }
  .page-gdpr__card {
    padding: 20px;
  }

  /* Images */
  .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;
  }

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

@media (max-width: 480px) {
  .page-gdpr__hero-content h1 {
    font-size: 1.6em;
  }
  .page-gdpr h2 {
    font-size: 1.5em;
  }
}