/* style/gdpr.css */
/* 
 * Body padding-top is handled by shared.css:
 * body { padding-top: var(--header-offset); }
 * Therefore, avoid applying var(--header-offset) here to prevent double spacing.
 */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
}

/* Container for main content, centered and max-width */
.page-gdpr__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Added padding for smaller screens */
    box-sizing: border-box;
}

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

.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height of hero image wrapper */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and text */
}

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

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

.page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-gdpr__subtitle {
    font-size: 1.2em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

.page-gdpr__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.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%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    text-align: center;
}

.page-gdpr__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main for contrast */
    border: none;
}

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

.page-gdpr__btn-secondary {
    background-color: transparent;
    color: #2AD16F; /* Complementary color */
    border: 2px solid #2AD16F;
}

.page-gdpr__btn-secondary:hover {
    background-color: #2AD16F;
    color: #08160F;
}

/* Section titles */
.page-gdpr__section-title {
    font-size: 2.5em;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-gdpr__sub-title {
    font-size: 1.8em;
    color: #F2FFF6; /* Text Main */
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-gdpr__text-block {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
}

/* Background colors for sections */
.page-gdpr__dark-bg {
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
}

.page-gdpr__card-bg {
    background-color: #11271B; /* Card BG */
    color: #F2FFF6; /* Text Main */
}

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

.page-gdpr__grid-item {
    background-color: #08160F; /* Background for grid items */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px #57E38D; /* Glow */
}

.page-gdpr__grid-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
}

.page-gdpr__item-title {
    font-size: 1.4em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-gdpr__item-description {
    font-size: 0.95em;
    color: #A7D9B8; /* Text Secondary */
}

/* List styling for user rights and contact info */
.page-gdpr__rights-list,
.page-gdpr__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-gdpr__rights-list .page-gdpr__list-item,
.page-gdpr__contact-list .page-gdpr__list-item {
    background-color: #11271B; /* Card BG */
    border-left: 5px solid #2AD16F;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-gdpr__rights-list .page-gdpr__item-title {
    font-size: 1.3em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
}

.page-gdpr__rights-list .page-gdpr__item-description {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
}

.page-gdpr__contact-link {
    color: #57E38D; /* Glow for links */
    text-decoration: none;
}

.page-gdpr__contact-link:hover {
    text-decoration: underline;
}

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

.page-gdpr__method-card {
    background-color: #08160F; /* Background */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px #57E38D; /* Glow */
}

.page-gdpr__method-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

/* FAQ section */
.page-gdpr__faq-list {
    margin-top: 30px;
}

.page-gdpr__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F2FFF6; /* Text Main */
}

.page-gdpr__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.15em;
    color: #F2FFF6; /* Text Main */
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-item summary:hover {
    background-color: rgba(46, 122, 78, 0.2); /* #2E7A4E with opacity */
}

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

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

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #2AD16F;
}

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

.page-gdpr__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-gdpr__section-title {
        font-size: 2em;
    }
    .page-gdpr__sub-title {
        font-size: 1.5em;
    }
    .page-gdpr__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
}

@media (max-width: 768px) {
    .page-gdpr__section {
        padding: 40px 0;
    }
    .page-gdpr__container {
        padding: 0 15px;
    }
    .page-gdpr__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 40px;
    }
    .page-gdpr__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }
    .page-gdpr__subtitle {
        font-size: 1em;
    }
    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        width: 100% !important;
        max-width: 300px !important; /* Limit max-width for column buttons */
        padding: 12px 20px !important;
        font-size: 0.95em !important;
        margin: 0 auto; /* Center buttons */
    }
    .page-gdpr__section-title {
        font-size: 1.8em;
    }
    .page-gdpr__sub-title {
        font-size: 1.3em;
    }
    .page-gdpr__text-block {
        font-size: 0.95em;
    }

    /* Images responsiveness */
    .page-gdpr img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__grid-item,
    .page-gdpr__method-card,
    .page-gdpr__section,
    .page-gdpr__container,
    .page-gdpr__faq-item {
        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 images within these elements */
    .page-gdpr__grid-image,
    .page-gdpr__method-image {
        height: auto !important; /* Adjust height for mobile */
        max-height: 180px; /* Optional: limit max height for smaller images */
    }
    /* FAQ toggle adjustments */
    .page-gdpr__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-gdpr__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-gdpr__section-title {
        font-size: 1.5em;
    }
    .page-gdpr__sub-title {
        font-size: 1.2em;
    }
    .page-gdpr__main-title {
        font-size: clamp(1.3em, 7vw, 2em);
    }
}