/* style/gdpr.css */

/* Custom properties for colors from the design brief */
:root {
    --color-primary: #F2C14E; /* Main theme color */
    --color-secondary: #FFD36B; /* Accent color / Glow */
    --color-background-body: #0A0A0A; /* Body background from shared.css context */
    --color-background-card: #111111; /* Card background */
    --color-text-main: #FFF6D6; /* Main text color */
    --color-border: #3A2A12; /* Border color */
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
}

.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Light text on dark body background */
    background-color: var(--color-background-body); /* Ensure consistency if main is not full height */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text for desktop and mobile */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    background-color: #0A0A0A; /* Dark background */
}

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

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

.page-gdpr__hero-content {
    max-width: 800px;
    z-index: 1;
}

.page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
    color: var(--color-primary);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

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

/* General Section Styling */
.page-gdpr__section {
    padding: 60px 0;
    background-color: var(--color-background-body);
    border-bottom: 1px solid var(--color-border);
}

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

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

.page-gdpr__section-title {
    font-size: 2.5em;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

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

.page-gdpr__text-block a {
    color: var(--color-secondary);
    text-decoration: underline;
}

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

/* CTA Buttons */
.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-gdpr__cta-button--primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text on gradient button */
    border: none;
}

.page-gdpr__cta-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-gdpr__cta-button--secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    margin-left: 20px;
}

.page-gdpr__cta-button--secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
}

.page-gdpr__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

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

.page-gdpr__right-item {
    background-color: var(--color-background-card);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--color-text-main);
}

.page-gdpr__right-title {
    font-size: 1.5em;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

/* How We Comply Section */
.page-gdpr__compliance-measures,
.page-gdpr__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-gdpr__measure-item,
.page-gdpr__feature-item {
    background-color: var(--color-background-card);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--color-text-main);
}

.page-gdpr__measure-title,
.page-gdpr__feature-title {
    font-size: 1.4em;
    color: var(--color-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

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

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #1a1a1a; /* Slightly lighter dark background for question */
    color: var(--color-text-main);
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: #2a2a2a;
}

.page-gdpr__faq-question h3 {
    margin: 0;
    color: var(--color-text-main);
    font-size: 1.2em;
    flex-grow: 1;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--color-primary);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

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

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

.page-gdpr__faq-answer p {
    margin: 0;
    font-size: 1em;
}

/* Final CTA Section */
.page-gdpr__final-cta-content {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }

    .page-gdpr__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em);
    }

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

    .page-gdpr__rights-list,
    .page-gdpr__compliance-measures,
    .page-gdpr__security-features {
        grid-template-columns: 1fr;
    }

    .page-gdpr__cta-button--secondary {
        margin-left: 0;
        margin-top: 15px;
    }
}

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

    .page-gdpr__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important; /* Small top padding for mobile */
    }

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

    .page-gdpr__description {
        font-size: 1em;
    }

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

    .page-gdpr__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-gdpr__text-block {
        font-size: 1em;
    }

    .page-gdpr__image {
        margin: 30px auto;
    }

    /* Images responsiveness */
    .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;
    }

    /* Buttons responsiveness */
    .page-gdpr__cta-button,
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary,
    .page-gdpr a[class*="button"],
    .page-gdpr a[class*="btn"] {
        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__button-group,
    .page-gdpr__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px; /* Adjust gap for stacked buttons */
    }

    .page-gdpr__cta-button--secondary {
        margin-left: 0; /* Remove margin for stacked buttons */
    }

    .page-gdpr__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-gdpr__faq-question h3 {
        font-size: 1.1em;
    }

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

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