/* style/gdpr.css */

/* Custom Colors */
:root {
    --page-gdpr-bg: #08160F;
    --page-gdpr-card-bg: #11271B;
    --page-gdpr-text-main: #F2FFF6;
    --page-gdpr-text-secondary: #A7D9B8;
    --page-gdpr-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-gdpr-border: #2E7A4E;
    --page-gdpr-glow: #57E38D;
    --page-gdpr-gold: #F2C14E;
    --page-gdpr-divider: #1E3A2A;
    --page-gdpr-deep-green: #0A4B2C;
    --primary-color: #11A84E; /* Main brand color */
    --secondary-color: #22C768; /* Auxiliary brand color */
}

.page-gdpr {
    background-color: var(--page-gdpr-bg);
    color: var(--page-gdpr-text-main); /* Default text color for the page */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-bottom: 40px; /* Space below content */
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    max-height: 600px; /* Limit height for aesthetic */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-gdpr__hero-content {
    width: 100%;
    max-width: 1200px;
    padding: 30px 20px;
    box-sizing: border-box;
    text-align: center;
    background-color: var(--page-gdpr-deep-green); /* Use a dark background for contrast */
    color: var(--page-gdpr-text-main);
    border-radius: 8px;
    margin-top: -80px; /* Overlap with image slightly for visual effect */
    position: relative;
    z-index: 2; /* Ensure content is above image */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

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

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-gdpr__btn-primary {
    background: var(--page-gdpr-button-gradient);
    color: #ffffff; /* White text on dark button */
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-gdpr__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-gdpr__btn-secondary {
    background: var(--page-gdpr-card-bg);
    color: var(--page-gdpr-gold);
    border: 2px solid var(--page-gdpr-border);
    margin-left: 15px;
}

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

/* General Content Area */
.page-gdpr__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--page-gdpr-bg); /* Use page background for content area */
    color: var(--page-gdpr-text-main);
    box-sizing: border-box;
}

.page-gdpr__container {
    max-width: 100%; /* Ensure container respects max-width of content-area */
    margin: 0 auto;
}

.page-gdpr__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--page-gdpr-gold);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
    position: relative;
}

.page-gdpr__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--page-gdpr-glow);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-gdpr h3 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--page-gdpr-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-gdpr p {
    font-size: 1rem;
    color: var(--page-gdpr-text-secondary);
    margin-bottom: 15px;
}

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

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

/* Feature Blocks */
.page-gdpr__feature-block {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}

.page-gdpr__feature-block--reverse {
    flex-direction: row-reverse;
}

.page-gdpr__feature-image {
    flex: 0 0 45%;
    max-width: 45%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

.page-gdpr__feature-content {
    flex: 1;
}

.page-gdpr__feature-title {
    color: var(--page-gdpr-gold);
    margin-top: 0;
}

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

.page-gdpr__card {
    background-color: var(--page-gdpr-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--page-gdpr-text-main);
    border: 1px solid var(--page-gdpr-border);
}

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

.page-gdpr__card-title {
    color: var(--page-gdpr-glow);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Implementation Steps */
.page-gdpr__implementation-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-gdpr__step-item {
    background-color: var(--page-gdpr-card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--page-gdpr-divider);
}

.page-gdpr__step-icon {
    width: 60px;
    height: 60px;
    background: var(--page-gdpr-glow);
    color: var(--page-gdpr-deep-green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.page-gdpr__step-title {
    color: var(--page-gdpr-text-main);
    font-size: 1.3rem;
    margin-top: 0;
}

/* Related Policies */
.page-gdpr__related-policies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-gdpr__policy-card {
    background-color: var(--page-gdpr-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-gdpr-border);
    color: var(--page-gdpr-text-main);
}

/* Contact CTA */
.page-gdpr__contact-cta {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 15px;
}

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

.page-gdpr__faq-item {
    background-color: var(--page-gdpr-card-bg);
    border: 1px solid var(--page-gdpr-border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--page-gdpr-text-main);
    background-color: var(--page-gdpr-deep-green);
    border-bottom: 1px solid var(--page-gdpr-divider);
    list-style: none; /* Hide default marker for <summary> */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

/* Hide default marker for details summary */
.page-gdpr__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-gdpr__faq-item summary::marker {
    display: none;
}


.page-gdpr__faq-question:hover {
    background-color: var(--page-gdpr-border);
}

.page-gdpr__faq-qtext {
    flex-grow: 1;
}

.page-gdpr__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-gdpr-glow);
}

.page-gdpr__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--page-gdpr-text-secondary);
    border-top: 1px solid var(--page-gdpr-divider);
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
    border-bottom: none;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    content: '−'; /* Change to minus when open */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-content {
        margin-top: -60px;
        padding: 25px 15px;
    }
    .page-gdpr__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-gdpr__description {
        font-size: 1rem;
    }
    .page-gdpr__content-area {
        padding: 40px 15px;
    }
    .page-gdpr__feature-block {
        flex-direction: column;
        gap: 30px;
    }
    .page-gdpr__feature-block--reverse {
        flex-direction: column;
    }
    .page-gdpr__feature-image {
        max-width: 100%;
        flex: none;
    }
    .page-gdpr__rights-grid,
    .page-gdpr__implementation-steps,
    .page-gdpr__related-policies {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Mobile specific overrides with !important */
    .page-gdpr__hero-section {
        padding-top: 10px !important; /* Body already handles header offset */
        padding-bottom: 20px !important;
    }
    .page-gdpr__hero-image-wrapper {
        max-height: 400px;
    }
    .page-gdpr__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
    }
    .page-gdpr__hero-content {
        margin-top: -40px !important;
        padding: 20px 15px !important;
    }
    .page-gdpr__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
    }
    .page-gdpr__description {
        font-size: 0.95rem !important;
    }
    .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 !important;
      padding-right: 15px !important;
    }
    
    .page-gdpr__contact-cta {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .page-gdpr__btn-secondary {
        margin-left: 0 !important; /* Remove margin from second button on mobile */
    }

    .page-gdpr__content-area {
      padding: 30px 15px !important;
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    .page-gdpr__container,
    .page-gdpr__card,
    .page-gdpr__feature-block,
    .page-gdpr__rights-grid,
    .page-gdpr__implementation-steps,
    .page-gdpr__related-policies,
    .page-gdpr__faq-list,
    .page-gdpr__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left: 0px; */ /* Adjust padding if needed, or rely on content-area padding */
        /* padding-right: 0px; */
        overflow: hidden !important; /* Ensure no overflow */
    }

    .page-gdpr img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
      min-height: 200px !important; /* Enforce minimum size for all content images */
    }

    .page-gdpr__feature-image {
        min-height: 200px !important;
    }
    
    .page-gdpr__faq-question {
        font-size: 1.1rem !important;
        padding: 15px 20px !important;
    }
    .page-gdpr__faq-answer {
        padding: 15px 20px !important;
        font-size: 0.95rem !important;
    }
}