/* ═══════════════════════════════════════════════════════
   DA FILIPPO — LEGAL PAGES STYLES
   Impressum, Datenschutz, AGB
   ═══════════════════════════════════════════════════════ */

.legal-page {
    padding-top: 120px;
    padding-bottom: var(--space-xl);
    background: var(--black);
    min-height: 100vh;
}

.legal-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.legal-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* Legal Content */
.legal-content {
    position: relative;
}

.legal-section {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(201, 169, 110, 0.06);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.legal-section h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--cream);
    margin-bottom: var(--space-sm);
    margin-top: var(--space-md);
    font-weight: 400;
}

.legal-section h3:first-child {
    margin-top: 0;
}

.legal-section p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: var(--space-sm);
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--gold);
    border-bottom: 1px solid rgba(201, 169, 110, 0.3);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.legal-section a:hover {
    color: var(--gold-light);
    border-bottom-color: var(--gold-light);
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: var(--space-sm) 0;
}

.legal-section ul li {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.9;
    padding-left: 1.5rem;
    position: relative;
}

.legal-section ul li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.5rem;
    top: 0.55rem;
}

/* Back Button */
.legal-back {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(201, 169, 110, 0.08);
}

/* ═══════════════════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════════════════ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.cookie-banner-inner {
    background: rgba(17, 17, 17, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(201, 169, 110, 0.15);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 100%;
}

.cookie-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--cream-soft);
    font-weight: 300;
    line-height: 1.7;
    flex: 1;
}

.cookie-text a {
    color: var(--gold);
    border-bottom: 1px solid rgba(201, 169, 110, 0.3);
    transition: all 0.3s ease;
}

.cookie-text a:hover {
    color: var(--gold-light);
    border-bottom-color: var(--gold-light);
}

.cookie-actions {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.7rem 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--gold);
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--gold);
    color: var(--black);
}

.cookie-btn-accept:hover {
    background: var(--gold-bright);
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--gold);
}

.cookie-btn-settings:hover {
    background: rgba(201, 169, 110, 0.1);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-muted);
    border-color: rgba(136, 136, 120, 0.3);
}

.cookie-btn-reject:hover {
    color: var(--cream);
    border-color: var(--cream);
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: var(--space-md);
}

.cookie-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.cookie-modal {
    background: var(--anthracite);
    border: 1px solid rgba(201, 169, 110, 0.15);
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: var(--space-lg);
    position: relative;
}

.cookie-modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.cookie-modal-close:hover {
    color: var(--gold-light);
}

.cookie-modal h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

.cookie-modal p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.cookie-category {
    padding: 1.2rem 0;
    border-top: 1px solid rgba(201, 169, 110, 0.08);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cookie-category-title {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--cream);
    font-weight: 400;
    letter-spacing: 0.05em;
}

.cookie-category-desc {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 300;
    line-height: 1.7;
}

/* Custom Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(136, 136, 120, 0.2);
    border: 1px solid rgba(136, 136, 120, 0.3);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-toggle input:checked+.cookie-toggle-slider {
    background: rgba(201, 169, 110, 0.2);
    border-color: var(--gold);
}

.cookie-toggle input:checked+.cookie-toggle-slider::before {
    transform: translateX(20px);
    background: var(--gold);
}

.cookie-toggle input:disabled+.cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(201, 169, 110, 0.08);
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        padding: 1.2rem;
        gap: 1rem;
    }

    .cookie-text {
        font-size: 0.8rem;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
        min-width: 100px;
        padding: 0.6rem 1rem;
        font-size: 0.7rem;
    }

    .cookie-modal {
        padding: var(--space-md);
    }

    .cookie-modal-actions {
        flex-wrap: wrap;
    }

    .cookie-modal-actions .cookie-btn {
        flex: 1 1 100%;
    }
}