/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for the body's dark background */
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #0a0a0a; /* Ensure dark background for hero if not covered by image */
  color: #ffffff;
  text-align: center;
}

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

.page-privacy-policy__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-privacy-policy__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-privacy-policy__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.page-privacy-policy__description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Content Area */
.page-privacy-policy__content-area {
  background: #ffffff; /* Light background for main content for readability */
  color: #333333; /* Dark text for light background */
  padding: 60px 20px;
}

.page-privacy-policy__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-privacy-policy__section-title {
  font-size: clamp(1.8em, 2.5vw, 2.5em);
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 25px;
  color: #26A9E0;
  text-align: center;
}

.page-privacy-policy__subsection-title {
  font-size: clamp(1.4em, 2vw, 2em);
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #000000;
}

.page-privacy-policy p {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-privacy-policy__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

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

.page-privacy-policy a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-privacy-policy a:hover {
  text-decoration: none;
  color: #1e87b3;
}

.page-privacy-policy__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-privacy-policy__faq-list {
  margin-top: 40px;
}

.page-privacy-policy__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: bold;
  font-size: 1.15em;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
  background-color: #e5e5e5;
}

.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: 15px 25px 20px;
  border-top: 1px solid #e0e0e0;
  color: #555555;
  font-size: 1em;
}

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

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

/* Floating buttons */
.page-privacy-policy__floating-buttons-top {
  position: fixed;
  top: var(--header-offset, 122px); /* Adjust based on actual header height */
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 1000;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__floating-buttons-bottom {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column; /* Stack vertically on desktop as well for more space */
  gap: 10px;
  z-index: 1000;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__btn-login,
.page-privacy-policy__btn-register {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap; /* Prevent text wrapping for floating buttons on desktop */
  box-sizing: border-box;
}

.page-privacy-policy__btn-login {
  background: #EA7C07; /* Login color */
  color: #FFFFFF;
}

.page-privacy-policy__btn-login:hover {
  background: #d46c06;
  transform: translateY(-2px);
}

.page-privacy-policy__btn-register {
  background: #26A9E0; /* Main brand color */
  color: #FFFFFF;
}

.page-privacy-policy__btn-register:hover {
  background: #1e87b3;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-privacy-policy {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-privacy-policy__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-privacy-policy__main-title {
    font-size: 2em; /* Smaller on mobile */
  }

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

  .page-privacy-policy__content-area {
    padding: 30px 15px;
  }

  .page-privacy-policy__container,
  .page-privacy-policy__faq-list {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* Floating buttons responsive */
  .page-privacy-policy__floating-buttons-top {
    top: 10px !important; /* Smaller top margin on mobile */
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 30px); /* Adjust width */
    flex-direction: row; /* Keep row for small buttons if space allows */
    justify-content: space-around;
    padding: 8px 10px;
    box-sizing: border-box;
    gap: 8px;
  }

  .page-privacy-policy__floating-buttons-bottom {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 30px); /* Adjust width */
    padding: 8px 10px;
    box-sizing: border-box;
    gap: 8px;
  }

  .page-privacy-policy__btn-login,
  .page-privacy-policy__btn-register {
    flex-grow: 1; /* Make buttons take equal width */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important; /* Allow text to wrap */
    word-wrap: break-word !important;
    padding: 10px 10px; /* Adjust padding for smaller screens */
    font-size: 0.9em;
  }
}