/* style/gdpr.css */

/* Variables from shared.css */
/* --primary-color: #26A9E0; */
/* --secondary-color: #FFFFFF; */
/* --text-color-dark: #333333; */
/* --text-color-light: #ffffff; */
/* --header-offset is defined in shared.css */

.page-gdpr {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: var(--secondary-color); /* Matches body background */
}

/* Ensure main content is not hidden by fixed header */
.page-gdpr__hero-banner {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #a7e0f8 100%); /* Lighter gradient */
    color: var(--text-color-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.page-gdpr__main-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color-light);
    line-height: 1.2;
}

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

.page-gdpr__banner-image {
    width: 100%;
    height: auto;
    max-width: 900px; /* Adjust max-width for the banner image */
    margin: 30px auto 0;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.page-gdpr__section {
    padding: 60px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.page-gdpr__section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

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

.page-gdpr__section--intro p {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
}

.page-gdpr__dark-section {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

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

.page-gdpr__dark-section .page-gdpr__section-title::after {
    background-color: var(--text-color-light);
}

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

.page-gdpr__card {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark);
}

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

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

.page-gdpr__image-full-width {
    width: 100%;
    height: auto;
    max-width: 1000px;
    margin: 40px auto 0;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-gdpr__rights-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-gdpr__right-item {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.page-gdpr__measure-card {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    color: var(--text-color-dark);
}

.page-gdpr__sub-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-gdpr__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-gdpr__list li {
    margin-bottom: 10px;
}

.page-gdpr__list strong {
    color: var(--primary-color);
}

.page-gdpr__contact-info {
    background: var(--text-color-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 40px auto 0;
    text-align: center;
    color: var(--text-color-dark);
}

.page-gdpr__contact-info p {
    font-size: 18px;
    margin-bottom: 10px;
}

.page-gdpr__contact-info a {
    color: #EA7C07; /* Login color for email links */
    text-decoration: none;
    font-weight: 600;
}

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

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

.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer hidden */
.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #333333; /* Ensure text is dark on light background */
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height to ensure expansion */
.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important to ensure priority, value large enough to accommodate any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Question style */
.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #333333; /* Ensure text is dark on light background */
}

.page-gdpr__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-gdpr__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-gdpr__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 tag from blocking click events */
  color: var(--primary-color); /* Use primary color for question title */
}

/* Toggle icon */
.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Use primary color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  color: #333;
  transform: rotate(45deg); /* Rotate for 'x' or '−' effect */
}


/* CTA Buttons */
.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.page-gdpr__btn-primary {
    background: var(--primary-color);
    color: var(--text-color-light);
    border: 2px solid var(--primary-color);
}

.page-gdpr__btn-primary:hover {
    background: #1e87b7; /* Darken on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

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

.page-gdpr__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* General link styling within content */
.page-gdpr a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-gdpr a:hover {
    color: #EA7C07; /* Use login color for hover to stand out */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: 36px;
    }

    .page-gdpr__section-title {
        font-size: 30px;
    }

    .page-gdpr__grid,
    .page-gdpr__rights-list,
    .page-gdpr__measures-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

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

    /* Mobile header offset */
    .page-gdpr__hero-banner {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding is applied */
        padding-bottom: 40px;
    }

    .page-gdpr__container {
        padding: 0 15px;
    }

    .page-gdpr__main-title {
        font-size: 30px;
        margin-bottom: 15px;
    }

    .page-gdpr__description {
        font-size: 16px;
        margin-bottom: 25px;
    }

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

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

    .page-gdpr__card,
    .page-gdpr__right-item,
    .page-gdpr__measure-card,
    .page-gdpr__contact-info {
        padding: 20px;
    }

    .page-gdpr__card-title,
    .page-gdpr__right-title,
    .page-gdpr__sub-title {
        font-size: 20px;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 40px;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 25px;
        font-size: 16px;
    }

    /* Images responsive fix */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__cta-buttons,
    .page-gdpr__grid,
    .page-gdpr__rights-list,
    .page-gdpr__measures-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Mobile Styles */
    .page-gdpr__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-gdpr__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-gdpr__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-gdpr__faq-answer {
        padding: 0 15px;
    }
    
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 15px !important;
    }
}