/* Policy Pages Styles - Enhanced with Unique Styles per Page */
.policy-page {
    padding-top: 100px;
    padding-bottom: 80px;
    background: var(--light);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.policy-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    z-index: 0;
}

.policy-page .container {
    position: relative;
    z-index: 1;
}

/* Unique header styles for each policy page */
.policy-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 4rem 2rem;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.policy-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.policy-header h1 {
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    font-size: clamp(2rem, 4vw, 3rem);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.policy-header .policy-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    position: relative;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Cookie Policy - Unique Purple Theme */
body:has(.policy-page) .policy-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Privacy Policy - Unique Blue Theme */
body:has([href*="privacy_policy"]) .policy-header,
.privacy-policy .policy-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Terms and Conditions - Unique Green Theme */
body:has([href*="terms_and_conditions"]) .policy-header,
.terms-conditions .policy-header {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
}

/* Terms of Service - Unique Orange Theme */
body:has([href*="terms_of_service"]) .policy-header,
.terms-service .policy-header {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.last-updated {
    font-size: 0.9375rem;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-top: 1rem;
}

.policy-content {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.policy-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.policy-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-medium);
}

.policy-section:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    background: white;
}

.policy-section h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.policy-section h2::before {
    content: '📋';
    font-size: 1.5rem;
}

.policy-section h3 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-light);
}

.policy-section p {
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 1rem;
}

.policy-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    list-style: none;
    padding-left: 0;
}

.policy-section ul li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    padding-left: 1.75rem;
    position: relative;
    color: var(--dark);
}

.policy-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
}

.policy-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}

.policy-section a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.contact-details {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    border: 2px solid rgba(99, 102, 241, 0.1);
}

.contact-details p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-details p:first-child {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-details a {
    color: var(--primary-color);
    font-weight: 600;
}

.policy-footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-light);
}

.policy-footer .btn {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-medium);
}

.policy-footer .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Visual enhancements */
.policy-section strong {
    color: var(--primary-color);
    font-weight: 700;
}

.policy-section code {
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-dark);
}

@media (max-width: 767px) {
    .policy-content {
        padding: 2rem 1.5rem;
    }
    
    .policy-header {
        padding: 3rem 1.5rem;
    }
    
    .policy-header .policy-icon {
        font-size: 3rem;
    }
    
    .policy-section {
        padding: 1.5rem;
    }
    
    .policy-section h2 {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .policy-section h2::before {
        margin-bottom: 0.5rem;
    }
}