/* style/gdpr.css */

:root {
  --nustargame-primary: #F2C14E;
  --nustargame-secondary: #FFD36B;
  --nustargame-bg-dark: #0A0A0A;
  --nustargame-card-bg: #111111;
  --nustargame-text-main: #FFF6D6;
  --nustargame-border: #3A2A12;
  --nustargame-glow: #FFD36B;
  --nustargame-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--nustargame-text-main); /* Main text color for dark body bg */
  background-color: var(--nustargame-bg-dark);
}

.page-gdpr__hero-section {
  display: flex;
  flex-direction: column; /* Default to column for mobile first */
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  padding-bottom: 40px;
  background-color: var(--nustargame-bg-dark);
  position: relative;
  overflow: hidden;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  order: -1; /* Image appears first in DOM order */
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height on larger screens for aesthetic */
}

.page-gdpr__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 20px;
  z-index: 1;
  margin-top: 20px;
}

.page-gdpr__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: bold;
  color: var(--nustargame-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-gdpr__section {
  padding: 60px 20px;
  background-color: var(--nustargame-bg-dark);
}

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

.page-gdpr__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--nustargame-primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-gdpr p {
  margin-bottom: 15px;
  color: var(--nustargame-text-main);
}

.page-gdpr__cta-button {
  display: inline-block;
  background: var(--nustargame-button-gradient);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-gdpr__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

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

.page-gdpr__card {
  background-color: var(--nustargame-card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--nustargame-border);
  color: var(--nustargame-text-main);
  transition: transform 0.3s ease;
}

.page-gdpr__card:hover {
  transform: translateY(-5px);
}

.page-gdpr__card-title {
  font-size: 1.4rem;
  color: var(--nustargame-secondary);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-gdpr__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--nustargame-text-main);
}

.page-gdpr__list li {
  margin-bottom: 10px;
  color: var(--nustargame-text-main);
}

.page-gdpr__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  max-width: 800px;
}

.page-gdpr__dark-section {
  background-color: #1a1a1a; /* Slightly different dark background */
  color: #ffffff; /* Ensure white text on this section */
}

.page-gdpr__dark-section .page-gdpr__section-title {
  color: var(--nustargame-secondary);
}

.page-gdpr__card--dark {
  background-color: #0d0d0d;
  border-color: #2a2a2a;
}

.page-gdpr__cta-button--secondary {
  background: none;
  border: 2px solid var(--nustargame-primary);
  color: var(--nustargame-primary);
  box-shadow: none;
}

.page-gdpr__cta-button--secondary:hover {
  background: var(--nustargame-primary);
  color: #ffffff;
}

.page-gdpr__inline-link {
  color: var(--nustargame-secondary);
  text-decoration: underline;
}

.page-gdpr__inline-link:hover {
  color: var(--nustargame-primary);
}

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

.page-gdpr__faq-item {
  background-color: var(--nustargame-card-bg);
  border: 1px solid var(--nustargame-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--nustargame-text-main);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--nustargame-secondary);
  transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--nustargame-primary);
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  transform: rotate(45deg); /* For '-' effect */
}

.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--nustargame-text-main);
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 1000px !important; /* Use !important as required */
  padding: 15px 20px 20px;
}

.page-gdpr__call-to-action {
  text-align: center;
  padding: 80px 20px;
  background-color: #0d0d0d;
  border-top: 1px solid var(--nustargame-border);
}

.page-gdpr__cta-content {
  max-width: 800px;
}

.page-gdpr__cta-content .page-gdpr__section-title {
  color: var(--nustargame-text-main);
  margin-bottom: 20px;
}

.page-gdpr__cta-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

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

.page-gdpr__btn-primary {
  background: var(--nustargame-button-gradient);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-gdpr__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-gdpr__btn-secondary {
  background: none;
  border: 2px solid var(--nustargame-primary);
  color: var(--nustargame-primary);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: none;
}

.page-gdpr__btn-secondary:hover {
  background: var(--nustargame-primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-gdpr__hero-section {
    flex-direction: row;
    text-align: left;
    padding-top: var(--header-offset, 120px);
    padding-bottom: 60px;
    justify-content: space-around;
    align-items: center;
  }

  .page-gdpr__hero-content {
    text-align: left;
    margin-top: 0;
    padding-right: 40px;
    flex: 1;
  }

  .page-gdpr__hero-image-wrapper {
    order: 1;
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }

  .page-gdpr__hero-image {
    max-width: 80%;
    height: auto;
    max-height: 500px;
  }

  .page-gdpr__card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .page-gdpr__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media */
    padding-bottom: 30px;
  }

  .page-gdpr__main-title {
    font-size: 2rem;
  }

  .page-gdpr__intro-text {
    font-size: 1rem;
  }

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

  .page-gdpr__section-title {
    font-size: 1.5rem;
  }

  .page-gdpr__card-grid {
    grid-template-columns: 1fr;
  }

  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }

  /* Buttons responsive */
  .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__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-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-gdpr__faq-question {
    font-size: 1.1rem;
    padding: 15px;
  }

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

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