/* Advanced Policy Page Styles for DBEX Soft */

:root {
    --policy-sidebar-width: 280px;
    --policy-card-bg: rgba(25, 25, 25, 0.6);
    --policy-card-border: rgba(255, 255, 255, 0.05);
    --policy-glow: rgba(255, 0, 0, 0.1);
}

/* Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1000;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--accent-color), #ff4d4d);
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Page Header */
.policy-header {
    background: linear-gradient(180deg, rgba(255, 0, 0, 0.05) 0%, transparent 100%);
    padding: 160px 0 80px 0;
    text-align: center;
}

.policy-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.policy-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 0, 0, 0.1);
    color: var(--accent-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

/* Layout */
.policy-layout {
    padding-bottom: 100px;
}

/* Sidebar Navigation */
.policy-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.policy-nav-card {
    background: var(--policy-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--policy-card-border);
    border-radius: 16px;
    padding: 24px;
}

.policy-nav-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
}

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

.policy-nav-links li {
    margin-bottom: 8px;
}

.policy-nav-links a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--default-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.policy-nav-links a i {
    margin-right: 12px;
    font-size: 1.1rem;
    opacity: 0.6;
}

.policy-nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
}

.policy-nav-links a.active {
    background: rgba(255, 0, 0, 0.1);
    color: var(--accent-color);
    border-color: rgba(255, 0, 0, 0.2);
    font-weight: 600;
}

.policy-nav-links a.active i {
    opacity: 1;
}

/* Content Sections */
.policy-section-card {
    background: var(--policy-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--policy-card-border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.policy-section-card:hover {
    border-color: rgba(255, 0, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.section-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-color);
    font-size: 1.5rem;
    border: 1px solid rgba(255, 0, 0, 0.1);
}

.policy-section-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.policy-section-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.policy-section-card ul {
    list-style: none;
    padding-left: 0;
}

.policy-section-card ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.policy-section-card ul li::before {
    content: "\F272"; /* Bootstrap Icon Check */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 900;
}

/* Responsive Fixes */
@media (max-width: 991.98px) {
    .policy-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }
    
    .policy-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .policy-section-card {
        padding: 24px;
    }
    
    .policy-header {
        padding: 120px 0 60px 0;
    }
}
