/* ==========================================================================
   Cookie Consent Banner Component Layout
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0f172a;
    color: #f8fafc;
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    padding: 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner.hidden {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
    visibility: hidden;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
    text-align: center;
}

.cookie-banner-link {
    color: #38bdf8;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-banner-link:hover {
    color: #7dd3fc;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.cookie-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    min-width: 100px;
    text-align: center;
}

.cookie-btn-deny {
    background-color: transparent;
    color: #94a3b8;
    border: 1px solid #475569;
}

.cookie-btn-deny:hover {
    background-color: rgba(71, 85, 105, 0.2);
    color: #f8fafc;
}

.cookie-btn-accept {
    background-color: #0284c7;
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background-color: #0369a1;
}

/* ==========================================================================
   Privacy Policy Modal Overlay System
   ========================================================================== */
.policy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.policy-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.policy-modal-container {
    background-color: #ffffff;
    color: #334155;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.policy-modal-overlay.active .policy-modal-container {
    transform: translateY(0);
}

.policy-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.policy-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.policy-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.policy-modal-close:hover {
    color: #0f172a;
}

.policy-modal-body {
    padding: 20px;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.policy-modal-body h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.policy-modal-body p {
    margin-bottom: 1rem;
}

.policy-modal-body ul {
    margin-bottom: 1rem;
    padding-left: 20px;
}

.policy-modal-body li {
    margin-bottom: 0.4rem;
}

.policy-modal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.policy-modal-table th,
.policy-modal-table td {
    border: 1px solid #cbd5e1;
    padding: 10px;
    text-align: left;
}

.policy-modal-table th {
    background-color: #f1f5f9;
    color: #0f172a;
}

.modal-reset-btn {
    background-color: #0284c7;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 5px;
}

.modal-reset-btn:hover {
    background-color: #0369a1;
}

.policy-trigger-link {
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-size: inherit;
    padding: 0;
    font-family: inherit;
}

.policy-trigger-link:hover {
    color: #0284c7;
}

/* Responsive Structural Overrides */
@media (min-width: 768px) {
    .cookie-banner-content {
        flex-direction: row;
        gap: 24px;
    }

    .cookie-banner-text {
        text-align: left;
        flex: 1;
    }

    .cookie-banner-actions {
        width: auto;
    }
}