/* style/gdpr.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E; /* Main Green */
    --color-secondary: #22C768; /* Auxiliary Green */
    --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;
}

.page-gdpr {
    background-color: var(--color-background); /* Dark background from custom colors */
    color: var(--color-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background-color: var(--color-deep-green); /* A slightly different dark green for the hero section background */
}

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

.page-gdpr__hero-content {
    position: relative; /* Not absolute to avoid overlapping the image */
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 30px 20px;
    margin-top: -80px; /* Pull content up slightly over image, but not *on* it */
    background: rgba(17, 39, 27, 0.8); /* Semi-transparent dark background for text readability */
    border-radius: 10px;
}

.page-gdpr__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size */
    color: var(--color-gold); /* Gold color for main title */
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.page-gdpr__description {
    font-size: clamp(1em, 1.5vw, 1.2em);
    color: var(--color-text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styling */
.page-gdpr__section {
    padding: 60px 0;
    position: relative;
    z-index: 2; /* Ensure sections are above hero image's potential overlap */
}

.page-gdpr__introduction,
.page-gdpr__your-rights,
.page-gdpr__data-handling,
.page-gdpr__security-measures,
.page-gdpr__faq-section,
.page-gdpr__contact-cta {
    background-color: var(--color-background); /* Ensure consistent dark background */
    color: var(--color-text-main);
}

.page-gdpr__principles {
    background-color: var(--color-deep-green); /* Slightly different background for visual break */
    color: var(--color-text-main);
}

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

.page-gdpr__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--color-secondary); /* Auxiliary green for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

.page-gdpr__subsection-title {
    font-size: clamp(1.4em, 2.5vw, 2em);
    color: var(--color-primary); /* Main green for subsections */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-gdpr__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

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

.page-gdpr__card {
    background-color: var(--color-card-bg); /* Darker card background */
    color: var(--color-text-main);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border); /* Green border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-gdpr__card-title {
    font-size: 1.4em;
    color: var(--color-gold); /* Gold for card titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-gdpr__card-text {
    font-size: 1em;
    color: var(--color-text-secondary); /* Secondary text color */
}

/* Lists */
.page-gdpr__list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-gdpr__list-item {
    background-color: var(--color-card-bg); /* Use card background for list items */
    color: var(--color-text-main);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 5px solid var(--color-primary); /* Green accent */
    font-size: 1.05em;
}

.page-gdpr__list-item strong {
    color: var(--color-gold); /* Gold for strong text in list items */
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-gdpr__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main); /* Light text on green button */
    border: 2px solid var(--color-button-gradient-start);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-gdpr__btn-primary:hover {
    background: linear-gradient(180deg, var(--color-button-gradient-end) 0%, var(--color-button-gradient-start) 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-gdpr__btn-secondary {
    background-color: transparent;
    color: var(--color-primary); /* Primary green text */
    border: 2px solid var(--color-primary);
    margin-left: 20px;
}

.page-gdpr__btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-main);
    transform: translateY(-2px);
}

.page-gdpr__cta-content {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--color-card-bg); /* Darker background for CTA */
    border-radius: 10px;
    margin-top: 60px;
    border: 1px solid var(--color-border);
}

.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%; /* Ensure container responsiveness */
    box-sizing: border-box;
    overflow: hidden;
}

/* 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;
    color: var(--color-text-main);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.15em;
    color: var(--color-gold); /* Gold for FAQ questions */
    background-color: var(--color-card-bg);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

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

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

.page-gdpr__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-primary); /* Primary green for toggle icon */
}

.page-gdpr__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: var(--color-text-secondary); /* Secondary text color for answers */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* For <details> tag, we manage visibility via browser default, but ensure styling */
.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
    max-height: 1000px; /* Arbitrary large value for smooth transition */
    transition: max-height 0.5s ease-in;
}

/* Link styling */
.page-gdpr a {
    color: var(--color-glow); /* Glow color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-gdpr a:hover {
    color: var(--color-gold); /* Gold on hover */
}

/* --- Responsive Design --- */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
    .page-gdpr__hero-content {
        margin-top: -60px;
        padding: 20px;
    }

    .page-gdpr__main-title {
        font-size: clamp(2em, 4.5vw, 2.8em);
    }

    .page-gdpr__description {
        font-size: clamp(0.95em, 1.8vw, 1.1em);
    }

    .page-gdpr__section-title {
        font-size: clamp(1.6em, 3.5vw, 2.4em);
    }

    .page-gdpr__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

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

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

    .page-gdpr__hero-content {
        margin-top: -40px;
        padding: 15px;
        width: calc(100% - 30px); /* Account for padding */
    }

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

    .page-gdpr__description {
        font-size: clamp(0.9em, 3.5vw, 1em);
        margin-bottom: 20px;
    }

    .page-gdpr__section {
        padding: 40px 0;
    }

    .page-gdpr__container {
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-gdpr__subsection-title {
        font-size: clamp(1.2em, 5vw, 1.6em);
    }

    .page-gdpr__text-block {
        font-size: 1em;
        margin-bottom: 15px;
    }

    .page-gdpr__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-gdpr__card {
        padding: 20px;
    }

    .page-gdpr__card-title {
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .page-gdpr__list-item {
        padding: 12px 15px;
        font-size: 0.95em;
    }

    /* Buttons */
    .page-gdpr__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important; /* Remove margin for stacking */
        font-size: 1em;
        padding: 12px 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important; /* Ensure padding/border included in width */
    }

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

    .page-gdpr__faq-toggle {
        font-size: 1.5em;
    }

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

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