/* Policy Modal Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #FFE5B4 0%, #FFD700 50%, #87CEEB 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #2C2C2C;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(244, 229, 177, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(135, 206, 235, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.policy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.policy-modal.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.policy-modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid #D4AF37;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.policy-header {
    background: linear-gradient(135deg, #D4AF37, #B8941F);
    padding: 2rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 3px solid #B8941F;
}

.policy-header h1 {
    color: #0056B3;
    font-size: 2rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.close-policy {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #0056B3;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    line-height: 1;
}

.close-policy:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.policy-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #D4AF37 #F4E5B1;
}

.policy-body::-webkit-scrollbar {
    width: 10px;
}

.policy-body::-webkit-scrollbar-track {
    background: #F4E5B1;
    border-radius: 5px;
}

.policy-body::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 5px;
}

.policy-body::-webkit-scrollbar-thumb:hover {
    background: #B8941F;
}

.policy-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-section h2 {
    color: #0056B3;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.policy-section h3 {
    color: #B8941F;
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.policy-section p {
    color: #2C2C2C;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    text-align: justify;
}

.policy-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: #2C2C2C;
    line-height: 1.8;
}

.policy-section li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.policy-section a {
    color: #007FFF;
    text-decoration: underline;
    transition: color 0.3s;
}

.policy-section a:hover {
    color: #0056B3;
}

.policy-section strong {
    color: #B8941F;
    font-weight: bold;
}

.policy-footer {
    padding: 1.5rem 2rem;
    background: rgba(244, 229, 177, 0.3);
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: center;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
    position: sticky;
    bottom: 0;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-block;
    font-family: inherit;
}

.btn-primary {
    background: #D4AF37;
    color: #2C2C2C;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #B8941F;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .policy-modal {
        padding: 10px;
    }

    .policy-modal-content {
        max-height: 95vh;
        border-radius: 10px;
    }

    .policy-header {
        padding: 1.5rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .policy-header h1 {
        font-size: 1.5rem;
        flex: 1;
    }

    .close-policy {
        font-size: 2rem;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }

    .policy-body {
        padding: 1.5rem;
    }

    .policy-section h2 {
        font-size: 1.4rem;
    }

    .policy-section h3 {
        font-size: 1.2rem;
    }

    .policy-section p,
    .policy-section li {
        font-size: 1rem;
    }

    .policy-footer {
        padding: 1rem 1.5rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

