/* style/privacy-policy.css */

/* Root variables if needed, though shared.css should handle primary colors */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --btn-login-color: #EA7C07;
}

.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--bg-light); /* Explicitly set for content area */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light); /* Text color for gradient background */
}

.page-privacy-policy__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-privacy-policy__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-privacy-policy__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-light); /* Ensure text is light on dark gradient */
}

.page-privacy-policy__main-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-privacy-policy__intro-text {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-light);
}

.page-privacy-policy__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--btn-login-color); /* Using the login color for CTA */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
}

.page-privacy-policy__cta-button:hover {
  background: #c76706; /* Slightly darker orange */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Content Area */
.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-privacy-policy__section-container {
  padding: 20px 0;
}

.page-privacy-policy__section-title {
  font-size: 2em;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}

.page-privacy-policy__paragraph {
  margin-bottom: 20px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-privacy-policy__info-collection,
.page-privacy-policy__security-measures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-privacy-policy__info-item,
.page-privacy-policy__security-item {
  background-color: var(--secondary-color);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

.page-privacy-policy__info-subtitle,
.page-privacy-policy__security-subtitle,
.page-privacy-policy__purpose-subtitle {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-privacy-policy__purpose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-privacy-policy__purpose-item {
  background-color: var(--secondary-color);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
}

.page-privacy-policy__purpose-item img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin-top: 20px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-privacy-policy__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-privacy-policy__list-item {
  background-color: var(--secondary-color);
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
}

.page-privacy-policy__list-subtitle {
  font-size: 1.2em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-privacy-policy__user-rights {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-privacy-policy__user-rights img {
  flex-shrink: 0;
  width: 40%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-privacy-policy__user-rights .page-privacy-policy__list {
  flex-grow: 1;
  margin-top: 0;
  margin-bottom: 0;
}

.page-privacy-policy__contact-link,
.page-privacy-policy__faq-contact-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-privacy-policy__contact-link:hover,
.page-privacy-policy__faq-contact-link:hover {
  color: #1e87b4; /* Slightly darker blue */
}

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

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

.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #e0e0e0; /* Add border for better visual separation */
}

.page-privacy-policy__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
  padding: 0 20px; /* Adjusted padding to match question */
  opacity: 0;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 2000px !important; /* Ensure enough space for content */
  padding: 20px !important; /* Consistent padding */
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  border-top: 1px solid #e0e0e0;
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-question {
  border-bottom: none; /* Remove bottom border when active */
  border-radius: 5px 5px 0 0;
}

.page-privacy-policy__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-privacy-policy__faq-question:active {
  background: #eeeeee;
}

.page-privacy-policy__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em; /* Adjusted font size for readability */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Use primary color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  color: var(--text-light); /* Light text on primary color when active */
  background-color: var(--primary-color);
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

.page-privacy-policy__faq-section img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 40px auto 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-privacy-policy__main-title {
    font-size: 2em;
  }
  .page-privacy-policy__section-title {
    font-size: 1.8em;
  }
  .page-privacy-policy__user-rights {
    flex-direction: column;
    align-items: center;
  }
  .page-privacy-policy__user-rights img {
    width: 80%;
    max-width: 600px;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-privacy-policy__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-privacy-policy__hero-image img {
    border-radius: 4px;
  }
  .page-privacy-policy__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-privacy-policy__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-privacy-policy__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    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;
  }
  .page-privacy-policy__section-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-privacy-policy__info-collection,
  .page-privacy-policy__purpose-grid,
  .page-privacy-policy__security-measures {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
  }
  .page-privacy-policy__list-item {
    padding: 15px 20px;
  }
  .page-privacy-policy__user-rights img {
    width: 100%;
    max-width: 100% !important;
    margin-bottom: 20px;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-privacy-policy__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-privacy-policy__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-privacy-policy__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-privacy-policy__faq-answer {
    padding: 0 15px;
  }
  .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    padding: 15px !important;
  }
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-privacy-policy__section-container,
  .page-privacy-policy__card,
  .page-privacy-policy__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-privacy-policy__faq-section img {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}