/* MinerCore Policy Pages Unified Light Theme & Layout System */

body.policy-page-body {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

.policy-page-hero {
    position: relative;
    padding: 60px 0 50px;
    background: linear-gradient(135deg, #071b31 0%, #0a3559 64%, #0c5963 100%) !important;
    border-bottom: 1px solid rgba(85, 223, 208, 0.2);
    color: #ffffff;
}

.policy-page-hero .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(85, 223, 208, 0.12);
    border: 1px solid rgba(85, 223, 208, 0.3);
    color: #55dfd0;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.policy-page-hero h1 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: clamp(1.8rem, 4vw, 2.7rem) !important;
    font-weight: 900 !important;
    margin: 0 0 12px 0 !important;
    letter-spacing: -0.02em;
}

.policy-page-hero p {
    color: #cbd5e1 !important;
    font-size: 1.05rem;
    max-width: 780px;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.policy-meta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: #94a3b8;
}

.policy-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 6px;
    color: #e2e8f0;
}

.policy-layout-container {
    padding: 40px 0 70px;
}

.policy-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: start;
}

@media (max-width: 900px) {
    .policy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .policy-sidebar {
        position: static;
        top: auto;
        width: 100%;
        max-width: 100%;
        padding: 14px;
        overflow: hidden;
    }

    .policy-sidebar-title {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .policy-nav-list {
        display: flex;
        gap: 8px;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0 5px;
        scrollbar-width: thin;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .policy-nav-list li {
        flex: 0 0 auto;
        margin: 0;
    }

    .policy-nav-list a,
    .policy-nav-list a:hover,
    .policy-nav-list a.active {
        padding: 8px 11px;
        white-space: nowrap;
    }
}

.policy-sidebar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 90px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.policy-sidebar-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.policy-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.policy-nav-list li {
    margin-bottom: 6px;
}

.policy-nav-list a {
    display: block;
    padding: 8px 12px;
    color: #475569;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.policy-nav-list a:hover,
.policy-nav-list a.active {
    background: #f0fdfa;
    color: #0d9488;
    font-weight: 700;
    padding-left: 16px;
}

.policy-article-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

@media (max-width: 600px) {
    .policy-page-hero {
        padding: 38px 14px 34px;
    }

    .policy-layout-container {
        padding: 22px 14px 48px;
    }

    .policy-article-card {
        padding: 22px 16px;
    }

    .policy-sidebar {
        border-radius: 10px;
        padding: 12px;
    }

    .policy-sidebar-title {
        font-size: 0.74rem;
    }
}

.policy-section-block {
    margin-bottom: 36px;
    scroll-margin-top: 100px;
}

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

.policy-section-block h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
    padding-left: 14px;
    border-left: 4px solid #0d9488;
    line-height: 1.3;
}

.policy-section-block h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: #1e293b;
    margin: 20px 0 10px 0;
}

.policy-section-block p {
    color: #334155;
    font-size: 0.96rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.policy-section-block ul,
.policy-section-block ol {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.policy-section-block li {
    margin-bottom: 8px;
}

.policy-callout {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #0284c7;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.policy-callout.warning {
    background: #fffbeb;
    border-color: #fde68a;
    border-left-color: #d97706;
}

.policy-callout.security {
    background: #f0fdf4;
    border-color: #bbf7d0;
    border-left-color: #16a34a;
}

.policy-callout-title {
    font-weight: 800;
    font-size: 0.9rem;
    color: #0f172a;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.policy-callout p {
    margin: 0;
    font-size: 0.9rem;
}

.policy-contact-box {
    background: linear-gradient(135deg, #071b31 0%, #0f2b48 100%);
    border-radius: 12px;
    padding: 28px;
    color: #ffffff;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.policy-contact-box h4 {
    margin: 0 0 6px 0;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
}

.policy-contact-box p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.policy-contact-box a.btn-contact {
    background: #55dfd0;
    color: #071b31;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-block;
}

.policy-contact-box a.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(85, 223, 208, 0.4);
}

/* Must remain after the desktop sidebar rule so it wins in the cascade. */
@media (max-width: 900px) {
    .policy-sidebar {
        position: static;
        top: auto;
    }
}
