/* style/gdpr.css */

/* Custom colors from requirements */
:root {
    --color-primary: #11A84E; /* Main color */
    --color-secondary: #22C768; /* Auxiliary color */
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-background: #08160F; /* Main background */
    --color-card-bg: #11271B; /* Card background */
    --color-text-main: #F2FFF6; /* Main text color */
    --color-text-secondary: #A7D9B8; /* Secondary text color */
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

/* Base styles for the page content, ensuring contrast with body background */
.page-gdpr {
    background-color: var(--color-background); /* Explicitly set page background */
    color: var(--color-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure some space above footer */
}

/* Section styling */
.page-gdpr__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-gdpr__dark-bg {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-gdpr__card-bg {
    background-color: var(--color-card-bg);
    color: var(--color-text-main);
}

.page-gdpr__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Add horizontal padding for content */
    box-sizing: border-box;
}

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

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 30px; /* Space between image and content */
}

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

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

.page-gdpr__main-title {
    color: var(--color-text-main);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    /* Responsive font size without fixed large values */
    font-size: clamp(2.5rem, 5vw, 3.5rem); 
}

.page-gdpr__description {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%; /* Ensure container takes full width for responsiveness */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    text-align: center;
}

.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 for dark button */
    border: none;
}

.page-gdpr__btn-primary:hover {
    opacity: 0.9;
}

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

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

/* General typography */
.page-gdpr__section-title {
    color: var(--color-text-main);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.page-gdpr__text-block {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

.page-gdpr__link {
    color: var(--color-gold); /* Gold color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

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

.page-gdpr__card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

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

.page-gdpr__card-text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

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

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

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

.page-gdpr__right-title {
    color: var(--color-gold);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-gdpr__right-description {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* Data Protection Section */
.page-gdpr__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-gdpr__feature-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__feature-title {
    color: var(--color-gold);
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-gdpr__feature-description {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* Data Processing Section */
.page-gdpr__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}

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

.page-gdpr__content-subtitle {
    color: var(--color-gold);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-gdpr__list {
    list-style: disc inside;
    color: var(--color-text-secondary);
    font-size: 1rem;
    padding-left: 20px;
}

.page-gdpr__list li {
    margin-bottom: 10px;
    color: var(--color-text-secondary); /* Ensure list item text color */
}

/* Contact Section */
.page-gdpr__contact-info {
    text-align: center;
    margin-top: 30px;
}

.page-gdpr__contact-text {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* Conclusion Section */
.page-gdpr__conclusion {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-gdpr__content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-gdpr__section {
        padding: 40px 0;
    }

    .page-gdpr__hero-section {
        padding-bottom: 30px;
    }

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

    .page-gdpr__section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: 20px;
    }

    .page-gdpr__description,
    .page-gdpr__text-block,
    .page-gdpr__contact-text {
        font-size: 1rem;
        text-align: left; /* Adjust for better mobile readability */
    }

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent buttons touching edges */
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        width: 100% !important; /* Force full width */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .page-gdpr__grid-container,
    .page-gdpr__rights-list,
    .page-gdpr__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-gdpr__card,
    .page-gdpr__right-item,
    .page-gdpr__feature-card,
    .page-gdpr__content-block {
        padding: 20px;
    }

    .page-gdpr__card-title,
    .page-gdpr__right-title,
    .page-gdpr__feature-title {
        font-size: 1.2rem;
    }

    .page-gdpr__content-subtitle {
        font-size: 1.3rem;
    }

    /* Images responsiveness for mobile */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__container,
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__right-item,
    .page-gdpr__feature-card,
    .page-gdpr__content-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

    /* Specific for content blocks that might not have direct padding */
    .page-gdpr__content-area {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Fixed header spacing for video section (if present) - GDPR page doesn't have video, but keeping the rule for consistency */
    .page-gdpr__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

/* Ensure no filter on images */
.page-gdpr img {
    filter: none;
}