/* style/gdpr.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-register: #C30808;
  --button-login: #C30808;
  --font-login-register: #FFFF00;
  --background-color: #FFFFFF;
}

.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--background-color); /* Default page background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-gdpr__hero-section {
  position: relative;
  text-align: center;
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  overflow: hidden;
}

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

.page-gdpr__description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--secondary-color);
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-gdpr__light-bg {
  background-color: var(--background-color);
  color: var(--text-dark);
}

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

.page-gdpr__content-area {
  padding: 40px 0;
}

.page-gdpr__section-title {
  font-size: 2.2em;
  margin-bottom: 30px;
  text-align: center;
  color: inherit;
}

.page-gdpr__text-block {
  font-size: 1.05em;
  line-height: 1.8;
  margin-bottom: 25px;
  text-align: justify;
  color: inherit;
}

.page-gdpr__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.page-gdpr__card-text {
  font-size: 1em;
  line-height: 1.7;
}

.page-gdpr__rights-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-gdpr__rights-item {
  background-color: var(--background-color);
  color: var(--text-dark);
  margin-bottom: 20px;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-gdpr__rights-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-gdpr__rights-description {
  font-size: 1em;
  line-height: 1.7;
}

.page-gdpr__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary {
  background-color: var(--button-register);
  color: var(--font-login-register);
  border: 2px solid var(--button-register);
}

.page-gdpr__btn-primary:hover {
  background-color: darken(var(--button-register), 10%);
  border-color: darken(var(--button-register), 10%);
}

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

.page-gdpr__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-gdpr__faq-list {
  margin-top: 40px;
}

.page-gdpr__faq-item {
  background-color: var(--background-color);
  color: var(--text-dark);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--secondary-color);
  color: var(--text-dark);
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: var(--primary-color);
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  transform: rotate(45deg);
}

.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

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

  .page-gdpr__section-title {
    font-size: 1.8em;
  }

  .page-gdpr__grid-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-gdpr__button-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    width: 100%;
  }
}

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

  .page-gdpr__hero-section {
    padding: 60px 0;
  }

  .page-gdpr__main-title {
    font-size: 1.8em;
  }

  .page-gdpr__description {
    font-size: 1em;
  }

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

  .page-gdpr__section-title {
    font-size: 1.6em;
  }

  .page-gdpr__text-block {
    font-size: 0.95em;
  }

  .page-gdpr__card {
    padding: 20px;
  }

  .page-gdpr__card-title {
    font-size: 1.2em;
  }

  .page-gdpr__rights-item {
    padding: 20px 25px;
  }

  .page-gdpr__rights-title {
    font-size: 1.1em;
  }

  .page-gdpr__faq-question {
    padding: 15px 20px;
  }

  .page-gdpr__faq-title {
    font-size: 1.05em;
  }

  .page-gdpr__faq-answer {
    padding: 0 20px;
  }

  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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;
    overflow: hidden !important;
  }

  .page-gdpr__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure hero is not hidden */
  }

  /* Mobile button responsiveness */
  .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;
  }

  .page-gdpr__button-group {
    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__button-group {
    display: flex;
    flex-direction: column;
  }
}