/* Policy Page Styles */
.policy-page {
    padding-top: 120px;
    padding-bottom: var(--space-12);
    /* Background is now handled by the body background in styles.css */
    background-color: transparent;
    position: relative;
    z-index: 1;
}

.policy-container {
    background-color: rgba(29, 53, 87, 0.92);
    background-image: linear-gradient(to bottom right, rgba(46, 83, 121, 0.8), rgba(29, 53, 87, 0.95));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: var(--space-8);
    box-shadow: 0 20px 50px rgba(9, 30, 66, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.07);
    border-left: 4px solid var(--primary-coral);
    border-top: 2px solid rgba(246, 167, 124, 0.1);
    margin: 0 auto;
    max-width: 900px;
    color: white;
    position: relative;
    overflow: hidden;
}

.policy-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(246, 167, 124, 0.05) 0%, rgba(29, 53, 87, 0) 50%);
    z-index: 0;
    pointer-events: none;
}

.policy-container h1 {
    color: white;
    font-family: var(--heading-font);
    font-size: 2.4rem;
    margin-bottom: var(--space-4);
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.policy-container h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-coral);
    border-radius: 3px;
    opacity: 0.8;
    transition: width 0.4s ease;
}

.policy-container:hover h1::after {
    width: 120px;
    opacity: 1;
}

.policy-container .last-updated {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-6);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.policy-container section {
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 1;
}

.policy-container h2 {
    color: var(--primary-coral);
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
    font-weight: 600;
    font-family: var(--heading-font);
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.policy-container h3 {
    color: var(--highlight-blue);
    font-size: 1.2rem;
    margin-top: var(--space-3);
    margin-bottom: var(--space-1);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.policy-container p {
    margin-bottom: var(--space-3);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.policy-container ul {
    margin-left: var(--space-4);
    margin-bottom: var(--space-3);
    position: relative;
    z-index: 1;
}

.policy-container ul li {
    margin-bottom: var(--space-1);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.policy-container a {
    color: var(--primary-coral);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px dotted rgba(246, 167, 124, 0.4);
    padding-bottom: 1px;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.policy-container a:hover {
    color: white;
    border-bottom: 1px solid var(--primary-coral);
    text-decoration: none;
}

/* Container hover effect */
.policy-container {
    transition: all 0.3s ease;
}

.policy-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(9, 30, 66, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    background-color: rgba(39, 63, 97, 0.95);
    border-left-width: 6px;
    border-top: 2px solid rgba(246, 167, 124, 0.25);
}

/* Responsive styles */
@media (max-width: 768px) {
    .policy-container {
        padding: var(--space-5);
        max-width: 95%;
    }
    
    .policy-container h1 {
        font-size: 1.8rem;
    }
    
    .policy-container h2 {
        font-size: 1.3rem;
    }
    
    .policy-container h3 {
        font-size: 1.1rem;
    }
    
    .policy-page {
        padding-top: 100px;
    }
}

@media (max-width: 480px) {
    .policy-container {
        padding: var(--space-4);
        border-radius: 10px;
        border-left-width: 3px;
    }
    
    .policy-container h1 {
        font-size: 1.6rem;
    }
    
    .policy-container h1::after {
        bottom: -8px;
        height: 2px;
        width: 60px;
    }
    
    .policy-container:hover h1::after {
        width: 90px;
    }
    
    .policy-container h2 {
        font-size: 1.2rem;
    }
    
    .policy-container h3 {
        font-size: 1rem;
    }
    
    /* Disable hover effect transform on mobile to prevent layout issues */
    .policy-container:hover {
        transform: none;
        border-left-width: 3px;
    }
}