: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 as per custom colors */
    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);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H1 */
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-gold); /* Use gold for main title for luxury feel */
}

.page-gdpr__section-title {
    font-size: clamp(1.8em, 3vw, 2.2em);
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-secondary);
}

.page-gdpr__sub-title,
.page-gdpr__card-title,
.page-gdpr__rights-heading,
.page-gdpr__security-heading,
.page-gdpr__sharing-heading {
    font-size: clamp(1.2em, 2.5vw, 1.6em);
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 15px;
}

/* Text elements */
.page-gdpr p,
.page-gdpr li {
    color: var(--color-text-secondary); /* Secondary text color for paragraphs and list items */
    margin-bottom: 15px;
}

.page-gdpr__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Links */
.page-gdpr__link {
    color: var(--color-primary);
    text-decoration: underline;
}

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

/* Sections and Containers */
.page-gdpr__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--color-divider);
}

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

.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; /* Image block above text block */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    overflow: hidden;
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width on larger screens */
    margin-bottom: 30px; /* Space between image and content */
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

/* CTA Buttons */
.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* For responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-gdpr__cta-button--primary {
    background: var(--color-button-gradient-start); /* Using start of gradient as solid for contrast */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main); /* White text on dark button */
    border: 2px solid var(--color-button-gradient-start);
}

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

.page-gdpr__cta-button--secondary {
    background: transparent;
    color: var(--color-primary); /* Brand color for text */
    border: 2px solid var(--color-primary);
    margin-left: 20px; /* Space between buttons */
}

.page-gdpr__cta-button--secondary:hover {
    background: rgba(var(--color-primary), 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-gdpr__card {
    background-color: var(--color-card-bg); /* Dark card background */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--color-border);
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
}

.page-gdpr__card-image {
    width: 100%;
    max-width: 400px; /* Max width for card images */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure block display for proper spacing */
    object-fit: cover;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

/* Lists (Rights, Data, Security, Sharing) */
.page-gdpr__rights-list,
.page-gdpr__data-list,
.page-gdpr__security-list,
.page-gdpr__sharing-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-gdpr__rights-item,
.page-gdpr__data-item,
.page-gdpr__security-item,
.page-gdpr__sharing-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__rights-description,
.page-gdpr__security-description,
.page-gdpr__sharing-description {
    font-size: 1em;
    color: var(--color-text-secondary);
}

/* Contact Info */
.page-gdpr__contact-info {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-gdpr__faq-item summary {
    list-style: none; /* Remove default marker */
}

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

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

.page-gdpr__faq-question:hover {
    background-color: var(--color-deep-green); /* Slightly darker on hover */
}

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

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

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

/* Ensure images in content area are not too small by CSS */
.page-gdpr img:not(.page-gdpr__hero-image) { /* Exclude hero image from this general rule if needed for specific layout */
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}


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

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

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

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

    .page-gdpr__main-title {
        font-size: 2em;
    }

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

    .page-gdpr__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        align-items: center;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-gdpr__cta-button {
        width: 100% !important; /* Full width buttons */
        margin-left: 0 !important; /* Remove margin between stacked buttons */
        max-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__card-grid {
        grid-template-columns: 1fr; /* Single column for cards */
    }

    /* Images responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__section,
    .page-gdpr__contact-info,
    .page-gdpr__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to content containers */
        padding-right: 15px;
        overflow: hidden !important; /* Prevent overflow */
    }

    /* Ensure card image itself is not too small by CSS */
    .page-gdpr__card-image {
        min-width: unset; /* Allow to scale down but constrained by container */
        min-height: unset;
    }
    
    /* Specific override for general content images that might be smaller than 200px if not explicitly sized */
    .page-gdpr img:not(.page-gdpr__hero-image) {
        min-width: 200px !important; /* Enforce min-width for all content images on mobile */
        min-height: 200px !important; /* Enforce min-height for all content images on mobile */
    }

    /* FAQ item padding for mobile */
    .page-gdpr__faq-question {
        padding: 15px 20px;
    }

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

@media (max-width: 480px) {
    .page-gdpr__main-title {
        font-size: 1.8em;
    }

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

    .page-gdpr__hero-section {
        padding: 30px 10px;
        padding-top: 10px !important;
    }
}