/* Legal Page Header */
.legal-header {
    background: linear-gradient(135deg, #4a3428 0%, #6b4e3d 100%);
    color: white;
    text-align: center;
    padding: 8rem 2rem 4rem;
    margin-top: 70px;
}

.legal-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.legal-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Legal Navigation */
.legal-nav {
    background: #faf8f5;
    padding: 2rem 0;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.legal-nav-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.legal-nav-btn {
    padding: 1rem 2.5rem;
    border: 2px solid #c1554d;
    background: white;
    color: #4a3428;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.legal-nav-btn:hover {
    background: #c1554d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(193, 85, 77, 0.3);
}

.legal-nav-btn.active {
    background: #c1554d;
    color: white;
    box-shadow: 0 4px 15px rgba(193, 85, 77, 0.4);
}

/* Legal Sections */
.legal-section {
    display: none;
    padding: 4rem 0;
    background: white;
    min-height: 60vh;
}

.legal-section.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.legal-content h2 {
    font-size: 2.5rem;
    color: #4a3428;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.legal-content h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #c1554d;
    margin: 1rem auto;
    border-radius: 2px;
}

/* Legal Items */
.legal-item {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #faf8f5;
    border-radius: 15px;
    border-left: 4px solid #c1554d;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.legal-item h3 {
    font-size: 1.8rem;
    color: #4a3428;
    margin-bottom: 1rem;
}

.legal-item h4 {
    font-size: 1.3rem;
    color: #6b4e3d;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.legal-item p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.legal-item ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-item ul li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0.5rem;
}

.legal-item ul li strong {
    color: #4a3428;
    font-weight: 600;
}

/* Consent Box */
.consent-box {
    background: linear-gradient(135deg, #c1554d 0%, #a84540 100%);
    color: white;
    border-left: 4px solid white;
}

.consent-box h3 {
    color: white;
}

.consent-box p {
    color: white;
    font-size: 1.1rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #c1554d;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(193, 85, 77, 0.4);
    transition: all 0.3s;
    border: none;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: #a84540;
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-header {
        padding: 6rem 1.5rem 3rem;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-header p {
        font-size: 1rem;
    }

    .legal-nav {
        padding: 1.5rem 0;
    }

    .legal-nav-btn {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }

    .legal-content {
        padding: 0 1rem;
    }

    .legal-content h2 {
        font-size: 2rem;
    }

    .legal-item {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .legal-item h3 {
        font-size: 1.5rem;
    }

    .legal-item h4 {
        font-size: 1.2rem;
    }

    .legal-item p,
    .legal-item ul li {
        font-size: 1rem;
    }

    .legal-item ul {
        margin-left: 1.5rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 1.7rem;
    }

    .legal-nav-buttons {
        flex-direction: column;
        padding: 0 1rem;
    }

    .legal-nav-btn {
        width: 100%;
    }

    .legal-content h2 {
        font-size: 1.7rem;
    }

    .legal-item {
        padding: 1.2rem;
    }

    .legal-item h3 {
        font-size: 1.3rem;
    }

    .legal-item h4 {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .legal-nav,
    .footer,
    .back-to-top {
        display: none;
    }

    .legal-section {
        display: block !important;
        page-break-after: always;
    }

    .legal-item {
        page-break-inside: avoid;
    }
}