/* style/privacy-policy.css */

/* Root variables for consistent theming */
:root {
    --primary-color: #E53935; /* Main brand red */
    --secondary-color: #FF5A4F; /* Accent red/orange */
    --text-main-color: #333333; /* Main text color */
    --card-bg-color: #FFFFFF; /* Card background */
    --page-bg-color: #F5F7FA; /* Page background */
    --border-color: #E0E0E0; /* Border color */
    --button-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}

/* General page styling */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* Default text color for the page */
    background-color: var(--page-bg-color); /* General page background */
}

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

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

/* 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;
    /* body handles padding-top: var(--header-offset); this is for visual spacing */
    padding-top: 10px;
    background-color: var(--card-bg-color); /* A light background for the hero section */
}

.page-privacy-policy__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure it takes full width for max-width to work */
}

.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;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-privacy-policy__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-privacy-policy__main-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
    max-width: 800px; /* Prevent h1 from being too wide */
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__subtitle {
    font-size: 1.1em;
    color: var(--text-main-color);
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for responsive buttons */
    max-width: 600px; /* Limit button group width */
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-privacy-policy__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.page-privacy-policy__btn-secondary {
    background: #ffffff; /* White background for secondary button */
    color: var(--primary-color); /* Primary color text */
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.page-privacy-policy__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

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

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

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

.page-privacy-policy__list li {
    margin-bottom: 10px;
    color: var(--text-main-color);
}

.page-privacy-policy__list li strong {
    color: var(--primary-color);
}

.page-privacy-policy a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
    color: var(--secondary-color);
}

.page-privacy-policy__image-wrapper {
    margin: 30px 0;
    text-align: center;
}

.page-privacy-policy__image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

details.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
}
details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main-color);
}
details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question::-webkit-details-marker {
  display: none;
}
details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question:hover {
  background: #f5f5f5;
}
.page-privacy-policy__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color);
}
.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
  padding: 0 20px 20px;
  background: var(--page-bg-color);
  border-radius: 0 0 5px 5px;
  color: var(--text-main-color);
}
details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer p {
    margin: 0;
}


/* Responsive Design */
@media (max-width: 768px) {
    .page-privacy-policy__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    .page-privacy-policy__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-privacy-policy__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important; /* Force full width */
        width: 100% !important; /* Force full width */
        box-sizing: border-box !important;
        white-space: normal !important; /* Allow text wrapping */
        word-wrap: break-word !important; /* Allow text wrapping */
    }

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

    .page-privacy-policy__subsection-title {
        font-size: 1.2em;
    }

    .page-privacy-policy__list {
        margin-left: 20px;
    }

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

    .page-privacy-policy__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-privacy-policy__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden; /* Prevent horizontal scroll */
    }

    /* FAQ Mobile */
    details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question { padding: 15px; }
    .page-privacy-policy__faq-qtext { font-size: 15px; }
    details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer { padding: 0 15px 15px; }
}

/* Global image styling for content area to prevent small images */
.page-privacy-policy img:not(.page-privacy-policy__hero-image img) {
    min-width: 200px;
    min-height: 200px;
}