/* style/privacy-policy.css */

/* Custom properties for colors */
:root {
    --primary-color: #017439; /* Main brand color (Green) */
    --secondary-color: #FFFFFF; /* White */
    --register-login-btn-bg: #C30808; /* Red */
    --register-login-btn-text: #FFFF00; /* Yellow */
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
    --background-light-grey: #f9f9f9;
}

.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(--secondary-color); /* Body background is white */
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Hero Banner Section */
.page-privacy-policy__hero-banner {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    padding-bottom: 60px;
    background-color: var(--primary-color); /* Use primary color for hero background */
    color: var(--text-light); /* White text on dark green background */
    text-align: center;
    overflow: hidden;
}

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

.page-privacy-policy__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light); /* White text */
}

.page-privacy-policy__intro-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light); /* White text */
}

.page-privacy-policy__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-privacy-policy__btn-primary {
    background-color: var(--register-login-btn-bg); /* Red for register */
    color: var(--register-login-btn-text); /* Yellow text for register */
    border: 2px solid var(--register-login-btn-bg);
}

.page-privacy-policy__btn-primary:hover {
    background-color: #a30707; /* Darker red on hover */
    border-color: #a30707;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__btn-secondary {
    background-color: transparent;
    color: var(--register-login-btn-text); /* Yellow text for login */
    border: 2px solid var(--register-login-btn-text); /* Yellow border */
}

.page-privacy-policy__btn-secondary:hover {
    background-color: var(--register-login-btn-text); /* Yellow background on hover */
    color: var(--register-login-btn-bg); /* Red text on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Content Sections */
.page-privacy-policy__content-section {
    padding: 60px 0;
    background-color: var(--secondary-color); /* White background for content */
}

.page-privacy-policy__section-title {
    font-size: 2.2em;
    color: var(--primary-color); /* Primary color for main titles */
    margin-bottom: 25px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
}

.page-privacy-policy__sub-title {
    font-size: 1.6em;
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-privacy-policy__text-block {
    margin-bottom: 20px;
    font-size: 1.05em;
    color: var(--text-dark);
}

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

.page-privacy-policy__text-block a:hover {
    color: #005a2e; /* Darker green on hover */
}

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

.page-privacy-policy__list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-privacy-policy__keyword {
    font-weight: bold;
    color: var(--primary-color);
}

/* Images */
.page-privacy-policy__image-full {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.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.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--background-light-grey);
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-privacy-policy__faq-question:hover {
  background: var(--background-light-grey);
  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;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  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 icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  color: var(--text-dark); /* Darker color when active */
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__main-title {
        font-size: 2.5em;
    }
    .page-privacy-policy__section-title {
        font-size: 2em;
    }
    .page-privacy-policy__sub-title {
        font-size: 1.4em;
    }
    .page-privacy-policy__text-block,
    .page-privacy-policy__list li,
    .page-privacy-policy__faq-question h3 {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__hero-banner {
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
        padding-bottom: 40px;
    }

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

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

    .page-privacy-policy__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 25px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0;
        margin-right: 0;
    }

    .page-privacy-policy__content-section {
        padding: 40px 0;
    }

    .page-privacy-policy__container {
        padding: 0 15px;
    }

    .page-privacy-policy__section-title {
        font-size: 1.8em;
    }

    .page-privacy-policy__sub-title {
        font-size: 1.3em;
    }

    /* Images */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size on mobile too */
        min-height: 200px !important;
    }
    .page-privacy-policy__section,
    .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;
    }

    /* FAQ */
    .page-privacy-policy__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-privacy-policy__faq-question h3 {
        font-size: 15px;
        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;
    }
}