﻿body {
}


.policy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(37,99,235,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,0.07) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.policy-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
    top: -80px;
    right: -80px;
    pointer-events: none;
}

.policy-hero .container {
    position: relative;
    z-index: 1;
}

.policy-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 20%, #06B6D4 60%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    animation: fadeDown 0.7s ease both;
}

.policy-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    animation: fadeDown 0.7s 0.15s ease both;
}

/* ===== LAYOUT ===== */
.policy-section {
    padding: 70px 20px;
    background: var(--bg-color);
}

.policy-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== SIDEBAR TOC ===== */
.policy-toc {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px 20px;
    box-shadow: var(--shadow-md);
    animation: fadeLeft 0.6s ease both;
}

    .policy-toc h6 {
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: var(--primary-color);
        margin-bottom: 16px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--border-color);
    }

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .toc-list a {
        display: block;
        font-size: 0.82rem;
        color: var(--text-muted);
        text-decoration: none;
        padding: 7px 10px;
        border-radius: 8px;
        transition: var(--transition);
        font-weight: 500;
        line-height: 1.4;
    }

        .toc-list a:hover, .toc-list a.active {
            background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(124,58,237,0.1));
            color: var(--primary-color);
            padding-left: 14px;
        }

/* ===== POLICY BLOCKS ===== */
.policy-content {
    flex: 1;
    min-width: 0;
}

.policy-block {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.5s ease forwards;
}

    .policy-block:nth-child(1) {
        animation-delay: 0.05s;
    }

    .policy-block:nth-child(2) {
        animation-delay: 0.10s;
    }

    .policy-block:nth-child(3) {
        animation-delay: 0.15s;
    }

    .policy-block:nth-child(4) {
        animation-delay: 0.20s;
    }

    .policy-block:nth-child(5) {
        animation-delay: 0.25s;
    }

    .policy-block:nth-child(6) {
        animation-delay: 0.30s;
    }

    .policy-block:nth-child(7) {
        animation-delay: 0.35s;
    }

    .policy-block:nth-child(8) {
        animation-delay: 0.40s;
    }

    .policy-block:nth-child(9) {
        animation-delay: 0.45s;
    }

    .policy-block:nth-child(10) {
        animation-delay: 0.50s;
    }

    .policy-block:nth-child(11) {
        animation-delay: 0.55s;
    }

    .policy-block:nth-child(12) {
        animation-delay: 0.60s;
    }

    .policy-block:nth-child(13) {
        animation-delay: 0.65s;
    }

    .policy-block:nth-child(14) {
        animation-delay: 0.70s;
    }

    .policy-block:nth-child(15) {
        animation-delay: 0.75s;
    }

    .policy-block:nth-child(16) {
        animation-delay: 0.80s;
    }

    .policy-block::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--primary-gradient);
        border-radius: 20px 0 0 20px;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.4s ease;
    }

    .policy-block:hover::before {
        transform: scaleY(1);
    }

    .policy-block:hover {
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-color);
        transform: translateX(4px);
    }

.block-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.block-num {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}

.policy-block h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.policy-block h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 18px 0 10px;
}

.policy-block p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 12px;
}

    .policy-block p:last-child {
        margin-bottom: 0;
    }

.policy-block ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .policy-block ul li {
        font-size: 0.86rem;
        color: var(--text-muted);
        line-height: 1.6;
        padding: 8px 14px 8px 36px;
        background: linear-gradient(135deg, rgba(37,99,235,0.05), rgba(124,58,237,0.05));
        border-radius: 8px;
        border-left: 3px solid var(--primary-color);
        position: relative;
    }

        .policy-block ul li::before {
            content: '✦';
            position: absolute;
            left: 12px;
            color: var(--primary-color);
            font-size: 0.6rem;
            top: 50%;
            transform: translateY(-50%);
        }

/* ===== CONTACT BLOCK ===== */
.contact-block {
    background: var(--primary-gradient);
    border-radius: 16px;
    padding: 24px 28px;
    color: white;
    margin-top: 16px;
}

    .contact-block strong {
        display: block;
        font-size: 1.05rem;
        margin-bottom: 12px;
    }

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
}

    .contact-item i {
        width: 28px;
        height: 28px;
        background: rgba(255,255,255,0.15);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        flex-shrink: 0;
    }

/* ===== UPDATED BADGE ===== */
.updated-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(124,58,237,0.1));
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 30px;
    margin-top: 10px;
}

/* ===== ANIMATIONS ===== */
@@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVE ===== */
@@media (max-width: 900px) {
    .policy-layout {
        flex-direction: column;
    }

    .policy-toc {
        width: 100%;
        position: static;
    }

    .toc-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

        .toc-list a {
            padding: 5px 12px;
        }
}

@@media (max-width: 576px) {
    .policy-block {
        padding: 22px 18px;
    }
}
