/* Policy Dialogs (Privacy & Cookie) */
.policy-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Default backdrop (can be overridden by JS) */
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.policy-dialog.active {
    display: flex;
    opacity: 1;
}

.policy-dialog-content {
    /* Default styles (can be overridden by JS) */
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease-out;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 42, 112, 0.5) rgba(255, 255, 255, 0.1);
}

.policy-dialog-content::-webkit-scrollbar {
    width: 6px;
}

.policy-dialog-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.policy-dialog-content::-webkit-scrollbar-thumb {
    background: rgba(255, 42, 112, 0.5);
    border-radius: 3px;
}

.policy-dialog-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 42, 112, 0.7);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.policy-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 30px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 1;
}

.policy-close:hover {
    color: rgb(255, 42, 112);
}

.policy-title {
    color: #fff;
    font-size: 28px;
    margin: 0 0 30px 0;
    font-weight: 400;
    letter-spacing: 1px;
}

.policy-content {
    /* Color inherited from .policy-dialog-content (set by JS or CSS default) */
    line-height: 1.8;
    font-size: 14px;
}

.policy-content h1,
.policy-content h2,
.policy-content h3,
.policy-content h4 {
    /* Inherit color from parent */
    color: inherit;
    margin-top: 30px;
    margin-bottom: 15px;
    opacity: 1;
}

.policy-content h1 {
    font-size: 24px;
}

.policy-content h2 {
    font-size: 20px;
}

.policy-content h3 {
    font-size: 18px;
}

.policy-content p {
    margin-bottom: 15px;
}

.policy-content ul,
.policy-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.policy-content li {
    margin-bottom: 8px;
}

.policy-content a {
    color: rgb(255, 42, 112);
    text-decoration: underline;
}

.policy-content a:hover {
    color: rgba(255, 42, 112, 0.8);
}

.policy-content strong {
    /* Inherit color from parent */
    color: inherit;
    font-weight: 600;
    opacity: 1;
}

.policy-loading {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.policy-error {
    text-align: center;
    padding: 60px 20px;
    color: #ff6b6b;
    font-size: 14px;
}
