/* ==========================================================================
   POLICY & TERMS PAGE STYLESHEET - Minimalist, High Readability
   ========================================================================== */

.policy-page-main {
    background-color: #f8fafc;
    min-height: 85vh;
    color: #334155;
}

/* 1. Hero Section */
.policy-hero {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 32px 0 42px;
}
.policy-hero-content {
    max-width: 820px;
    margin: 18px auto 0;
    text-align: center;
}
.policy-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 5px 14px;
    border-radius: 4px;
    margin-bottom: 14px;
    border: 1px solid #e2e8f0;
}
.policy-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}
.policy-desc {
    font-size: 1rem;
    line-height: 1.65;
    color: #64748b;
    margin-bottom: 18px;
}
.policy-updated-badge {
    display: inline-block;
    font-size: 0.82rem;
    color: #94a3b8;
    background: #f8fafc;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

/* 2. Content & Sidebar Layout */
.policy-content-section {
    padding: 50px 0 70px;
}
.policy-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: flex-start;
}

/* Sidebar */
.policy-sidebar {
    position: sticky;
    top: 90px;
}
.policy-nav-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 22px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.policy-sidebar-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.policy-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.p-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}
.p-nav-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.p-nav-link.active {
    background: #f0f9ff;
    color: #0284c7;
    font-weight: 700;
}
.p-nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: background 0.2s ease;
}
.p-nav-link.active .p-nav-dot {
    background: #0080e1;
}

.sidebar-help-box {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}
.sidebar-help-box h4 {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
}
.sidebar-help-box p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0 0 8px;
    line-height: 1.45;
}
.help-link {
    display: block;
    font-size: 0.84rem;
    color: #0080e1;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 4px;
}
.help-link:hover {
    text-decoration: underline;
}

/* Policy Article Content */
.policy-body-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px 42px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.policy-tab-pane {
    display: none;
}
.policy-tab-pane.active {
    display: block;
    animation: fadeInPolicy 0.25s ease forwards;
}
@keyframes fadeInPolicy {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.policy-body-content h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 28px 0 12px;
    line-height: 1.4;
}
.policy-body-content h2:first-child {
    margin-top: 0;
}
.policy-body-content p {
    font-size: 0.96rem;
    line-height: 1.75;
    color: #334155;
    margin: 0 0 14px;
}
.policy-body-content ul {
    list-style: disc;
    padding-left: 24px;
    margin: 0 0 20px;
}
.policy-body-content ul li {
    font-size: 0.94rem;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 8px;
}
.policy-body-content strong {
    color: #0f172a;
}

/* 3. Responsive */
@media (max-width: 900px) {
    .policy-layout-grid {
        grid-template-columns: 1fr;
    }
    .policy-sidebar {
        position: static;
    }
    .policy-menu {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .policy-body-content {
        padding: 28px 20px;
    }
}
@media (max-width: 640px) {
    .policy-title {
        font-size: 1.75rem;
    }
    .p-nav-link {
        width: 100%;
    }
}
