/* style/gdpr.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color: #333333;
    --dark-text-color: #000000;
    --light-text-color: #ffffff;
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    /* WCAG AA contrast for #C30808 (dark red) requires dark text. 
       #FFFF00 (yellow) specified in prompt fails contrast (2.05:1). 
       Using #000000 (black) for text on #C30808 (5.43:1) to meet WCAG AA. */
    --button-register-text: #000000;
    --button-login-text: #000000;
    --background-color: #FFFFFF;
}

.page-gdpr {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #f8f8f8; /* Light background for contrast with text */
    overflow: hidden; /* Prevent content overflow */
}

.page-gdpr__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-gdpr__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

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

.page-gdpr__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.page-gdpr__main-title {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

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

.page-gdpr__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    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-register-bg);
    color: var(--button-register-text);
    border: 2px solid var(--button-register-bg);
}

.page-gdpr__btn-primary:hover {
    background: darken(var(--button-register-bg), 10%); /* Placeholder for darker shade */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-gdpr__btn-secondary {
    background: var(--button-login-bg);
    color: var(--button-login-text);
    border: 2px solid var(--button-login-bg);
}

.page-gdpr__btn-secondary:hover {
    background: darken(var(--button-login-bg), 10%); /* Placeholder for darker shade */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-gdpr__section-spacing {
    margin-bottom: 60px;
}

.page-gdpr__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-gdpr__content-area p {
    margin-bottom: 1em;
    font-size: 1.1em;
    color: var(--text-color);
}

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

.page-gdpr__card {
    background: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

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

.page-gdpr__list {
    list-style: disc inside;
    padding-left: 0;
    color: var(--text-color);
    font-size: 1.1em;
}

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

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

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

.page-gdpr__dark-section p,
.page-gdpr__dark-section li {
    color: var(--light-text-color);
}

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

.page-gdpr__feature-item {
    background: var(--secondary-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-gdpr__feature-item img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
    max-width: 100%;
    display: block;
}

.page-gdpr__feature-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-gdpr__bullet-list {
    list-style: none;
    padding-left: 0;
}

.page-gdpr__bullet-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-gdpr__bullet-list li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-gdpr__dark-section .page-gdpr__bullet-list li::before {
    color: var(--secondary-color);
}

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

.page-gdpr__right-item {
    background: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

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

.page-gdpr__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

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

.page-gdpr__image-text-block p {
    flex: 1;
    font-size: 1.15em;
}

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

.page-gdpr__image-text-block--reverse img {
    order: 2;
}

.page-gdpr__image-text-block--reverse p {
    order: 1;
}

.page-gdpr__inline-link {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-gdpr__inline-link:hover {
    color: darken(var(--primary-color), 10%); /* Placeholder for darker shade */
}

.page-gdpr__dark-section .page-gdpr__inline-link {
    color: var(--secondary-color);
}

.page-gdpr__dark-section .page-gdpr__inline-link:hover {
    color: darken(var(--secondary-color), 10%); /* Placeholder for darker shade */
}

.page-gdpr__contact-section {
    text-align: center;
}

.page-gdpr__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-gdpr__contact-list li {
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* FAQ styles */
.page-gdpr__faq-container {
  max-width: 900px;
  margin: 40px auto;
}

.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: 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;
  color: var(--text-color);
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 2000px !important; /* Ensure enough space for content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.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;
}

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

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

.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 from blocking click event */
  color: var(--text-color);
}

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

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Change to X for active state */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: 2.5em;
    }
    .page-gdpr__description {
        font-size: 1em;
    }
    .page-gdpr__section-title {
        font-size: 2em;
    }
    .page-gdpr__image-text-block {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .page-gdpr__image-text-block img {
        width: 80%;
        margin-bottom: 20px;
    }
    .page-gdpr__image-text-block--reverse {
        flex-direction: column;
    }
    .page-gdpr__image-text-block--reverse img {
        order: 1;
    }
    .page-gdpr__image-text-block--reverse p {
        order: 2;
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr__hero-image img {
        border-radius: 4px;
    }
    .page-gdpr__main-title {
        font-size: 2em;
    }
    .page-gdpr__description {
        font-size: 0.95em;
    }
    .page-gdpr__cta-group {
        flex-direction: column;
        gap: 10px;
    }
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-gdpr__content-area {
        padding: 30px 15px;
    }
    .page-gdpr__section-spacing {
        margin-bottom: 40px;
    }
    .page-gdpr__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-gdpr__content-area p,
    .page-gdpr__list li,
    .page-gdpr__bullet-list li {
        font-size: 1em;
    }
    .page-gdpr__card-grid,
    .page-gdpr__feature-list,
    .page-gdpr__rights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-gdpr__card,
    .page-gdpr__feature-item,
    .page-gdpr__right-item {
        padding: 20px;
    }
    .page-gdpr__card-title,
    .page-gdpr__feature-title,
    .page-gdpr__right-title {
        font-size: 1.3em;
    }
    .page-gdpr__image-text-block img {
        width: 100%;
    }
    .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;
    }
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-container,
    .page-gdpr__cta-group,
    .page-gdpr__faq-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr__dark-section {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Fallback for darken() if not using a preprocessor */
.page-gdpr__btn-primary:hover {
    background: #a30606; /* Slightly darker red */
}
.page-gdpr__btn-secondary:hover {
    background: #a30606; /* Slightly darker red */
}