/* Privacy Policy Page Stylesheet - Joelx Orbit */
:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --primary-glow: rgba(99, 102, 241, 0.2);
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-color: #0f172a;
    --text-muted: #475569;
    --text-subtle: #64748b;
    --border-color: #e2e8f0;
    --border-light: rgba(226, 232, 240, 0.8);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.08);
    --shadow-accent: 0 10px 25px -5px rgba(99, 102, 241, 0.25);
    --success: #10b981;
    --warning: #f59e0b;
}

[data-theme="dark"] {
    --bg-color: #0b0f19;
    --card-bg: rgba(17, 24, 39, 0.85);
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    --border-color: #1e293b;
    --border-light: rgba(30, 41, 59, 0.7);
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Atmosphere */
.policy-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.18;
}

.glow-orb-1 {
    top: -10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #6366f1, #a855f7);
}

.glow-orb-2 {
    bottom: 20%;
    left: -5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #3b82f6, #06b6d4);
}

/* Header */
.header {
    width: 100%;
    padding: 0.75rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .header {
    background: rgba(11, 15, 25, 0.85);
}

.header .logo {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header .logo img {
    height: 38px;
    width: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.08);
}

.logo-text-black {
    color: var(--text-color);
}

.logo-text-gradient {
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.dropdown:hover .dropdown-btn {
    color: var(--primary);
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--card-bg);
    min-width: 230px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    z-index: 100;
    top: 100%;
    right: 0;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    animation: dropdownFade 0.2s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-muted);
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Main Layout */
.main-wrapper {
    position: relative;
    z-index: 2;
    padding-top: 6.5rem;
    flex: 1;
}

/* Breadcrumbs */
.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 0 2rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-subtle);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    opacity: 0.5;
    font-size: 0.75rem;
}

.breadcrumb-current {
    color: var(--primary);
    font-weight: 600;
}

/* Hero Section */
.policy-hero {
    max-width: 1200px;
    margin: 1.5rem auto 3rem auto;
    padding: 0 2rem;
}

.hero-glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3.5rem 3rem;
    box-shadow: var(--shadow-subtle);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.hero-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), #a855f7);
}

.policy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.policy-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-color) 40%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.policy-hero p.lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 840px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.meta-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-subtle);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    color: var(--primary);
}

.meta-item strong {
    color: var(--text-color);
}

/* Highlights Grid (Key Guarantees) */
.highlights-container {
    max-width: 1200px;
    margin: 0 auto 3.5rem auto;
    padding: 0 2rem;
}

.highlights-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.highlights-title i {
    color: var(--primary);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.highlight-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(99, 102, 241, 0.4);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    transition: background 0.3s, color 0.3s;
}

.highlight-card:hover .highlight-icon {
    background: var(--primary);
    color: #ffffff;
}

.highlight-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.highlight-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Policy Content Layout */
.policy-body-layout {
    max-width: 1200px;
    margin: 0 auto 5rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sidebar Table of Contents */
.policy-sidebar {
    position: sticky;
    top: 7rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-subtle);
    backdrop-filter: blur(12px);
    max-height: calc(100vh - 8.5rem);
    overflow-y: auto;
}

.sidebar-title {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-subtle);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.toc-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.toc-link:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.06);
    padding-left: 0.9rem;
}

.toc-link.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    font-weight: 600;
    border-left: 2px solid var(--primary);
}

/* Main Policy Article */
.policy-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.policy-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-subtle);
    transition: border-color 0.2s ease;
    scroll-margin-top: 7rem;
}

.policy-section:target {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.section-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.policy-section p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.policy-section p:last-child {
    margin-bottom: 0;
}

.policy-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 1.5rem 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.policy-section h3 i {
    color: var(--primary);
    font-size: 1rem;
}

/* Feature Breakdown Cards */
.feature-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.breakdown-card {
    background: rgba(99, 102, 241, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.breakdown-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breakdown-card h4 i {
    color: var(--primary);
}

.breakdown-card ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.breakdown-card li {
    font-size: 0.92rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.5;
}

.breakdown-card li i {
    color: var(--success);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Callout Box */
.policy-callout {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.policy-callout i {
    font-size: 1.3rem;
    color: var(--primary);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.callout-body h4 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-color);
}

.callout-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 !important;
}

/* Structured List */
.policy-list {
    list-style: none;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.policy-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.policy-list li i {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

/* Contact Card */
.contact-cta-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    box-shadow: var(--shadow-accent);
}

.contact-cta-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-cta-text p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.contact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-chip:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-contact-action {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.98rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-contact-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

/* Floating Return Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-hover);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-4px);
    border-color: var(--primary);
}

/* Footer Section */
.footer {
    margin-top: auto;
    padding: 3rem 2rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.footer-socials a {
    color: var(--text-muted);
    transition: color 0.2s, transform 0.2s;
    display: inline-flex;
}

.footer-socials a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-contact {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 1.75rem auto 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-left {
    color: var(--text-muted);
    text-align: left;
}

.footer-bottom-left a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.footer-policy-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-policy-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
    transform: translateY(-1px);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .header {
        padding: 0.65rem 1.5rem;
    }

    .policy-body-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .policy-sidebar {
        display: none; /* Hide sticky sidebar on tablet/mobile for fluid reading */
    }

    .contact-cta-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-breakdown {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        align-items: flex-start;
        gap: 1.25rem;
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        background: transparent;
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .policy-hero h1 {
        font-size: 2.2rem;
    }

    .hero-glass-card {
        padding: 2.5rem 1.5rem;
    }

    .policy-section {
        padding: 1.75rem 1.25rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-bottom-left {
        text-align: center;
    }

    .footer-bottom-right {
        margin-left: 0;
        justify-content: center;
    }
}
