/* style/gdpr.css */

/* Variables from custom color scheme */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --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 page content */
.page-gdpr {
    background-color: var(--color-background); /* Dark background */
    color: var(--color-text-main); /* Light main text for contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom above footer */
}

.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 first, then content */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden; /* Ensure nothing overflows hero */
    box-sizing: border-box;
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

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

.page-gdpr__hero-content {
    width: 100%;
    max-width: 900px;
    text-align: center;
    padding: 40px 20px;
    box-sizing: border-box;
    background-color: var(--color-card-bg); /* Darker background for content block */
    border-radius: 8px;
    margin-top: 20px; /* Separates from image */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-gdpr__main-title {
    color: var(--color-gold); /* Gold for main title */
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.page-gdpr__hero-description {
    color: var(--color-text-secondary); /* Secondary text color */
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.page-gdpr__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    text-align: center;
    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: #ffffff;
    border: 2px solid transparent;
}

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

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

.page-gdpr__btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-background); /* Dark text on gold hover */
    box-shadow: 0 0 15px var(--color-glow);
}

/* Section common styles */
.page-gdpr__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
    font-weight: 700;
}

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

.page-gdpr__introduction-section,
.page-gdpr__data-processing-section,
.page-gdpr__faq-section {
    background-color: var(--color-background); /* Use the main background for these sections */
    padding: 60px 0;
}

.page-gdpr__rights-section,
.page-gdpr__contact-section {
    background-color: var(--color-card-bg); /* Use card background for these sections for contrast */
    padding: 60px 0;
}

.page-gdpr__dark-bg {
    color: var(--color-text-main); /* Light text for dark backgrounds */
}

.page-gdpr__light-bg {
    color: var(--color-text-main); /* Still light text as main background is dark */
}

.text-highlight {
    color: var(--color-gold);
    font-weight: 600;
}

/* Content images */
.page-gdpr__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Rights List */
.page-gdpr__rights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-gdpr__rights-item {
    background-color: var(--color-card-bg); /* Use card background for list items */
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-gdpr__rights-title {
    color: var(--color-primary); /* Primary color for sub-titles */
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-gdpr__rights-item p {
    color: var(--color-text-secondary); /* Secondary text for descriptions */
}

/* Data Processing Details */
.page-gdpr__processing-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-gdpr__detail-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

/* Contact Section */
.page-gdpr__contact-details {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--color-text-main);
}

.page-gdpr__contact-details p {
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

.page-gdpr__contact-details strong {
    color: var(--color-gold);
}

.page-gdpr__link {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* 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 2px 10px rgba(0, 0, 0, 0.2);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--color-card-bg); /* Darker background for question */
    color: var(--color-primary); /* Primary color for question text */
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid var(--color-divider);
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for details summary */
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
    background-color: var(--color-deep-green); /* Slightly darker on open */
    color: var(--color-gold);
}

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

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

.page-gdpr__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an X or minus */
    color: var(--color-gold);
}

.page-gdpr__faq-answer {
    padding: 20px 25px;
    color: var(--color-text-secondary);
    font-size: 1rem;
    background-color: var(--color-deep-green); /* Slightly lighter than card bg */
    border-top: none;
}

.page-gdpr__faq-answer p {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--color-text-secondary);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__hero-content {
        padding: 30px 15px;
    }
    .page-gdpr__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-gdpr__hero-description {
        font-size: 1rem;
    }
    .page-gdpr__section-title {
        font-size: clamp(1.6rem, 5vw, 2.5rem);
    }
    .page-gdpr__processing-details {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Mobile image responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-gdpr__hero-section,
    .page-gdpr__introduction-section,
    .page-gdpr__rights-section,
    .page-gdpr__data-processing-section,
    .page-gdpr__contact-section,
    .page-gdpr__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

    /* Mobile button responsiveness */
    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        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__hero-content {
        margin-top: 15px;
    }

    .page-gdpr__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .page-gdpr__hero-description {
        font-size: 0.95rem;
    }
    .page-gdpr__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .page-gdpr__rights-title,
    .page-gdpr__card-title {
        font-size: 1.2rem;
    }
    .page-gdpr__faq-question {
        font-size: 1.05rem;
        padding: 15px 20px;
    }
    .page-gdpr__faq-answer {
        padding: 15px 20px;
    }
    .page-gdpr__text-block,
    .page-gdpr__rights-item p,
    .page-gdpr__detail-card p,
    .page-gdpr__contact-details p,
    .page-gdpr__faq-answer p {
        font-size: 0.95rem;
    }
}