/* style/privacy-policy.css */

/* Custom properties for colors */
:root {
    --winph-primary: #F2C14E;
    --winph-secondary: #FFD36B;
    --winph-card-bg: #111111;
    --winph-background: #0A0A0A;
    --winph-text-main: #FFF6D6;
    --winph-border: #3A2A12;
    --winph-glow: #FFD36B;
    --winph-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

/* Base styles for the privacy policy page */
.page-privacy-policy {
    color: var(--winph-text-main); /* Light text for dark background */
    background-color: var(--winph-background); /* Dark background for the body content area */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    text-align: center;
    box-sizing: border-box;
}

.page-privacy-policy__hero-image {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    height: auto;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and text */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: block; /* Ensure it behaves as a block element */
    min-width: 200px;
    min-height: 200px;
}

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

.page-privacy-policy__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
    color: var(--winph-primary);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-privacy-policy__hero-description {
    font-size: 1.1em;
    color: var(--winph-text-main);
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Content Area */
.page-privacy-policy__content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--winph-card-bg); /* Darker background for content cards/sections */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-top: 40px;
    border: 1px solid var(--winph-border);
}

.page-privacy-policy__container {
    max-width: 100%; /* Ensures container itself doesn't cause overflow */
    padding: 0; /* Remove default padding, use section padding */
    box-sizing: border-box;
}

.page-privacy-policy__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--winph-primary);
    margin-top: 40px;
    margin-bottom: 25px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.page-privacy-policy__subsection-title {
    font-size: clamp(1.4em, 2.8vw, 2.2em);
    color: var(--winph-secondary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.page-privacy-policy__sub-subsection-title {
    font-size: clamp(1.2em, 2.5vw, 1.8em);
    color: var(--winph-text-main);
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 400;
    opacity: 0.9;
}

.page-privacy-policy p {
    margin-bottom: 15px;
    color: var(--winph-text-main);
    opacity: 0.85;
}

.page-privacy-policy ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--winph-text-main);
    opacity: 0.85;
}

.page-privacy-policy li {
    margin-bottom: 10px;
    color: var(--winph-text-main);
    opacity: 0.85;
}

.page-privacy-policy a {
    color: var(--winph-secondary); /* Links use auxiliary color */
    text-decoration: underline;
}

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

.page-privacy-policy__content-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* CTA Buttons */
.page-privacy-policy__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 20px;
    margin-top: 50px;
    justify-content: center;
    width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure text breaks within button */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure button does not overflow */
}

.page-privacy-policy__btn-primary {
    background: var(--winph-button-gradient);
    color: #ffffff; /* White text for gradient button */
    border: none;
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-privacy-policy__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(242, 193, 78, 0.6);
    opacity: 0.9;
}

.page-privacy-policy__btn-secondary {
    background-color: transparent;
    color: var(--winph-primary);
    border: 2px solid var(--winph-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

/* Contact List */
.page-privacy-policy__contact-list {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

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

/* FAQ Section */
.page-privacy-policy__faq-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background-color: var(--winph-card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--winph-border);
}

.page-privacy-policy__faq-item {
    border-bottom: 1px solid var(--winph-border);
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.page-privacy-policy__faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 0;
    font-size: 1.15em;
    font-weight: 500;
    color: var(--winph-text-main);
    transition: color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
    color: var(--winph-primary);
}

.page-privacy-policy__faq-question h3 {
    margin: 0;
    color: inherit; /* Inherit color from parent for hover effect */
    font-size: 1em; /* Adjust h3 size within question */
}

.page-privacy-policy__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--winph-secondary);
    transition: transform 0.3s ease;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
    transform: rotate(45deg); /* Plus to X (minus) */
    color: var(--winph-primary);
}

.page-privacy-policy__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--winph-text-main);
    opacity: 0.8;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }

    .page-privacy-policy__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }

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

    .page-privacy-policy__content-section,
    .page-privacy-policy__faq-section {
        padding: 30px 15px;
        margin-top: 30px;
    }

    .page-privacy-policy__section-title {
        font-size: clamp(1.6em, 4vw, 2.5em);
    }

    .page-privacy-policy__subsection-title {
        font-size: clamp(1.3em, 3vw, 2em);
    }
}

@media (max-width: 768px) {
    .page-privacy-policy {
        font-size: 16px;
        line-height: 1.6;
        padding-bottom: 40px;
    }

    .page-privacy-policy__hero-section {
        padding: 30px 10px;
        padding-top: 10px !important; /* Small top padding for mobile */
    }

    .page-privacy-policy__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

    .page-privacy-policy__hero-description {
        font-size: 0.95em;
    }

    .page-privacy-policy__hero-image,
    .page-privacy-policy__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    
    .page-privacy-policy__content-section,
    .page-privacy-policy__faq-section,
    .page-privacy-policy__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px; /* Add internal padding to content sections */
      padding-right: 15px; /* Add internal padding to content sections */
    }

    .page-privacy-policy__section-title {
        font-size: clamp(1.5em, 5vw, 2em);
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-privacy-policy__subsection-title {
        font-size: clamp(1.2em, 4.5vw, 1.8em);
        margin-top: 25px;
        margin-bottom: 12px;
    }

    .page-privacy-policy__sub-subsection-title {
        font-size: clamp(1.1em, 4vw, 1.6em);
        margin-top: 20px;
        margin-bottom: 8px;
    }

    .page-privacy-policy__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding: 0 15px; /* Add padding to the button container */
    }

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    
    /* FAQ Specific Mobile Adjustments */
    .page-privacy-policy__faq-question {
        font-size: 1em;
        padding: 10px 0;
    }

    .page-privacy-policy__faq-answer {
        padding: 0 10px;
    }
    .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
        padding: 10px !important;
    }
}