/* ================================
   Cookie Consent Banner
   ================================ */

.cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 480px;
    max-width: calc(100vw - 40px);
    background: #0c1c2c;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.30);
    z-index: 99999;
    animation: cookieFade 0.35s ease;
}

.cookie-consent__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-consent__text {
    color: #FFFFFF;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.cookie-consent__text strong {
    font-weight: 700;
}

.cookie-consent__link {
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.cookie-consent__link:hover {
    opacity: 0.85;
}

.cookie-consent__button {
    height: 40px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    background: #FFFFFF;
    color: #0c1c2c;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s;
}

.cookie-consent__button:hover {
    background: #b43027;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

@keyframes cookieFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .cookie-consent {
        right: 15px;
        left: 15px;
        bottom: 15px;
        width: auto;
        padding: 18px;
    }

    .cookie-consent__button {
        width: 100%;
    }
}

/* ================================
   Policy Modals
   ================================ */

.policy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
}

.policy-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.policy-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.policy-modal__container {
    position: relative;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 32px;
    width: 700px;
    max-width: calc(100vw - 40px);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.30);
    z-index: 1;
}

.policy-modal__close {
    position: absolute;
    top: 32px;
    right: 32px;
    z-index: 2;
    width: 16px;
    height: 16px;
    padding: 0;
    font-size: 0;
    background: none !important;
    border: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    color: #0c1c2c;
    transition: color 0.2s;
}

.policy-modal__close::before,
.policy-modal__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.policy-modal__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.policy-modal__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.policy-modal__close:hover {
    background: none !important;
    color: #b43027;
}

.policy-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: #0c1c2c;
    margin: 0 0 20px 0;
    padding-right: 40px;
}

.policy-modal__content {
    overflow-y: auto;
    flex: 1;
    font-size: 14px;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 20px;
}

.policy-modal__content::-webkit-scrollbar {
    width: 4px;
}

.policy-modal__content::-webkit-scrollbar-track {
    background: transparent;
}

.policy-modal__content::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
}

.policy-modal__content::-webkit-scrollbar-thumb:hover {
    background: #0c1c2c;
}

.policy-modal__content span.marker {
    background-color: Yellow;
}

.policy-modal__btn-accept {
    align-self: flex-end;
    flex-shrink: 0;
    height: 40px;
    min-height: 40px;
    padding: 0 29px;
    border: none;
    border-radius: 8px;
    background: #0c1c2c;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s;
}

.policy-modal__btn-accept:hover {
    background: #b43027;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 600px) {
    .policy-modal__container {
        padding: 20px;
        max-height: 90vh;
    }

    .policy-modal__btn-accept {
        width: 100%;
    }
}
