/* style/gdpr.css */

/* Global styles for the GDPR page content */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background #f4f4f4 */
    background-color: #f4f4f4; /* Inherited from body, but good to be explicit for content area */
}

/* Header offset for main content */
.page-gdpr {
    padding-top: var(--header-offset, 120px);
}

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

.page-gdpr__section-title {
    font-size: 36px;
    color: #8B0000; /* Auxiliary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-gdpr__sub-title {
    font-size: 24px;
    color: #8B0000;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-gdpr__text-block {
    margin-bottom: 15px;
    font-size: 17px;
    line-height: 1.7;
    color: #333333;
}

.page-gdpr__text-block--intro {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 30px;
    text-align: center;
}

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

.page-gdpr__list li {
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.7;
}

.page-gdpr a {
    color: #8B0000; /* Link color using auxiliary brand color */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-gdpr a:hover {
    color: #FFD700; /* Primary brand color on hover */
}

/* Hero Banner Section */
.page-gdpr__hero-banner {
    background: linear-gradient(135deg, #FFD700, #8B0000);
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
}

.page-gdpr__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-gdpr__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-gdpr__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #f0f0f0;
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700; /* Primary brand color for CTA */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-gdpr__cta-button:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Section backgrounds */
.page-gdpr__light-bg {
    background-color: #ffffff; /* White background for light sections */
    color: #333333;
    padding: 60px 0;
}

.page-gdpr__dark-section {
    background-color: #8B0000; /* Auxiliary color for dark sections */
    color: #ffffff;
    padding: 60px 0;
}

.page-gdpr__dark-section .page-gdpr__section-title,
.page-gdpr__dark-section .page-gdpr__sub-title,
.page-gdpr__dark-section .page-gdpr__text-block,
.page-gdpr__dark-section .page-gdpr__list li {
    color: #ffffff; /* White text for dark sections */
}

.page-gdpr__dark-section .page-gdpr__card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards in dark sections */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.page-gdpr__dark-section .page-gdpr__card-title {
    color: #FFD700; /* Gold for card titles in dark sections */
}

/* Content wrappers for images */
.page-gdpr__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
}

.page-gdpr__content-wrapper > p,
.page-gdpr__content-wrapper > ul,
.page-gdpr__content-wrapper > h3 {
    flex: 1;
    min-width: 300px; /* Allow content to wrap */
}

.page-gdpr__image {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    max-width: 100%; /* Ensure responsiveness */
    height: auto;
    display: block;
}

.page-gdpr__image--left {
    float: left;
    margin-right: 30px;
    margin-bottom: 20px;
    width: 40%; /* Adjust width for float layout */
    min-width: 300px;
}

.page-gdpr__image--right {
    float: right;
    margin-left: 30px;
    margin-bottom: 20px;
    width: 40%; /* Adjust width for float layout */
    min-width: 300px;
}

.page-gdpr__image--center {
    display: block;
    margin: 30px auto;
    width: 70%;
    max-width: 1000px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Clear floats */
.page-gdpr__content-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* Grid for rights and security sections */
.page-gdpr__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-gdpr__card {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

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

.page-gdpr__card-title {
    font-size: 22px;
    font-weight: bold;
    color: #FFD700; /* Primary brand color for card titles */
    margin-bottom: 15px;
}

.page-gdpr__card p {
    font-size: 16px;
    line-height: 1.6;
}

.page-gdpr__card--dark .page-gdpr__card-title {
    color: #FFD700; /* Ensure gold for titles in dark cards */
}

.page-gdpr__card--dark p {
    color: #f0f0f0; /* Lighter text for dark cards */
}


/* Contact list */
.page-gdpr__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    font-size: 17px;
}

.page-gdpr__contact-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.page-gdpr__contact-list li::before {
    content: "\1F4E7"; /* Email icon */
    margin-right: 10px;
    font-size: 20px;
    line-height: 1;
}

.page-gdpr__contact-list li:nth-child(2)::before {
    content: "\1F310"; /* Globe icon */
}

.page-gdpr__contact-list li:nth-child(3)::before {
    content: "\1F4AC"; /* Chat icon */
}

.page-gdpr__cta-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background: #ffffff;
    color: #8B0000;
    border: 2px solid #8B0000;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-gdpr__btn-secondary:hover {
    background: #8B0000;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


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

/* FAQ container style */
.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, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ expanded state - \u26A0\uFE0F Use !important and sufficiently large max-height */
.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 2000px !important; /* \u26A0\uFE0F Use !important for priority, value large enough to contain any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08); /* Lighter background for answer in dark section */
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

/* Question style */
.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.15); /* Slightly lighter background for question in dark section */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-gdpr__faq-question:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-gdpr__faq-question:active {
  background: rgba(255, 255, 255, 0.3);
}

/* Question title style */
.page-gdpr__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: #ffffff; /* White text for questions in dark section */
}

/* Toggle icon */
.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold 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: #FFD700; /* Keep gold color */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 40px;
    }
    .page-gdpr__hero-description {
        font-size: 18px;
    }
    .page-gdpr__section-title {
        font-size: 32px;
    }
    .page-gdpr__sub-title {
        font-size: 22px;
    }
    .page-gdpr__text-block,
    .page-gdpr__list li,
    .page-gdpr__card p {
        font-size: 16px;
    }
    .page-gdpr__card-title {
        font-size: 20px;
    }
    .page-gdpr__image--left,
    .page-gdpr__image--right {
        width: 100%;
        float: none;
        margin: 0 0 20px 0;
    }
    .page-gdpr__content-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-gdpr__container {
        padding: 15px;
    }
    .page-gdpr__hero-banner {
        padding: 60px 15px;
        min-height: 300px;
    }
    .page-gdpr__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-gdpr__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-gdpr__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-gdpr__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-gdpr__sub-title {
        font-size: 20px;
    }
    .page-gdpr__text-block,
    .page-gdpr__list li,
    .page-gdpr__card p {
        font-size: 15px;
        line-height: 1.6;
    }
    .page-gdpr__card-title {
        font-size: 18px;
    }
    .page-gdpr__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-gdpr__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-gdpr__image--center {
        width: 100%;
    }
    .page-gdpr__light-bg,
    .page-gdpr__dark-section {
        padding: 40px 0;
    }
    /* FAQ mobile styles */
    .page-gdpr__faq-question {
      padding: 15px;
      flex-wrap: wrap;
    }
    
    .page-gdpr__faq-question h3 {
      font-size: 16px;
      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;
    }
}

/* Ensure images within content areas are responsive and not too small */
.page-gdpr__container img {
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

/* Content area images CSS size lower bound */
.page-gdpr img {
    min-width: 200px;
    min-height: 200px;
}
@media (max-width: 768px) {
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure mobile images also meet min size */
        min-height: 200px !important;
    }
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button specific mobile rules */
    .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;
        padding-right: 15px; /* Add padding to prevent text touching edges */
    }
    .page-gdpr__cta-buttons,
    .page-gdpr__button-group,
    .page-gdpr__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-gdpr__cta-buttons {
        display: flex;
        flex-direction: column;
    }
}