:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #1a1a1a; /* From shared.css body */
    --card-background-dark: rgba(255, 255, 255, 0.1);
    --card-background-light: #2a2a2a; /* Slightly lighter than body for contrast */
    --border-color: rgba(255, 255, 255, 0.15);
    --header-offset: 120px; /* Default, will be overridden by shared.css */
}

/* Base styles for the GDPR page content */
.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Dark body background, so light text */
    background-color: var(--background-dark); /* Ensure consistency, though body handles it */
    padding-bottom: 60px; /* Space before footer */
}

/* Fixed header spacing - Apply to the main content area or first section */
.page-gdpr__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Hero Section (for GDPR page, not homepage hero) */
.page-gdpr__hero-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(139, 0, 0, 0.2));
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Prevent image overflow */
}

.page-gdpr__hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-width: 800px; /* Adjust as needed for visual balance */
}

.page-gdpr__hero-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-gdpr__hero-text-content {
    max-width: 900px;
}

.page-gdpr__main-heading {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-gdpr__intro-text {
    font-size: 1.15em;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: #000000; /* Ensure high contrast with gold */
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-gdpr__cta-button:hover {
    background: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* General Section Styling */
.page-gdpr__section {
    padding: 60px 0;
    text-align: center;
}

.page-gdpr__section:nth-of-type(odd) {
    background-color: var(--background-dark); /* Dark background */
}

.page-gdpr__section:nth-of-type(even) {
    background-color: var(--card-background-light); /* Slightly lighter dark background */
}

.page-gdpr__section-heading {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-gdpr__section-description {
    font-size: 1.05em;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Content Grid for Principles and Security */
.page-gdpr__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-gdpr__rights-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-gdpr__contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Card Styling */
.page-gdpr__card {
    background: var(--card-background-dark); /* Semi-transparent dark */
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-light);
}

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

.page-gdpr__card-heading {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.page-gdpr__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-gdpr__list-item {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.page-gdpr__list-item::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-gdpr__dark-bg {
    background: var(--secondary-color); /* Use dark red for some cards */
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.2);
}

.page-gdpr__dark-bg .page-gdpr__card-heading {
    color: var(--primary-color); /* Gold heading on dark red background */
}

/* Inline links */
.page-gdpr__inline-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-gdpr__inline-link:hover {
    color: var(--text-light);
    text-decoration: underline;
}

/* CTA Area at the end of Contact section */
.page-gdpr__cta-area {
    margin-top: 60px;
    text-align: center;
}

.page-gdpr__btn-primary {
    background: var(--primary-color);
    color: #000000; /* Ensure high contrast */
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-gdpr__btn-primary:hover {
    background: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* FAQ Section Styling */
.page-gdpr__faq {
    background-color: var(--background-dark);
}

.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--card-background-light); /* Slightly lighter dark for FAQ items */
  border: 1px solid var(--border-color);
}

.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: var(--text-light);
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 2000px !important; /* Use !important to ensure priority, value large enough */
  padding: 20px !important;
  opacity: 1;
  background: var(--card-background-dark); /* Slightly darker when open for contrast */
  border-radius: 0 0 10px 10px;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-background-light);
  border-bottom: 1px solid transparent; /* No bottom border by default */
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-gdpr__faq-item.active .page-gdpr__faq-question {
    border-bottom-color: var(--border-color); /* Border when active */
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.page-gdpr__faq-question:hover {
  background: rgba(255, 215, 0, 0.1); /* Subtle hover effect */
  border-color: var(--primary-color);
}

.page-gdpr__faq-question:active {
  background: rgba(255, 215, 0, 0.15);
}

.page-gdpr__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--text-light);
}

.page-gdpr__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  color: var(--secondary-color); /* Change color when active */
  transform: rotate(180deg); /* Rotate for minus sign visual */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__main-heading {
        font-size: 2.4em;
    }
    .page-gdpr__section-heading {
        font-size: 2em;
    }
}

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

    .page-gdpr__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-gdpr__hero-content-wrapper {
        gap: 30px;
    }

    .page-gdpr__hero-main-image {
        border-radius: 8px;
    }

    .page-gdpr__main-heading {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-gdpr__intro-text {
        font-size: 1em;
        margin-bottom: 25px;
    }

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

    .page-gdpr__section-heading {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-gdpr__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

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

    .page-gdpr__content-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 20px;
    }

    .page-gdpr__card {
        padding: 20px;
        border-radius: 8px;
    }

    .page-gdpr__card-heading {
        font-size: 1.3em;
    }

    .page-gdpr__list-item {
        padding-left: 20px;
    }
    
    /* Mobile image adaptation */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-content-wrapper,
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__hero-text-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Mobile button adaptation */
    .page-gdpr__cta-button,
    .page-gdpr__btn-primary,
    .page-gdpr a[class*="button"],
    .page-gdpr a[class*="btn"] {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    
    .page-gdpr__cta-buttons,
    .page-gdpr__button-group,
    .page-gdpr__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-gdpr__cta-area {
        margin-top: 40px;
    }

    /* FAQ Mobile */
    .page-gdpr__faq-question {
      padding: 15px;
      flex-wrap: wrap;
    }
    
    .page-gdpr__faq-question h3 {
      font-size: 1em;
      margin-bottom: 0;
      width: calc(100% - 40px);
    }
    
    .page-gdpr__faq-toggle {
      margin-left: 10px;
      width: 24px;
      height: 24px;
      font-size: 1.5em;
    }
    
    .page-gdpr__faq-answer {
      padding: 0 15px;
    }
    
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
      padding: 15px !important;
    }
}