.terms-modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: opacity 0.3s ease-in-out;
}

.terms-modal-content {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 75%;
    max-width: 900px;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    margin: 0 auto;
}

.terms-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.terms-modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.terms-modal-close-btn {
    color: #888;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}

.terms-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.terms-modal-last-updated {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.25rem;
}

.terms-modal-section {
    margin-bottom: 1.5rem;
}

.terms-modal-section h4 {
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 1.3rem;
}

.terms-modal-section p {
    color: #444;
    line-height: 1.7;
    font-size: 1.1rem;
}

.terms-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: flex-end;
    background-color: #f9f9f9;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

.terms-modal-close-action {
    background-color: #c5303c;
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    transition: background-color 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    border: none;
    cursor: pointer;
}

.terms-modal-close-action:hover {
    background-color: #c5303c;
}

.terms-modal-active {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

@media (prefers-color-scheme: dark) {
    .custom-scrollbar::-webkit-scrollbar-track {
        background: #2d3748;
    }
    .custom-scrollbar::-webkit-scrollbar-thumb {
        background: #4a5568;
    }
    .custom-scrollbar::-webkit-scrollbar-thumb:hover {
        background: #718096;
    }
}

.promo-terms-contact {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eaeaea;
}

.promo-terms-contact-intro {
    color: #444;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.promo-terms-contact-details {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.promo-terms-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.promo-terms-phone-link:hover {
    color: #fe0a0a;
}

.promo-terms-phone-icon {
    display: inline-flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.promo-terms-phone-link:hover .promo-terms-phone-icon {
    opacity: 1;
}

.promo-terms-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #fe0a0a;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.promo-terms-contact-link:hover {
    color: #cc0808;
}

.promo-card-terms-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #fe0a0a;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s;
    margin-top: 0.5rem;
}

.promo-card-terms-link:hover {
    color: #cc0808;
    text-decoration: underline;
}
