body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f7f8fc;
  color: #333;
}

/* ===== MODERN POLICIES SECTION ===== */
.policies {
    padding: 80px 20px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.policies::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(220, 38, 38, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(185, 28, 28, 0.03) 0%, transparent 40%);
    animation: pulseBackground 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulseBackground {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.policies-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.page-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* Policy Card Styling */
.policy-card {
    background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%);
    border-radius: 20px;
    padding: 25px 20px;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 200px;
    justify-content: space-between;
    box-shadow: 
        0 10px 30px rgba(127, 29, 29, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.1);
}

.policy-card.animate {
    animation: fadeInUp 0.6s ease forwards;
}

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

.policy-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.4), rgba(127, 29, 29, 0.2), rgba(220, 38, 38, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.policy-card:hover::before {
    opacity: 1;
}

.policy-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(220, 38, 38, 0.15) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    transition: left 0.8s ease;
}

.policy-card:hover::after {
    left: 150%;
}

.policy-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 100%);
    box-shadow: 
        0 20px 50px rgba(127, 29, 29, 0.3),
        0 10px 25px rgba(0, 0, 0, 0.15);
}

.policy-icon {
    width: 50px;
    height: 50px;
    background: rgba(220, 38, 38, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #fecaca;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.policy-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fecaca;
    margin-bottom: 15px;
    line-height: 1.4;
    text-align: center;
    width: 100%;
    padding: 0 10px;
}

.policy-card p {
    font-size: 0.9rem;
    color: rgba(254, 202, 202, 0.9);
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
    padding: 0 5px;
}

/* Download Button Styling */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(220, 38, 38, 0.95);
    color: #fef2f2 !important;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    width: auto;
    min-width: 160px;
    max-width: 180px;
    margin: 0 auto;
    min-height: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(254, 202, 202, 0.1), transparent);
    transition: left 0.6s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    background: #dc2626;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 3px 10px rgba(220, 38, 38, 0.4);
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:active {
    transform: translateY(0) scale(0.98);
}

.download-btn i {
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Single Policy Section */
.single-policy-section {
    margin-top: 40px;
}

.single-policy {
    background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.5s forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 180px;
    box-shadow: 
        0 15px 40px rgba(127, 29, 29, 0.25),
        0 6px 20px rgba(0, 0, 0, 0.1);
}

.single-policy::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.4), rgba(127, 29, 29, 0.2), rgba(220, 38, 38, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.single-policy:hover::before {
    opacity: 1;
}

.single-policy:hover {
    transform: translateY(-6px) scale(1.02);
    background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 100%);
    box-shadow: 
        0 20px 50px rgba(127, 29, 29, 0.35),
        0 10px 25px rgba(0, 0, 0, 0.15);
}

.single-policy h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fecaca;
    margin-bottom: 15px;
    line-height: 1.3;
    text-align: center;
    width: 100%;
    padding: 0 15px;
}

.single-policy p {
    font-size: 1rem;
    color: rgba(254, 202, 202, 0.9);
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 600px;
    padding: 0 10px;
}

/* Download Progress Animation */
.download-progress {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a1a1a;
    font-weight: 600;
    max-width: 350px;
}

.download-progress.show {
    transform: translateX(0);
}

.download-progress i {
    color: #dc2626;
    font-size: 1.3rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(220, 38, 38, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 2px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets */
@media (max-width: 1024px) {
    .policies {
        padding: 60px 20px;
    }
    
    .page-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    
    .policy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .policy-card {
        padding: 20px 15px;
        min-height: 180px;
    }
    
    .policy-card h2 {
        font-size: 1.1rem;
    }
    
    .single-policy {
        padding: 25px 20px;
        min-height: 170px;
    }
    
    .single-policy h2 {
        font-size: 1.3rem;
    }
    
    .download-btn {
        min-width: 150px;
        max-width: 170px;
        padding: 9px 18px;
        font-size: 0.82rem;
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    .policies {
        padding: 50px 15px;
    }
    
    .page-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .policy-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .policy-card {
        padding: 20px 15px;
        min-height: 160px;
    }
    
    .policy-card h2 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .single-policy {
        padding: 22px 18px;
        min-height: 150px;
    }
    
    .single-policy h2 {
        font-size: 1.2rem;
    }
    
    .download-btn {
        min-width: 140px;
        max-width: 160px;
        padding: 8px 16px;
        min-height: 38px;
        font-size: 0.8rem;
    }
    
    .download-progress {
        top: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
        transform: translateY(-150%);
    }
    
    .download-progress.show {
        transform: translateY(0);
    }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    .policies {
        padding: 40px 12px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .policy-card {
        padding: 18px 12px;
        min-height: 150px;
    }
    
    .policy-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .policy-card h2 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .policy-card p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .single-policy {
        padding: 20px 15px;
        min-height: 140px;
    }
    
    .single-policy h2 {
        font-size: 1.1rem;
    }
    
    .single-policy p {
        font-size: 0.9rem;
    }
    
    .download-btn {
        min-width: 130px;
        max-width: 150px;
        padding: 7px 14px;
        min-height: 36px;
        font-size: 0.78rem;
        gap: 6px;
    }
    
    .download-btn i {
        font-size: 0.85rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .policy-card:hover {
        transform: none;
    }
    
    .policy-card:active {
        transform: scale(0.98);
    }
    
    .download-btn:hover {
        transform: none;
    }
    
    .download-btn:active {
        transform: scale(0.95);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .policy-card,
    .download-btn,
    .download-progress,
    .policies::before {
        transition: none;
        animation: none;
    }
    
    .policy-card {
        opacity: 1;
        transform: none;
    }
    
    .single-policy {
        opacity: 1;
        transform: none;
    }
}