/* Cookie Consent Banner Styles */

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.95;
}

.cookie-consent-text a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent-text a:hover {
    opacity: 0.8;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: white;
    color: #1e3a8a;
}

.cookie-btn-primary:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cookie-btn-text {
    background: transparent;
    color: white;
    text-decoration: underline;
}

.cookie-btn-text:hover {
    opacity: 0.8;
}

/* Cookie Preferences Panel */
.cookie-preferences {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 16px;
}

.cookie-preferences h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
}

.cookie-option {
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.cookie-option label {
    display: block;
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cookie-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-option strong {
    font-size: 15px;
    display: inline-block;
    margin-bottom: 4px;
}

.cookie-option p {
    margin: 8px 0 0 30px;
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.5;
}

.cookie-preferences-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #cookie-consent-banner {
        padding: 20px 16px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cookie-consent-text {
        min-width: 100%;
    }

    .cookie-consent-text h3 {
        font-size: 18px;
    }

    .cookie-consent-text p {
        font-size: 13px;
    }

    .cookie-consent-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 15px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cookie-preferences-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-option {
        padding: 14px;
    }

    .cookie-option p {
        font-size: 12px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    #cookie-consent-banner {
        padding: 16px 12px;
    }

    .cookie-consent-text h3 {
        font-size: 16px;
    }

    .cookie-consent-text p {
        font-size: 12px;
    }

    .cookie-btn {
        padding: 16px 20px;
        font-size: 14px;
        min-height: 50px;
    }
}

/* Legal Content Styles */
.legal-content {
    padding: 60px 0;
    background: #f9fafb;
}

.legal-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.legal-wrapper h2 {
    color: #1e3a8a;
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

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

.legal-wrapper h3 {
    color: #3b82f6;
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-wrapper h4 {
    color: #1e3a8a;
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 10px;
}

.legal-wrapper p {
    line-height: 1.8;
    margin-bottom: 16px;
    color: #374151;
}

.legal-wrapper ul,
.legal-wrapper ol {
    margin: 16px 0;
    padding-left: 32px;
}

.legal-wrapper li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: #374151;
}

.legal-wrapper a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.legal-wrapper a:hover {
    text-decoration: underline;
}

.contact-info-box {
    background: #f3f4f6;
    border-left: 4px solid #3b82f6;
    padding: 20px;
    margin: 24px 0;
    border-radius: 6px;
}

.contact-info-box p {
    margin: 8px 0;
}

.contact-info-box strong {
    color: #1e3a8a;
}

/* Cookie Table */
.cookie-table {
    overflow-x: auto;
    margin: 24px 0;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.cookie-table th,
.cookie-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #e5e7eb;
}

.cookie-table th {
    background: #f3f4f6;
    font-weight: 600;
    color: #1e3a8a;
}

.cookie-table code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

@media (max-width: 768px) {
    .legal-wrapper {
        padding: 32px 24px;
    }

    .legal-wrapper h2 {
        font-size: 24px;
    }

    .legal-wrapper h3 {
        font-size: 20px;
    }
}
