/* style/gdpr.css */

/* Custom Colors from prompt */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-gdpr {
    background-color: var(--color-background); /* Explicitly set page background to match body's assumed dark background */
    color: var(--color-text-main); /* Light text on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Fixed Header Offset - handled by body in shared.css, so page sections get minimal top padding */
.page-gdpr__hero-section,
.page-gdpr__section {
    padding-top: 10px; /* Small top padding for sections, body handles main offset */
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    padding: 0; /* Remove default padding as image and content have their own spacing */
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height for aesthetic */
}

.page-gdpr__hero-content {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--color-background); /* Dark background for text content */
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-gdpr__intro-text {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 900px;
}

.page-gdpr__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 500px;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    text-align: center;
}

.page-gdpr__btn-primary {
    background: var(--color-button-gradient);
    color: #ffffff; /* White text on dark gradient */
    border: none;
}

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

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

.page-gdpr__btn-secondary:hover {
    background-color: var(--color-border);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Section Titles */
.page-gdpr__section-title {
    font-size: 2.2em;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.page-gdpr__subsection-title {
    font-size: 1.6em;
    color: var(--color-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Paragraphs and Links */
.page-gdpr p {
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

.page-gdpr__link {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-gdpr__link:hover {
    color: var(--color-glow);
    text-decoration: underline;
}

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

.page-gdpr__list li {
    margin-bottom: 8px;
    color: var(--color-text-secondary);
}

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

.page-gdpr__list--numbered {
    list-style: decimal;
}

.page-gdpr__list--security li:before {
    content: '✅'; /* Add a checkmark for security list */
    margin-right: 10px;
    color: var(--color-primary);
}
.page-gdpr__list--security {
    list-style: none; /* Remove default list style */
    margin-left: 0;
    padding-left: 0;
}


/* Grid Layout */
.page-gdpr__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.page-gdpr__grid--reverse .page-gdpr__grid-item:first-child {
    order: 2;
}
.page-gdpr__grid--reverse .page-gdpr__grid-item:last-child {
    order: 1;
}

.page-gdpr__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Dark Section */
.page-gdpr__dark-section {
    background-color: var(--color-deep-green); /* Use Deep Green for dark sections */
    padding: 60px 20px;
    color: var(--color-text-main);
}

.page-gdpr__dark-section .page-gdpr__section-title {
    color: var(--color-gold);
}

.page-gdpr__dark-section p,
.page-gdpr__dark-section li {
    color: var(--color-text-secondary);
}

/* Contact Info */
.page-gdpr__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-gdpr__contact-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--color-text-main);
}

.page-gdpr__contact-list li strong {
    color: var(--color-gold);
    margin-right: 10px;
}

/* FAQ Section */
.page-gdpr__faq-section {
    background-color: var(--color-card-bg); /* Use Card BG for FAQ section */
    padding: 60px 20px;
    margin-top: 40px;
}

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

.page-gdpr__faq-item {
    background-color: var(--color-background); /* Darker background for each FAQ item */
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--color-text-main);
    background-color: var(--color-background);
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: var(--color-divider);
}

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

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--color-secondary);
    margin-left: 15px;
}

/* Hide default details marker */
.page-gdpr__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-gdpr__faq-item summary {
    list-style: none;
}

.page-gdpr__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1em;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-divider);
}

/* Responsive styles */
@media (max-width: 992px) {
    .page-gdpr__grid {
        grid-template-columns: 1fr;
    }
    .page-gdpr__grid--reverse .page-gdpr__grid-item:first-child {
        order: 1; /* Reset order for mobile */
    }
    .page-gdpr__grid--reverse .page-gdpr__grid-item:last-child {
        order: 2; /* Reset order for mobile */
    }
}

@media (max-width: 768px) {
    .page-gdpr__container {
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-gdpr__section-title {
        font-size: 1.8em;
    }

    .page-gdpr__subsection-title {
        font-size: 1.4em;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100%; /* Ensure full width on mobile */
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        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;
        font-size: 1em;
    }
    
    .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;
    }

    /* Mobile image adaptation */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    /* Ensure video container responsiveness (if any) */
    .page-gdpr video,
    .page-gdpr__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-gdpr__video-section,
    .page-gdpr__video-container,
    .page-gdpr__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    
    .page-gdpr__video-section {
        padding-top: 10px !important;
    }
    
    .page-gdpr__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Ensure content area images are not too small */
.page-gdpr__image {
    min-width: 200px;
    min-height: 200px;
}

/* Smart contrast assurance for general text on dark backgrounds */
.page-gdpr {
  color: var(--color-text-main); /* Light text on dark background */
}

.page-gdpr__card, .page-gdpr__faq-section {
  background-color: var(--color-card-bg);
  color: var(--color-text-main);
}

.page-gdpr__section {
  color: var(--color-text-secondary);
}

.page-gdpr__dark-bg {
  color: #ffffff; /* Deep Green background */
  background: var(--color-deep-green);
}

.page-gdpr__light-bg {
  color: #333333; /* For any accidental light background */
  background: #ffffff;
}

.page-gdpr__text-block {
  color: var(--color-text-secondary);
}

.page-gdpr p,
.page-gdpr li {
  color: var(--color-text-secondary);
}

.page-gdpr__btn-primary {
  background: var(--color-button-gradient);
  color: #ffffff;
}

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

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

@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-gdpr__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
}