/* style/gdpr.css */
/* 
Body background color is var(--body-bg) from shared.css.
Custom colors for this page:
Background: #0A0A0A
Card BG: #111111
Text Main: #FFF6D6
Buttons: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%)
Border: #3A2A12
Glow: #FFD36B

Assuming --body-bg is dark, so #FFF6D6 (light) is appropriate for text.
*/

:root {
    --body-bg: #0A0A0A; /* Assuming a dark body background from shared for consistency */
    --main-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --background: #0A0A0A;
    --text-main: #FFF6D6;
    --border: #3A2A12;
    --glow: #FFD36B;
}

.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--background);
    padding-top: 10px; /* Small top padding for first section to prevent header overlap, body handles --header-offset */
}

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

/* Headings */
.page-gdpr__heading {
    font-size: 2.5em;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-gdpr__sub-heading {
    font-size: 1.8em;
    color: var(--text-main);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

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

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

.page-gdpr__list-item {
    margin-bottom: 10px;
    color: var(--text-main);
}

/* Links */
.page-gdpr__link {
    color: var(--glow); /* Use glow color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-gdpr__link:hover {
    color: var(--main-color); /* Hover with main color */
    text-decoration: underline;
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 60px 0; /* Adjust padding, body handles top offset */
    background-color: var(--background);
    overflow: hidden;
}

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

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-gdpr__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-gdpr__main-title {
    font-size: clamp(2.5em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

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

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

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

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-gdpr__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111; /* Dark text for light button */
    border: 2px solid transparent;
}

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

.page-gdpr__btn-secondary {
    background: transparent;
    color: var(--glow);
    border: 2px solid var(--glow);
}

.page-gdpr__btn-secondary:hover {
    background: var(--glow);
    color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-gdpr__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.2em;
    min-width: 250px; /* Ensure a decent size */
}

/* Section Styling */
.page-gdpr__introduction-section,
.page-gdpr__principles-section,
.page-gdpr__implementation-section,
.page-gdpr__breach-section,
.page-gdpr__changes-section {
    padding: 60px 0;
    background-color: var(--background);
}

.page-gdpr__commitment-section,
.page-gdpr__rights-section,
.page-gdpr__dpo-section,
.page-gdpr__cookies-section,
.page-gdpr__faq-section {
    padding: 60px 0;
    background-color: var(--card-bg); /* Darker background for distinction */
}

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

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

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

.page-gdpr__card-image {
    width: 100%;
    max-width: 400px; /* Constrain card image width */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size for content images */
    min-height: 200px; /* Min size for content images */
}

.page-gdpr__card-title {
    font-size: 1.4em;
    color: var(--glow);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-gdpr__card-text {
    font-size: 1em;
    color: var(--text-main);
}

/* Rights List */
.page-gdpr__rights-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-gdpr__right-item {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-gdpr__right-title {
    font-size: 1.3em;
    color: var(--glow);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-gdpr__right-text {
    font-size: 1em;
    color: var(--text-main);
}

/* Image with text block */
.page-gdpr__image-text-block {
    display: flex;
    flex-direction: column; /* Default for mobile, will change for desktop */
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.page-gdpr__image-text-block-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Min size for content images */
    min-height: 200px; /* Min size for content images */
}

/* DPO Contact Info */
.page-gdpr__contact-info {
    text-align: center;
    margin-top: 30px;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--background);
    color: var(--text-main);
    font-weight: bold;
    font-size: 1.1em;
    border-bottom: 1px solid transparent; /* Placeholder for active state */
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.page-gdpr__faq-item.active .page-gdpr__faq-question {
    border-bottom: 1px solid var(--border);
}

.page-gdpr__faq-title {
    margin: 0;
    color: var(--text-main);
    font-size: 1.1em;
    font-weight: 600;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--glow);
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    transform: rotate(45deg);
    color: var(--main-color);
}

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-main);
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 15px 25px 25px;
}

.page-gdpr__faq-answer .page-gdpr__paragraph {
    margin-bottom: 0;
}

/* Explore CTA Section */
.page-gdpr__explore-cta {
    background: var(--background);
    padding: 80px 0;
    text-align: center;
}

.page-gdpr__cta-content {
    max-width: 800px;
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

/* Copyright Section */
.page-gdpr__copyright-section {
    background-color: var(--card-bg);
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.page-gdpr__copyright-text {
    font-size: 0.9em;
    color: var(--text-main);
    margin: 0;
}

/* Ensure all images maintain original color, no filters */
.page-gdpr img {
    filter: none !important; /* Absolutely no CSS filters to change image colors */
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-gdpr__image-text-block {
        flex-direction: row;
        text-align: left;
    }
    .page-gdpr__image-text-block-image {
        flex-shrink: 0; /* Prevent image from shrinking */
        max-width: 40%; /* Adjust as needed */
    }
    .page-gdpr__image-text-block p {
        flex-grow: 1;
    }
}


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

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

    .page-gdpr__main-title {
        font-size: 2em;
        padding: 0 15px;
    }

    .page-gdpr__description {
        font-size: 1em;
        padding: 0 15px;
    }

    .page-gdpr__heading {
        font-size: 1.8em;
        padding: 0 15px;
    }

    .page-gdpr__sub-heading {
        font-size: 1.4em;
        padding: 0 15px;
    }

    .page-gdpr__paragraph,
    .page-gdpr__list-item,
    .page-gdpr__card-text,
    .page-gdpr__right-text,
    .page-gdpr__faq-title,
    .page-gdpr__copyright-text {
        font-size: 0.95em;
        /* Padding applied to text elements by parent container for consistency */
    }

    /* Images responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important; /* Ensure block display for proper width */
    }
    
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__image-text-block-image,
    .page-gdpr__card-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to image containers */
    }

    /* Buttons responsiveness */
    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 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;
    }
    
    /* Ensure containers are responsive */
    .page-gdpr__container,
    .page-gdpr__grid-container,
    .page-gdpr__rights-list,
    .page-gdpr__faq-list,
    .page-gdpr__dpo-section .page-gdpr__contact-info,
    .page-gdpr__explore-cta .page-gdpr__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-gdpr__card {
        padding: 20px;
    }

    .page-gdpr__right-item {
        padding: 20px;
    }

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

    .page-gdpr__faq-answer {
        padding: 0 20px;
    }
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 10px 20px 20px;
    }

    .page-gdpr__contact-info {
        padding: 20px;
    }

    .page-gdpr__explore-cta .page-gdpr__cta-content {
        padding: 30px 20px;
    }

    .page-gdpr__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-gdpr__image-text-block {
        padding: 0 15px;
    }

    .page-gdpr__image-text-block-image {
        margin-bottom: 20px; /* Space for image in column layout */
    }

    .page-gdpr__dpo-section, .page-gdpr__cookies-section, .page-gdpr__faq-section {
        padding: 40px 0;
    }
    .page-gdpr__introduction-section, .page-gdpr__principles-section, .page-gdpr__implementation-section, .page-gdpr__breach-section, .page-gdpr__changes-section, .page-gdpr__explore-cta {
        padding: 40px 0;
    }
}