/* style/gdpr.css */

:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --background-dark: #0A0A0A;
    --card-background: #111111;
    --text-light: #FFF6D6;
    --border-color: #3A2A12;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --header-offset: 120px; /* Default value, will be overridden by shared.css */
}

/* Base styles for the GDPR page content */
.page-gdpr {
    background-color: var(--background-dark);
    color: var(--text-light);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-gdpr__section {
    padding: 60px 0;
    text-align: center;
}

.page-gdpr__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    height: 675px; /* Fixed height for desktop hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-gdpr__hero-content-wrapper {
    position: relative;
    z-index: 10;
    padding: 40px 0;
    width: 100%;
    background: var(--background-dark); /* Ensure text has a solid background below the image */
}

.page-gdpr__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-gdpr__hero-description {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-gdpr__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: bold;
}

.page-gdpr__section-text {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-gdpr__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-light);
    margin-bottom: 15px;
}

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

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

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-gdpr__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

.page-gdpr__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-gdpr__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.page-gdpr__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-gdpr__principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-gdpr__card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: var(--text-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.page-gdpr__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
}

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

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

.page-gdpr__rights-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-gdpr__right-item {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.page-gdpr__right-icon {
    width: 80px; /* Example size, ensuring minimum 200px for content images */
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--glow-color)); /* Subtle glow */
    display: block;
}

.page-gdpr__dark-section {
    background-color: #1a1a1a; /* Slightly different dark background for contrast */
    color: #ffffff;
}

.page-gdpr__dark-section .page-gdpr__section-title {
    color: var(--secondary-color);
}

.page-gdpr__dark-section .page-gdpr__sub-title {
    color: #ffffff;
}

.page-gdpr__dark-section .page-gdpr__text-block {
    color: #e0e0e0;
}

.page-gdpr__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-gdpr__security-item {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.page-gdpr__security-icon {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-gdpr__policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.page-gdpr__policy-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    color: var(--text-light);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.page-gdpr__policy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__policy-card .page-gdpr__card-title {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-gdpr__faq-section {
    text-align: left;
}

.page-gdpr__faq-list {
    margin-top: 40px;
}

.page-gdpr__faq-item {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background-color: var(--card-background);
    color: var(--text-light);
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: #1a1a1a;
}

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

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

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

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

.page-gdpr__cta-final-section .page-gdpr__cta-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 30px auto;
    display: block;
}

/* Image specific rules to ensure minimum size */
.page-gdpr img:not(.page-gdpr__right-icon) {
    min-width: 200px;
    min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-image-wrapper {
        height: 500px;
    }
    .page-gdpr__section {
        padding: 40px 0;
    }
    .page-gdpr__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-gdpr__section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    .page-gdpr__sub-title {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-gdpr__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media */
    }
    .page-gdpr__hero-image-wrapper {
        height: 300px;
    }
    .page-gdpr__hero-content-wrapper {
        padding: 30px 0;
    }
    .page-gdpr__section {
        padding: 30px 0;
    }
    .page-gdpr__container {
        padding: 15px;
    }
    .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;
    }
    .page-gdpr__content-grid,
    .page-gdpr__principles-grid,
    .page-gdpr__rights-list,
    .page-gdpr__security-grid,
    .page-gdpr__policy-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Mobile image responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset !important; /* Allow smaller images on mobile if needed, but still responsive */
        min-height: unset !important;
    }
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__grid-item,
    .page-gdpr__right-item,
    .page-gdpr__security-item,
    .page-gdpr__policy-card,
    .page-gdpr__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr__faq-question,
    .page-gdpr__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Color Contrast Fixes (if needed, based on dynamic check) */
/* Assuming a dark body background from shared.css and custom colors */
.page-gdpr {
  color: var(--text-light); /* Enforce light text on dark background */
}

.page-gdpr__card,
.page-gdpr__right-item,
.page-gdpr__security-item,
.page-gdpr__policy-card,
.page-gdpr__faq-item {
  background-color: var(--card-background);
  color: var(--text-light);
}

.page-gdpr__main-title,
.page-gdpr__section-title,
.page-gdpr__card-title,
.page-gdpr__faq-title {
  color: var(--primary-color);
}

.page-gdpr__dark-section {
  background-color: #1a1a1a; /* Ensure text is visible on this darker shade */
  color: #ffffff;
}

.page-gdpr__dark-section .page-gdpr__section-title {
  color: var(--secondary-color);
}

.page-gdpr__btn-primary {
  color: #ffffff; /* White text on gradient button */
}

.page-gdpr__btn-secondary {
  color: var(--primary-color); /* Primary color text on white button */
}

/* Ensure images do not use filters */
.page-gdpr img {
    filter: none !important;
}