/* style/gdpr.css */

/* Custom color variables */
:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  --card-bg: #2A1212;
  --body-bg: #140C0C;
  --text-main: #FFF1E8;
  --border-color: #6A1E1E;
  --gold-color: #F3C54D;
  --deep-red-color: #7E0D0D;
}

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

/* Ensure body padding-top is handled by shared.css */
/* No padding-top: var(--header-offset); here */

.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding: 10px 20px 40px; /* Small top padding, more bottom padding */
  background-color: var(--card-bg); /* Use card background for hero section */
  color: var(--text-main);
  overflow: hidden; /* Ensure no overflow */
}

.page-gdpr__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 20px; /* Space between image and content */
}

.page-gdpr__hero-content {
  max-width: 900px;
  width: 100%; /* Ensure content takes full width up to max-width */
  padding: 0 15px;
  box-sizing: border-box;
}

.page-gdpr__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
  color: var(--gold-color); /* Gold color for main title */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-gdpr__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main);
}

.page-gdpr__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-gdpr__cta-button:hover {
  background: linear-gradient(180deg, #FFC06A 0%, #E87A24 100%); /* Slightly lighter gradient on hover */
}

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

.page-gdpr__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--gold-color);
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 15px;
}

.page-gdpr p {
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-gdpr__keyword {
  color: var(--gold-color); /* Highlight keywords */
  font-weight: bold;
}

.page-gdpr__principles-list,
.page-gdpr__security-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

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

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

.page-gdpr__dark-bg {
  background-color: var(--deep-red-color); /* Use deep red for contrast sections */
  color: var(--text-main);
  padding: 40px 20px;
  margin-bottom: 40px;
}

.page-gdpr__rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.page-gdpr__right-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-main);
  min-height: 250px; /* Ensure cards have similar height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

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

.page-gdpr__right-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
  object-fit: contain;
  display: block; /* Ensure no extra space below image */
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__right-title {
  font-size: 1.4rem;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-gdpr__contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.page-gdpr__contact-info,
.page-gdpr__dpo-info {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

.page-gdpr__contact-title {
  font-size: 1.6rem;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-gdpr__contact-link {
  color: var(--gold-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-gdpr__contact-link:hover {
  color: #FFF1E8; /* Lighter on hover */
}

.page-gdpr__dpo-image {
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--gold-color);
  cursor: pointer;
  background-color: var(--card-bg); /* Ensure summary background matches card */
  border-bottom: 1px solid transparent; /* No border by default */
  transition: border-bottom-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-gdpr__faq-question::-webkit-details-marker {
  display: none;
}

.page-gdpr__faq-question:hover {
  background-color: var(--deep-red-color); /* Slightly change background on hover */
  color: var(--text-main);
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
  border-bottom-color: var(--border-color);
}

.page-gdpr__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-gdpr__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: var(--text-main);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
  max-height: 1000px; /* Sufficiently large to show content */
  transition: max-height 0.5s ease-in;
}

/* Responsive styles */
@media (min-width: 769px) {
  .page-gdpr__contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 10px 15px 30px;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

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

  .page-gdpr__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-gdpr__content-area {
    padding: 30px 15px;
  }

  .page-gdpr__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 20px;
  }

  .page-gdpr__right-card {
    min-height: auto; /* Allow height to adjust on mobile */
  }

  .page-gdpr__contact-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile image responsive */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__hero-section,
  .page-gdpr__intro-section,
  .page-gdpr__principles-section,
  .page-gdpr__rights-section,
  .page-gdpr__security-section,
  .page-gdpr__transfer-section,
  .page-gdpr__contact-section,
  .page-gdpr__faq-section,
  .page-gdpr__cta-section,
  .page-gdpr__right-card,
  .page-gdpr__contact-info,
  .page-gdpr__dpo-info,
  .page-gdpr__list-item,
  .page-gdpr__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden; /* Prevent horizontal scroll for content */
  }
  
  /* Specific override for hero-section padding on mobile if needed, to avoid double padding */
  .page-gdpr__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-gdpr__hero-content {
      padding-left: 15px !important;
      padding-right: 15px !important;
  }

  /* Buttons mobile responsive */
  .page-gdpr__cta-button {
    display: block; /* Stack buttons */
    margin-left: auto;
    margin-right: auto;
  }

  .page-gdpr__cta-buttons {
    display: flex;
    flex-direction: column; /* Mobile vertical stack */
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
}