/* ===== ENHANCED POLICY PAGES CSS ===== */

/* CSS Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 9999;
    transition: width 0.2s ease;
}

/* Enhanced Hero Section */
.hero-section-policy {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section-policy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-info h1 {
    font-size: 56px;
    font-weight: 900;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInDown 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Content Layout with Sidebar */
.policy-content-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.policy-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Table of Contents Sidebar */
.policy-toc {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid #e8ecef;
}

.policy-toc h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-toc h3 i {
    color: var(--primary-color);
}

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

.toc-list li {
    margin-bottom: 12px;
}

.toc-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.toc-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary-color);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.toc-list a:hover,
.toc-list a.active {
    background: rgba(123, 104, 238, 0.08);
    color: var(--primary-color);
    padding-left: 16px;
}

.toc-list a:hover::before,
.toc-list a.active::before {
    height: 70%;
}

.toc-list a i {
    font-size: 12px;
    opacity: 0.6;
}

/* Enhanced Policy Card */
.policy-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--card-shadow);
    border: 1px solid #e8ecef;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Policy Intro */
.policy-intro {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border-left: 4px solid var(--primary-color);
    padding: 24px 28px;
    border-radius: 12px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.policy-intro::before {
    content: '\f05a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: rgba(123, 104, 238, 0.1);
}

.policy-intro p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Policy Sections */
.policy-section {
    margin-bottom: 50px;
    scroll-margin-top: 120px;
}

.policy-section h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 3px solid #f0f0f0;
    position: relative;
}

.policy-section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.policy-section h2 .icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(123, 104, 238, 0.3);
}

.policy-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 30px 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.policy-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.policy-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 20px;
}

.policy-section ul,
.policy-section ol {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.policy-section ul li,
.policy-section ol li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
}

.policy-section ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    font-size: 14px;
    width: 22px;
    height: 22px;
    background: rgba(123, 104, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.policy-section ol {
    counter-reset: policy-counter;
}

.policy-section ol li::before {
    counter-increment: policy-counter;
    content: counter(policy-counter);
    position: absolute;
    left: 0;
    top: 0;
    color: white;
    font-weight: 700;
    font-size: 13px;
    width: 24px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Warning & Info Boxes */
.warning-box,
.info-box {
    padding: 20px 24px;
    border-radius: 12px;
    margin: 24px 0;
    position: relative;
    overflow: hidden;
}

.warning-box {
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.08), rgba(240, 147, 251, 0.08));
    border-left: 4px solid #f5576c;
}

.warning-box::before {
    content: '\f071';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: rgba(245, 87, 108, 0.15);
}

.info-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.08));
    border-left: 4px solid #3b82f6;
}

.info-box::before {
    content: '\f05a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: rgba(59, 130, 246, 0.15);
}

.warning-box p,
.info-box p {
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Contact CTA */
.policy-contact-cta {
    margin-top: 60px;
    padding: 40px;
    background: var(--primary-gradient);
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.policy-contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.policy-contact-cta h3 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.policy-contact-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.policy-contact-cta .btn-contact {
    background: white;
    color: var(--primary-color);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.policy-contact-cta .btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .policy-container {
        grid-template-columns: 1fr;
    }

    .policy-toc {
        position: static;
        margin-bottom: 30px;
    }

    .policy-card {
        padding: 30px 24px;
    }

    .hero-info h1 {
        font-size: 40px;
    }
}

@media (max-width: 576px) {
    .hero-info h1 {
        font-size: 32px;
    }

    .policy-section h2 {
        font-size: 22px;
        flex-direction: column;
        align-items: flex-start;
    }

    .policy-section h2 .icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
