/* style/gdpr.css */

/* Custom Colors */
:root {
    --page-gdpr-bg: #08160F; /* Background */
    --page-gdpr-card-bg: #11271B; /* Card BG */
    --page-gdpr-text-main: #F2FFF6; /* Text Main */
    --page-gdpr-text-secondary: #A7D9B8; /* Text Secondary */
    --page-gdpr-border: #2E7A4E; /* Border */
    --page-gdpr-glow: #57E38D; /* Glow */
    --page-gdpr-gold: #F2C14E; /* Gold */
    --page-gdpr-divider: #1E3A2A; /* Divider */
    --page-gdpr-deep-green: #0A4B2C; /* Deep Green */
    --page-gdpr-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
}

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

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden; /* Ensure content doesn't overflow */
    background-color: var(--page-gdpr-deep-green); /* A darker green for hero background */
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and text */
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-gdpr__hero-content {
    text-align: center;
    padding: 0 20px 60px;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
}

.page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    color: var(--page-gdpr-gold); /* Gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-gdpr__hero-description {
    font-size: 1.1em;
    color: var(--page-gdpr-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Section General */
.page-gdpr__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--page-gdpr-divider);
}

.page-gdpr__section:last-of-type {
    border-bottom: none;
}

.page-gdpr__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    font-weight: 600;
    color: var(--page-gdpr-text-main);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-gdpr__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--page-gdpr-gold);
    border-radius: 2px;
}

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

.page-gdpr__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-gdpr__list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
    background-color: var(--page-gdpr-card-bg);
    border: 1px solid var(--page-gdpr-border);
    border-radius: 8px;
    padding: 20px 30px;
}

.page-gdpr__list-item {
    font-size: 1em;
    color: var(--page-gdpr-text-main);
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

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

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

/* CTA Button Styles */
.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow word breaking */
    box-sizing: border-box;
}

.page-gdpr__btn-primary {
    background: var(--page-gdpr-btn-gradient);
    color: #ffffff; /* White text for primary button */
    border: none;
    box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-gdpr__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
    filter: brightness(1.1);
}

.page-gdpr__btn-secondary {
    background: transparent;
    color: var(--page-gdpr-gold);
    border: 2px solid var(--page-gdpr-gold);
    margin-left: 20px;
}

.page-gdpr__btn-secondary:hover {
    background: var(--page-gdpr-gold);
    color: var(--page-gdpr-bg);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-gdpr__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding-bottom: 80px;
}

.page-gdpr__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-gdpr__faq-item {
    background-color: var(--page-gdpr-card-bg);
    border: 1px solid var(--page-gdpr-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-gdpr__faq-item[open] {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--page-gdpr-text-main);
    cursor: pointer;
    background-color: var(--page-gdpr-card-bg);
    user-select: none;
    list-style: none; /* Remove default summary marker */
}

/* Hide default marker for details summary */
.page-gdpr__faq-item summary::-webkit-details-marker,
.page-gdpr__faq-item summary::marker {
  display: none;
  content: "";
}

.page-gdpr__faq-qtext {
    flex-grow: 1;
    color: var(--page-gdpr-gold);
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--page-gdpr-glow);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

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

.page-gdpr__faq-answer p {
    margin: 0;
    padding-top: 15px;
}

/* Link styles */
.page-gdpr__link {
    color: var(--page-gdpr-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Dark background section specific styles */
.page-gdpr__dark-bg {
    background-color: var(--page-gdpr-deep-green);
    color: var(--page-gdpr-text-main);
}

.page-gdpr__section-title--light {
    color: var(--page-gdpr-gold);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-gdpr__section-title {
        font-size: clamp(1.6em, 4vw, 2.5em);
    }
    .page-gdpr__hero-content {
        padding: 0 15px 40px;
    }
}

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

    /* General containers for mobile to prevent overflow */
    .page-gdpr__section,
    .page-gdpr__container,
    .page-gdpr__hero-section,
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important; /* Ensure content doesn't overflow */
    }

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

    .page-gdpr__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-gdpr__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-gdpr__section-title {
        font-size: clamp(1.4em, 5vw, 2em);
        margin-bottom: 30px;
    }

    .page-gdpr__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Button responsive styles */
    .page-gdpr__cta-button,
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary,
    .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 !important; /* Ensure internal padding */
      padding-right: 15px !important; /* Ensure internal padding */
    }
    
    /* Button group responsive styles */
    .page-gdpr__button-group,
    .page-gdpr__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px !important;
      padding-right: 15px !important;
      flex-direction: column !important; /* Stack buttons vertically */
      gap: 15px !important;
      overflow: hidden !important;
    }
    
    .page-gdpr__btn-secondary {
        margin-left: 0 !important; /* Remove margin for stacked buttons */
    }

    .page-gdpr__list {
        padding: 15px 20px;
    }

    .page-gdpr__list-item {
        padding-left: 20px;
    }
    .page-gdpr__list-item::before {
        left: -5px; /* Adjust bullet position */
    }

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

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