/* style/privacy-policy.css */
:root {
  --sp8-game-main-color: #11A84E;
  --sp8-game-accent-color: #22C768;
  --sp8-game-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --sp8-game-card-bg: #11271B;
  --sp8-game-bg: #08160F;
  --sp8-game-text-main: #F2FFF6;
  --sp8-game-text-secondary: #A7D9B8;
  --sp8-game-border: #2E7A4E;
  --sp8-game-glow: #57E38D;
  --sp8-game-gold: #F2C14E;
  --sp8-game-divider: #1E3A2A;
  --sp8-game-deep-green: #0A4B2C;
}

.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--sp8-game-text-main); /* Default text color for dark background */
  background-color: var(--sp8-game-bg); /* Default background for the main content area */
}

.page-privacy-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  color: var(--sp8-game-text-main);
  overflow: hidden;
}

.page-privacy-policy__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
  display: block;
}

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-privacy-policy__main-title {
  font-size: clamp(2em, 3.5vw, 3em);
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--sp8-game-text-main);
  line-height: 1.2;
}

.page-privacy-policy__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--sp8-game-text-secondary);
}

.page-privacy-policy__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.page-privacy-policy__btn-primary {
  background: var(--sp8-game-button-gradient);
  color: #ffffff;
  border: none;
}

.page-privacy-policy__btn-primary:hover {
  opacity: 0.9;
}

.page-privacy-policy__btn-secondary {
  background: var(--sp8-game-card-bg);
  color: var(--sp8-game-text-main);
  border: 1px solid var(--sp8-game-border);
  margin-left: 15px;
}

.page-privacy-policy__btn-secondary:hover {
  background-color: var(--sp8-game-deep-green);
}

.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff; /* Light background for content area */
  color: #333333; /* Dark text for light background */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
  margin-bottom: 20px;
}

.page-privacy-policy__section-title {
  font-size: 2.2em;
  color: var(--sp8-game-main-color);
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--sp8-game-border);
  padding-bottom: 10px;
}

.page-privacy-policy__sub-title {
  font-size: 1.6em;
  color: var(--sp8-game-main-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-privacy-policy p {
  margin-bottom: 15px;
  color: #333333; /* Dark text for light background */
}

.page-privacy-policy__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #333333; /* Dark text for light background */
}

.page-privacy-policy__list li {
  margin-bottom: 10px;
  color: #333333; /* Dark text for light background */
}

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

.page-privacy-policy__faq-list {
  margin-top: 30px;
}

.page-privacy-policy__faq-item {
  background-color: #f9f9f9;
  border: 1px solid var(--sp8-game-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-privacy-policy__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  background-color: var(--sp8-game-deep-green);
  color: var(--sp8-game-text-main);
  border-bottom: 1px solid var(--sp8-game-border);
  list-style: none;
}

.page-privacy-policy__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
  transform: rotate(45deg);
}

.page-privacy-policy__faq-answer {
  padding: 20px 25px;
  background-color: #ffffff;
  color: #333333;
}

.page-privacy-policy__answer p {
  margin-bottom: 0;
}

.page-privacy-policy__cta-section {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--sp8-game-card-bg);
  color: var(--sp8-game-text-main);
  margin-top: 40px;
  border-radius: 8px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

.page-privacy-policy__cta-title {
  font-size: 2.5em;
  color: var(--sp8-game-gold);
  margin-bottom: 20px;
}

.page-privacy-policy__cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--sp8-game-text-secondary);
}

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

/* Ensure all links within content area are readable */
.page-privacy-policy__content-area a {
  color: var(--sp8-game-main-color);
  text-decoration: underline;
}

.page-privacy-policy__content-area a:hover {
  color: var(--sp8-game-accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-privacy-policy__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-privacy-policy__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-privacy-policy__description {
    font-size: 1em;
  }

  .page-privacy-policy__cta-button {
    width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 15px;
  }

  .page-privacy-policy__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-privacy-policy__content-area,
  .page-privacy-policy__cta-section {
    padding: 20px 15px;
    margin-left: 10px;
    margin-right: 10px;
  }

  .page-privacy-policy__section-title {
    font-size: 1.8em;
    margin-top: 30px;
  }

  .page-privacy-policy__sub-title {
    font-size: 1.4em;
    margin-top: 25px;
  }

  .page-privacy-policy p,
  .page-privacy-policy__list li {
    font-size: 15px;
  }

  /* Mobile image adaptation */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-privacy-policy__hero-image-wrapper,
  .page-privacy-policy__content-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-privacy-policy__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-privacy-policy__faq-answer {
    padding: 15px 20px;
  }

  .page-privacy-policy__cta-title {
    font-size: 2em;
  }

  .page-privacy-policy__cta-description {
    font-size: 1em;
  }
}

/* Body background color is from shared.css (var(--bg-color)), which is #08160F (dark). */
/* Main content area (.page-privacy-policy__content-area) uses a light background (#ffffff) with dark text (#333333). */
/* Hero section (.page-privacy-policy__hero-section) uses a dark background (image with brightness filter) with light text (var(--sp8-game-text-main)). */
/* CTA section (.page-privacy-policy__cta-section) uses a dark background (var(--sp8-game-card-bg)) with light text (var(--sp8-game-text-main)). */
/* All combinations ensure WCAG AA contrast standards. */