/* style/privacy-policy.css */

:root {
  --febet-green-main: #11A84E;
  --febet-green-secondary: #22C768;
  --febet-bg-dark: #08160F;
  --febet-card-bg: #11271B;
  --febet-text-main: #F2FFF6;
  --febet-text-secondary: #A7D9B8;
  --febet-border: #2E7A4E;
  --febet-glow: #57E38D;
  --febet-gold: #F2C14E;
  --febet-divider: #1E3A2A;
  --febet-deep-green: #0A4B2C;
  --febet-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-privacy-policy {
  background-color: var(--febet-bg-dark);
  color: var(--febet-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure space above footer */
}

.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0;
  background-color: var(--febet-deep-green);
  overflow: hidden;
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-privacy-policy__hero-content {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: center;
  padding: 0 20px;
  z-index: 1;
}

.page-privacy-policy__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: var(--febet-gold);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-privacy-policy__description {
  font-size: clamp(1em, 1.2vw, 1.2em);
  color: var(--febet-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-privacy-policy__btn-primary {
  background: var(--febet-btn-gradient);
  color: var(--febet-text-main);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
}

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

.page-privacy-policy__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--febet-card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  margin-top: -40px; /* Overlap with hero slightly for visual flow */
  position: relative;
  z-index: 2;
}

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

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

.page-privacy-policy p {
  margin-bottom: 15px;
  color: var(--febet-text-secondary);
}

.page-privacy-policy a {
  color: var(--febet-green-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
  color: var(--febet-gold);
  text-decoration: underline;
}

.page-privacy-policy__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--febet-text-secondary);
}

.page-privacy-policy__list li {
  margin-bottom: 10px;
}

.page-privacy-policy__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* FAQ Section */
.page-privacy-policy__faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--febet-divider);
  padding-top: 20px;
}

.page-privacy-policy__faq-item {
  background-color: var(--febet-bg-dark);
  border: 1px solid var(--febet-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--febet-text-main);
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  background-color: var(--febet-deep-green);
  border-bottom: 1px solid transparent; /* default */
  transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-question {
  background-color: var(--febet-green-main);
  border-bottom-color: var(--febet-divider);
}

.page-privacy-policy__faq-qtext {
  flex-grow: 1;
  color: var(--febet-text-main);
}

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--febet-gold);
  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: 15px 20px;
  font-size: 0.95em;
  color: var(--febet-text-secondary);
  background-color: var(--febet-bg-dark);
}

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

/* Details element specific styling for cross-browser compatibility */
.page-privacy-policy__faq-item > summary {
  list-style: none;
}
.page-privacy-policy__faq-item > summary::-webkit-details-marker {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-privacy-policy__hero-section {
    padding: 10px 0 30px 0;
  }

  .page-privacy-policy__hero-content {
    margin-top: 20px;
    padding: 0 15px;
  }

  .page-privacy-policy__main-title {
    font-size: 2em; /* Adjusted for smaller screens */
  }

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

  .page-privacy-policy__btn-primary {
    padding: 10px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-privacy-policy__content-area {
    padding: 20px 15px;
    margin-top: -20px;
  }

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

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

  .page-privacy-policy p,
  .page-privacy-policy__list li {
    font-size: 0.95em;
  }

  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure minimum size */
    min-height: 200px !important;
  }
  
  .page-privacy-policy__image-content {
    margin: 20px 0;
  }

  .page-privacy-policy__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }

  .page-privacy-policy__faq-answer {
    padding: 12px 15px;
    font-size: 0.9em;
  }

  /* Ensure all containers are responsive */
  .page-privacy-policy__hero-section,
  .page-privacy-policy__content-area,
  .page-privacy-policy__faq-list,
  .page-privacy-policy__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Add padding to content area for mobile to prevent edge-to-edge content */
  .page-privacy-policy__content-area {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Specific overrides for button containers if present */
  .page-privacy-policy__cta-buttons,
  .page-privacy-policy__button-group,
  .page-privacy-policy__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;
  }
}

/* Color Contrast Check */
/* Ensure text-main and text-secondary have good contrast on card-bg and bg-dark */
/* febet-text-main (#F2FFF6) on febet-card-bg (#11271B) -> Contrast 13.9:1 (AA) */
/* febet-text-secondary (#A7D9B8) on febet-card-bg (#11271B) -> Contrast 5.9:1 (AA) */
/* febet-text-main (#F2FFF6) on febet-bg-dark (#08160F) -> Contrast 15.6:1 (AA) */
/* febet-text-secondary (#A7D9B8) on febet-bg-dark (#08160F) -> Contrast 6.7:1 (AA) */
/* febet-btn-primary (gradient) with febet-text-main (#F2FFF6) -> Green gradient is bright enough for white text (AA) */