/* ============================
   PRIVACY POLICY PAGE STYLES
   ============================ */

/* ---------- Page Header ---------- */
.page-header {
    padding: 120px 0 60px;
    background: var(--bg-dark);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-header-grid {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.page-header-text-col {
    max-width: 1200px;
    text-align: center;
}

.page-header-heading {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.page-header-heading span {
    color: var(--accent);
}

.page-header-subtext {
    color: #999;
    font-size: 18px;
    margin-bottom: 8px;
}

.page-header-description {
    color: #aaa;
    font-size: 17px;
    line-height: 1.6;
    max-width: 1200px;
    margin: 16px auto 0;
}

/* ---------- Privacy Content Layout ---------- */
.privacy-content-section {
    padding: 60px 0 100px;
    background: var(--bg-primary);
}

.privacy-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: start;
}

/* ---------- Table of Contents ---------- */
.privacy-toc {
    position: sticky;
    top: 100px;
}

.toc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-card);
}

.toc-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 12px;
}

.toc-list li:last-child {
    margin-bottom: 0;
}

.toc-list a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
    display: block;
    padding: 4px 0;
}

.toc-list a:hover {
    color: var(--accent);
}

/* ---------- Main Content ---------- */
.privacy-main {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 50px 60px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.privacy-section {
    margin-bottom: 48px;
}

.privacy-section:last-child {
    margin-bottom: 0;
}

.privacy-section h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.privacy-section h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 28px;
    margin-bottom: 12px;
}

.privacy-section p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.privacy-section ul {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    padding-left: 24px;
    margin-bottom: 16px;
}

.privacy-section ul li {
    margin-bottom: 8px;
}

.privacy-section ul li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ---------- Cookie Types ---------- */
.cookie-types {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.cookie-type {
    background: var(--bg-secondary);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.cookie-type p {
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 0;
}

.cookie-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cookie-badge.essential {
    background: rgba(255, 90, 0, 0.12);
    color: var(--accent);
}

.cookie-badge.analytics {
    background: rgba(0, 150, 255, 0.12);
    color: #4CAF50;
}

.cookie-badge.marketing {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
}

/* ---------- Contact Details Box ---------- */
.contact-details-box {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-top: 16px;
    border: 1px solid var(--border-color);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-detail:last-child {
    border-bottom: none;
}

.contact-detail i {
    color: var(--accent);
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.contact-detail a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-detail a:hover {
    color: var(--accent);
}

.contact-detail span {
    color: var(--text-secondary);
}

/* ---------- Footer Note ---------- */
.privacy-footer-note {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.privacy-footer-note p {
    color: var(--text-light);
    font-size: 14px;
}

/* ---------- Mobile Navigation Override ---------- */
/* Ensures mobile nav works with homepage.css styles */
.nav-menu.active {
    right: 0;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

/* ---------- Responsive Design ---------- */
@media (max-width: 1024px) {
    .privacy-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .privacy-toc {
        position: static;
    }

    .toc-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 40px;
    }

    .page-header-heading {
        font-size: 32px;
    }

    .privacy-main {
        padding: 30px 20px;
    }

    .privacy-section h2 {
        font-size: 22px;
    }

    .cookie-types {
        grid-template-columns: 1fr;
    }

    .contact-details-box {
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .page-header-heading {
        font-size: 26px;
    }

    .page-header-description {
        font-size: 15px;
    }

    .privacy-main {
        padding: 20px 16px;
    }

    .privacy-section h2 {
        font-size: 20px;
    }

    .privacy-section p,
    .privacy-section ul {
        font-size: 15px;
    }

    .contact-detail {
        flex-wrap: wrap;
    }
}