/* GDPR cookie banner, settings modal, form consent checkboxes */
.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 2px solid #3b82f6;
}

.gdpr-banner.show {
    transform: translateY(0);
}

.gdpr-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.gdpr-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.55;
}

.gdpr-text a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.gdpr-text a:hover {
    text-decoration: underline;
}

.gdpr-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.gdpr-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.gdpr-btn.accept {
    background: #3b82f6;
    color: #fff;
}

.gdpr-btn.accept:hover {
    background: #2563eb;
}

.gdpr-btn.reject {
    background: transparent;
    color: #9ca3af;
    border: 1px solid #4b5563;
}

.gdpr-btn.reject:hover {
    background: #374151;
    color: #fff;
}

.gdpr-btn.settings {
    background: transparent;
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

.gdpr-btn.settings:hover {
    background: #3b82f6;
    color: #fff;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-content {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    color: #1a1a1a;
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.cookie-header h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
}

.cookie-section {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.cookie-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.cookie-section p {
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 12px;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.toggle-switch.active {
    background: #3b82f6;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active::after {
    transform: translateX(26px);
}

.cookie-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.legal-footer {
    text-align: center;
    padding: 12px 20px 0;
    font-size: 0.8rem;
}

.legal-footer a {
    color: #64748b;
    text-decoration: none;
    margin: 0 10px;
}

.legal-footer a:hover {
    color: #0891b2;
    text-decoration: underline;
}

.privacy-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 12px 0;
}

.privacy-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
}

.privacy-links a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.gdpr-form-consent {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gdpr-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #334155;
    cursor: pointer;
}

.gdpr-checkbox input {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #0891b2;
}

.gdpr-checkbox a {
    color: #0891b2;
}

.gdpr-checkbox--optional {
    color: #64748b;
}

.gdpr-form-error {
    color: #dc2626;
    font-size: 0.82rem;
    margin-top: 4px;
    display: none;
}

.gdpr-form-error.is-visible {
    display: block;
}

@media (max-width: 768px) {
    .gdpr-content {
        flex-direction: column;
        text-align: center;
    }

    .gdpr-buttons {
        justify-content: center;
    }

    .cookie-content {
        padding: 20px;
    }

    .cookie-actions {
        flex-direction: column;
    }
}
