.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    padding: 1rem;
    background: rgba(5, 8, 15, 0.92);
    border-top: 1px solid rgba(0, 232, 200, 0.2);
    backdrop-filter: blur(12px);
}

.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner-text h2 {
    font-size: 1rem;
    margin: 0 0 0.35rem;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--iot-muted, #8b9cb3);
    max-width: 52rem;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 9100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal[hidden],
.cookie-banner[hidden] {
    display: none !important;
}

.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.cookie-modal-panel {
    position: relative;
    width: min(480px, 100%);
    background: var(--iot-surface, #0c1219);
    border: 1px solid rgba(0, 232, 200, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cookie-modal-panel h2 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.cookie-modal-desc {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--iot-muted, #8b9cb3);
}

.cookie-pref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-pref-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.88rem;
}

.cookie-pref-info span {
    color: var(--iot-muted, #8b9cb3);
    font-size: 0.82rem;
}

.cookie-pref-badge {
    font-size: 0.75rem;
    color: var(--iot-accent, #00e8c8);
    white-space: nowrap;
}

.cookie-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cookie-manage-btn {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 8000;
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 232, 200, 0.25);
    background: rgba(5, 8, 15, 0.85);
    color: var(--iot-muted, #8b9cb3);
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.cookie-manage-btn:hover {
    color: var(--iot-accent, #00e8c8);
    border-color: rgba(0, 232, 200, 0.45);
}

.legal-content {
    max-width: 800px;
    line-height: 1.7;
}

.legal-content h2 {
    margin: 2rem 0 0.75rem;
    font-size: 1.15rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    color: var(--iot-text-soft, #b8c5d6);
}

.legal-content ul {
    padding-left: 1.25rem;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin: 1rem 0;
}

.legal-table th,
.legal-table td {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.6rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background: rgba(0, 232, 200, 0.06);
    color: var(--iot-accent, #00e8c8);
}

.contact-privacy {
    margin: 0.5rem 0 1rem;
    font-size: 0.88rem;
}

.contact-privacy label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--iot-muted, #8b9cb3);
}

.contact-privacy input {
    margin-top: 0.2rem;
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

@media (max-width: 640px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-banner-actions {
        justify-content: stretch;
    }
    .cookie-banner-actions .btn {
        flex: 1;
    }
}
