/* style/privacy-policy.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-color: #C30808;
  --login-button-color: #C30808;
  --text-on-dark: #FFFFFF;
  --text-on-light: #333333;
  --link-color: #017439;
  --highlight-text-color: #FFFF00; /* For register/login font */
}

.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-on-light);
  background-color: var(--secondary-color); /* Body background is white */
}

.page-privacy-policy__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 0; /* Adjusted for content */
  padding-top: calc(var(--header-offset, 120px) + 80px); /* Ensure space below fixed header */
  background: var(--primary-color);
  color: var(--text-on-dark);
  text-align: center;
  overflow: hidden;
}

.page-privacy-policy__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--text-on-dark);
  font-weight: bold;
}

.page-privacy-policy__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-privacy-policy__content-area {
  padding: 60px 0;
}

.page-privacy-policy__section-title {
  font-size: 2em;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: left;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.page-privacy-policy__sub-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-privacy-policy__text-block p {
  margin-bottom: 15px;
  color: var(--text-on-light);
}

.page-privacy-policy__text-block ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-on-light);
}

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

.page-privacy-policy__text-block a {
  color: var(--link-color);
  text-decoration: underline;
}

.page-privacy-policy__text-block a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.page-privacy-policy__highlight {
  color: var(--highlight-text-color);
  font-weight: bold;
}

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

.page-privacy-policy__btn-primary {
  display: inline-block;
  background-color: var(--register-button-color); /* Custom color for register/login */
  color: var(--highlight-text-color); /* Custom font color */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-privacy-policy__btn-primary:hover {
  background-color: #a30606;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  margin-top: 60px;
  border-top: 2px solid var(--primary-color);
  padding-top: 40px;
}

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

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

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

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--primary-color);
  margin-left: 15px;
}

.page-privacy-policy__faq-answer {
  padding: 0 25px 18px;
  color: var(--text-on-light);
  font-size: 0.95em;
  line-height: 1.6;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-question {
  background-color: #e8e8e8;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
  content: '−';
}

/* Details/Summary default styling reset */
.page-privacy-policy__faq-item > summary {
  list-style: none;
}
.page-privacy-policy__faq-item > summary::-webkit-details-marker {
  display: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-privacy-policy__hero-title {
    font-size: 2.2em;
  }
  .page-privacy-policy__hero-description {
    font-size: 1.1em;
  }
  .page-privacy-policy__section-title {
    font-size: 1.8em;
  }
  .page-privacy-policy__sub-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy__hero-section {
    padding-top: calc(var(--header-offset, 120px) + 60px) !important;
    padding-bottom: 60px;
  }
  .page-privacy-policy__hero-title {
    font-size: 1.8em;
    line-height: 1.3;
  }
  .page-privacy-policy__hero-description {
    font-size: 1em;
    padding: 0 10px;
  }
  .page-privacy-policy__content-area {
    padding: 40px 0;
  }
  .page-privacy-policy__container {
    padding: 0 15px;
  }
  .page-privacy-policy__section-title {
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .page-privacy-policy__sub-title {
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-privacy-policy__text-block p,
  .page-privacy-policy__text-block li {
    font-size: 0.95em;
  }
  .page-privacy-policy__btn-primary {
    padding: 12px 25px;
    font-size: 0.9em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto;
  }

  /* Image responsive rules */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container,
  .page-privacy-policy__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-privacy-policy__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-privacy-policy__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-privacy-policy__hero-title {
    font-size: 1.5em;
  }
  .page-privacy-policy__hero-description {
    font-size: 0.9em;
  }
  .page-privacy-policy__section-title {
    font-size: 1.4em;
  }
  .page-privacy-policy__sub-title {
    font-size: 1.1em;
  }
  .page-privacy-policy__btn-primary {
    padding: 10px 20px;
  }
}