/* Policy Pages Unified Styling */
.policy-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.policy-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.policy-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="80" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.policy-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.policy-header .lead {
    font-size: 1.2rem;
    margin: 0;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

.policy-content {
    padding: 3rem 2rem;
    line-height: 1.7;
    color: #333;
}

.policy-content h2 {
    color: #007bff;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #e9ecef;
    position: relative;
}

.policy-content h2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

.policy-content h3 {
    color: #495057;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid #007bff;
    background: rgba(0, 123, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
}

.policy-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    font-size: 1rem;
}

.policy-content ul, .policy-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.policy-content li {
    margin-bottom: 0.75rem;
    position: relative;
}

.policy-content ul li::before {
    content: '▸';
    color: #007bff;
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

.policy-content strong {
    color: #007bff;
    font-weight: 600;
}

/* Enhanced Tables */
.policy-table {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: white;
}

.policy-table table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.policy-table th {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 1rem;
    font-weight: 600;
    text-align: left;
    border: none;
    font-size: 0.95rem;
}

.policy-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
    transition: background-color 0.3s ease;
}

.policy-table tbody tr:hover td {
    background-color: rgba(0, 123, 255, 0.05);
}

.policy-table tbody tr:last-child td {
    border-bottom: none;
}

/* Special Content Boxes */
.content-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 5px solid #007bff;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.content-box h3 {
    margin-top: 0;
    color: #007bff;
    background: none;
    border: none;
    padding: 0;
}

/* Links */
.policy-content a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.policy-content a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s ease;
}

.policy-content a:hover::after {
    width: 100%;
}

.policy-content a:hover {
    color: #0056b3;
    transform: translateY(-1px);
}

/* Contact Information Styling */
.contact-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #90caf9;
}

.contact-info strong {
    color: #1976d2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .policy-container {
        margin: 1rem;
        border-radius: 15px;
    }
    
    .policy-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .policy-header h1 {
        font-size: 2rem;
    }
    
    .policy-content {
        padding: 2rem 1.5rem;
    }
    
    .policy-content h2 {
        font-size: 1.5rem;
    }
    
    .policy-content h3 {
        font-size: 1.2rem;
    }
    
    .policy-table {
        font-size: 0.9rem;
    }
    
    .policy-table th,
    .policy-table td {
        padding: 0.75rem;
    }
}

/* Animation for page load */
.policy-container {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animations */
.policy-content h2,
.policy-content h3,
.content-box,
.policy-table {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease-out forwards;
}

.policy-content h2:nth-of-type(1) { animation-delay: 0.1s; }
.policy-content h2:nth-of-type(2) { animation-delay: 0.2s; }
.policy-content h2:nth-of-type(3) { animation-delay: 0.3s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    .policy-page {
        background: white;
        padding: 0;
    }
    
    .policy-container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .policy-header {
        background: #007bff !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

