/* style/gdpr.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E; /* Main color */
    --color-secondary: #22C768; /* Auxiliary color */
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --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 GDPR page */
.page-gdpr {
    background-color: var(--color-background); /* Dark background */
    color: var(--color-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Headings */
.page-gdpr h1,
.page-gdpr h2,
.page-gdpr h3 {
    color: var(--color-text-main);
    font-weight: bold;
    margin-bottom: 20px;
}

.page-gdpr h1 {
    font-size: clamp(2.5rem, 5vw, 3.2rem); /* Responsive font size for H1, not fixed large */
    text-align: center;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

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

.page-gdpr h3 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    color: var(--color-secondary);
    margin-top: 30px;
    margin-bottom: 15px;
}

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

.page-gdpr__text-block {
    margin-bottom: 25px;
}

.page-gdpr__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.page-gdpr__list li {
    margin-bottom: 8px;
}

.page-gdpr__list li strong {
    color: var(--color-glow);
}

/* Links */
.page-gdpr a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Sections and Containers */
.page-gdpr__section {
    padding: 60px 20px;
    margin-bottom: 0; /* Remove default margin-bottom */
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom */
    background-color: var(--color-background);
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for aesthetic */
    overflow: hidden;
}

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

.page-gdpr__hero-content {
    text-align: center;
    padding: 40px 20px 0;
    max-width: 900px;
    z-index: 1; /* Ensure content is above any potential background effects */
}

.page-gdpr__description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 20px auto 30px auto;
    color: var(--color-text-secondary);
}

/* CTA Buttons */
.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-gdpr__cta-buttons--center {
    justify-content: center;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-gdpr__btn-primary {
    background: var(--color-button-gradient-start); /* Fallback */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main); /* White text for dark button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-gdpr__btn-secondary {
    background-color: transparent;
    color: var(--color-glow); /* Green text for light button */
    border: 2px solid var(--color-glow);
}

.page-gdpr__btn-secondary:hover {
    background-color: var(--color-glow);
    color: var(--color-background); /* Dark text on hover */
    transform: translateY(-2px);
}

/* Introduction Section */
.page-gdpr__introduction-section {
    background-color: var(--color-background);
}

/* Rights Section */
.page-gdpr__rights-section {
    background-color: var(--color-card-bg); /* Darker background for cards */
    color: var(--color-text-main);
}

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

.page-gdpr__card {
    background-color: var(--color-background); /* Card BG from custom colors */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-gdpr__card-title {
    font-size: 1.3rem;
    color: var(--color-glow);
    margin-top: 0;
    margin-bottom: 15px;
}

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

/* Data Collection/Protection Sections */
.page-gdpr__data-collection-section,
.page-gdpr__data-protection-section {
    background-color: var(--color-background);
}

.page-gdpr__data-protection-section.page-gdpr__dark-bg {
    background-color: var(--color-card-bg); /* Use card background for this section */
}

.page-gdpr__content-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-gdpr__content-flex--reverse {
    flex-direction: row-reverse;
}

.page-gdpr__content-text {
    flex: 1;
}

.page-gdpr__content-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-gdpr__image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
    display: block; /* Ensure it behaves as a block element */
}

/* Contact Section */
.page-gdpr__contact-section {
    background-color: var(--color-background);
}

.page-gdpr__contact-info {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    margin-top: 30px;
    text-align: center;
}

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

.page-gdpr__contact-info strong {
    color: var(--color-glow);
}

.page-gdpr__contact-link {
    color: var(--color-glow);
    text-decoration: underline;
}

/* FAQ Section */
.page-gdpr__faq-section {
    background-color: var(--color-card-bg); /* Darker background for FAQ */
}

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

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.15rem;
    color: var(--color-text-main);
    transition: background-color 0.3s ease;
    user-select: none;
    list-style: none; /* Remove default marker for summary */
}

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

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

.page-gdpr__faq-qtext {
    flex-grow: 1;
}

.page-gdpr__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-glow);
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    color: var(--color-text-main);
}

.page-gdpr__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.page-gdpr__faq-answer p:last-child {
    margin-bottom: 0;
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-gdpr__hero-image-wrapper {
        max-height: 400px;
    }

    .page-gdpr__content-flex {
        flex-direction: column;
        gap: 30px;
    }

    .page-gdpr__content-flex--reverse {
        flex-direction: column; /* Revert to column for smaller screens */
    }

    .page-gdpr__content-text,
    .page-gdpr__content-image {
        flex: none; /* Remove flex sizing */
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-gdpr h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-gdpr h2 {
        font-size: clamp(1.8rem, 7vw, 2rem);
    }

    .page-gdpr h3 {
        font-size: clamp(1.3rem, 6vw, 1.5rem);
    }

    .page-gdpr__section {
        padding: 40px 15px; /* Adjust padding for mobile */
    }

    .page-gdpr__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-gdpr__hero-image-wrapper {
        max-height: 300px;
    }

    .page-gdpr__hero-content {
        padding: 30px 15px 0;
    }

    .page-gdpr__description {
        font-size: 1rem;
        margin: 15px auto 25px auto;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        width: 100%; /* Ensure container takes full width */
        box-sizing: border-box;
    }

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

    .page-gdpr__rights-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }

    .page-gdpr__card {
        padding: 25px;
    }

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

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

    /* Mobile image/video/container responsiveness - MUST HAVE */
    .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__hero-image-wrapper,
    .page-gdpr__hero-content,
    .page-gdpr__content-flex,
    .page-gdpr__content-text,
    .page-gdpr__content-image,
    .page-gdpr__contact-info,
    .page-gdpr__faq-list,
    .page-gdpr__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    /* Specific override for sections where padding is already handled by the container */
    .page-gdpr__section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-gdpr__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-gdpr__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-gdpr__data-collection-section .page-gdpr__container,
    .page-gdpr__data-protection-section .page-gdpr__container,
    .page-gdpr__contact-section .page-gdpr__container,
    .page-gdpr__faq-section .page-gdpr__container,
    .page-gdpr__introduction-section .page-gdpr__container,
    .page-gdpr__rights-section .page-gdpr__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Ensure no filter on images */
.page-gdpr img {
    filter: none !important;
}

/* Ensure content area images do not become too small */
/* This selects any img within .page-gdpr and ensures its rendered size is >= 200px */
.page-gdpr img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
    min-width: 200px;
    min-height: 200px;
}
@media (max-width: 768px) {
    .page-gdpr img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
        min-width: unset; /* Allow to scale down but max-width: 100% handles it */
        min-height: unset;
    }
}