/* style/gdpr.css */

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

/* Base styles for the page content, ensuring contrast with dark body background */
.page-gdpr {
    background-color: var(--bg-primary); /* Dark background */
    color: var(--text-main); /* Light text for contrast */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Ensure body padding for fixed header is not duplicated */
/* body { padding-top: var(--header-offset); } is handled by shared.css */

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-width: 1920px;
    margin-bottom: 40px; /* Space between image and content */
}

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

.page-gdpr__hero-content {
    max-width: 900px;
    z-index: 1;
    position: relative; /* Ensure content is above any pseudo-elements */
}

.page-gdpr__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: var(--gold-color); /* Use gold for main title */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

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

/* CTA Button */
.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-main); /* White text on button gradient */
    background: var(--btn-gradient);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Ensure padding doesn't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-gdpr__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* Section Titles */
.page-gdpr__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-gdpr__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--secondary-brand);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Text Block */
.page-gdpr__text-block {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.page-gdpr__text-block strong {
    color: var(--gold-color);
}

/* List Styles */
.page-gdpr__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-gdpr__list-item {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.page-gdpr__list-item::before {
    content: '✓'; /* Checkmark icon */
    color: var(--glow-color);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* Content Images */
.page-gdpr__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Sections */
.page-gdpr__intro-section,
.page-gdpr__faq-section,
.page-gdpr__cta-section {
    padding: 60px 0;
    background-color: var(--bg-card); /* Darker background for sections */
    border-top: 1px solid var(--divider-color);
    border-bottom: 1px solid var(--divider-color);
}

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

.page-gdpr__content-area {
    padding: 60px 0;
    background-color: var(--bg-primary); /* Main background for content */
}

/* Contact List */
.page-gdpr__contact-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

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

.page-gdpr__contact-item a {
    color: var(--glow-color); /* Highlight links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-gdpr__contact-item a:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

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

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
    background-color: var(--deep-green);
    user-select: none; /* Prevent text selection on click */
}

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

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

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

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

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    content: '−'; /* Change to minus when open */
}

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

.page-gdpr__faq-answer p {
    margin-top: 10px;
    margin-bottom: 0;
}

/* CTA buttons group */
.page-gdpr__cta-section .page-gdpr__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.page-gdpr__btn-primary {
    background: var(--btn-gradient);
    color: var(--text-main);
    border: none;
}

.page-gdpr__btn-secondary {
    background: var(--bg-card); /* Card background for secondary button */
    color: var(--glow-color); /* Glow color for text */
    border: 2px solid var(--glow-color);
}

.page-gdpr__btn-secondary:hover {
    background: var(--glow-color);
    color: var(--bg-card);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-gdpr__description {
        font-size: 1.1rem;
    }
    .page-gdpr__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-gdpr__sub-title {
        font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    }
    .page-gdpr__text-block,
    .page-gdpr__list-item,
    .page-gdpr__contact-item,
    .page-gdpr__faq-question {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        padding-bottom: 40px;
    }
    .page-gdpr__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-gdpr__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-gdpr__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-gdpr__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        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__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }
    .page-gdpr__sub-title {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-gdpr__text-block,
    .page-gdpr__list-item,
    .page-gdpr__contact-item {
        font-size: 0.95rem;
    }
    .page-gdpr__list-item {
        padding-left: 25px;
    }
    .page-gdpr__list-item::before {
        font-size: 1.1rem;
    }

    .page-gdpr__content-image {
        margin: 20px auto;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-gdpr__intro-section,
    .page-gdpr__content-area,
    .page-gdpr__faq-section,
    .page-gdpr__cta-section {
        padding: 40px 0;
    }

    .page-gdpr__faq-question {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    .page-gdpr__faq-toggle {
        font-size: 1.5rem;
    }
    .page-gdpr__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.9rem;
    }

    /* Mobile specific 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 */
    }

    /* Button group for mobile */
    .page-gdpr__cta-section .page-gdpr__container {
        flex-direction: column;
        align-items: stretch; /* Stretch buttons to full width */
        gap: 15px;
    }
    .page-gdpr__cta-button {
        width: 100%;
    }
}

/* Ensure no CSS filter is used on images */
.page-gdpr img {
    filter: none; /* Explicitly disable any potential filter */
}

/* Content area images minimum size enforcement for CSS selectors */
.page-gdpr__content-area img,
.page-gdpr__hero-section img {
    min-width: 200px;
    min-height: 200px;
    /* Responsive rules for mobile are in the media query above */
}