/* style/gdpr.css */
/*
  Body padding-top is handled by shared.css for fixed header offset.
  This page's first section should only have a small decorative top padding.
*/
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--background); /* Overall background color */
}

/* Custom Colors */
:root {
  --main-color: #11A84E; /* Primary Green */
  --secondary-color: #22C768; /* Auxiliary Green */
  --background: #08160F; /* Deep Green Background */
  --card-bg: #11271B; /* Darker Card Background */
  --text-main: #F2FFF6; /* Light Text for Main Content */
  --text-secondary: #A7D9B8; /* Lighter Text for Secondary Content */
  --border: #2E7A4E; /* Border Color */
  --glow: #57E38D; /* Glow Effect Color */
  --gold: #F2C14E; /* Gold Accent */
  --divider: #1E3A2A; /* Divider Color */
  --deep-green: #0A4B2C; /* Deep Green Accent */

  /* For rgba conversion for hover effects */
  --main-color-rgb: 17, 168, 78;
}

/* Ensure contrast for specific elements if needed - based on dark background */
.page-gdpr h1,
.page-gdpr h2,
.page-gdpr h3,
.page-gdpr h4,
.page-gdpr h5,
.page-gdpr h6 {
  color: var(--text-main); /* Light text on dark backgrounds */
}

.page-gdpr p,
.page-gdpr li {
  color: var(--text-secondary); /* Lighter text for paragraphs */
}

/* Link colors */
.page-gdpr a {
  color: var(--gold); /* Gold for links */
  text-decoration: underline;
}
.page-gdpr a:hover {
  color: var(--glow); /* Lighter gold on hover */
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, relies on body for header offset */
  background-color: var(--background);
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  margin-bottom: 30px; /* Space between image and content */
  box-sizing: border-box;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-gdpr__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-main);
}

.page-gdpr__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size for H1 */
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

/* General Section Styling */
.page-gdpr__section {
  padding: 80px 20px;
  background-color: var(--background);
  color: var(--text-main);
}

.page-gdpr__dark-section {
  background-color: var(--card-bg); /* Darker background for contrast */
  color: var(--text-main); /* Text Main is light enough for this dark background */
}

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

.page-gdpr__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
}

.page-gdpr__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-secondary);
  text-align: justify;
}

.page-gdpr__text-block .keyword {
  color: var(--text-main); /* Highlight keywords */
  font-weight: bold;
}

/* Grid Layout for Principles & Security */
.page-gdpr__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-gdpr__card {
  background-color: var(--card-bg); /* Use custom card background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-secondary);
}

.page-gdpr__card-image {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-gdpr__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-gdpr__card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

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

.page-gdpr__rights-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 25px 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-gdpr__rights-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-gdpr__rights-description {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* CTA Buttons */
.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 15px; /* Add padding to container for mobile */
}

.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: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't exceed container width */
}

.page-gdpr__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
  color: #ffffff; /* White text for dark button */
  border: 2px solid transparent;
}

.page-gdpr__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-gdpr__btn-secondary {
  background-color: transparent;
  color: var(--main-color); /* Use main brand color for text */
  border: 2px solid var(--border); /* Use border color */
}

.page-gdpr__btn-secondary:hover {
  background-color: var(--main-color);
  color: #ffffff;
}

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

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

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default summary marker */
}

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

.page-gdpr__faq-question:hover {
  background-color: rgba(var(--main-color-rgb), 0.1); /* Light hover effect */
}

.page-gdpr__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold); /* Use gold for toggle */
}

.page-gdpr__faq-answer {
  padding: 0 30px 20px;
  font-size: 1rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider);
}

.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
  border-top: 1px solid var(--divider); /* Ensure border when open */
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
  background-color: rgba(var(--main-color-rgb), 0.05); /* Slightly different background when open */
}

/* Contact Section */
.page-gdpr__contact-us {
  text-align: center;
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 40px 15px;
    padding-top: 10px; /* Still small top padding */
  }

  .page-gdpr__main-title {
    font-size: 2rem;
  }

  .page-gdpr__description {
    font-size: 1rem;
  }

  .page-gdpr__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
  }

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

  .page-gdpr__section {
    padding: 50px 15px;
  }

  .page-gdpr__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-gdpr__text-block {
    font-size: 0.95rem;
  }

  .page-gdpr__grid {
    grid-template-columns: 1fr; /* Single column layout */
  }

  .page-gdpr__card {
    padding: 20px;
  }

  .page-gdpr__card-title {
    font-size: 1.1rem;
  }

  .page-gdpr__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-gdpr__faq-answer {
    padding: 0 20px 15px;
  }

  /* Mobile image responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Ensure content is not edge-to-edge */
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-gdpr__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}