/* Legal Pages Styles - Privacy & Terms */

/* Hero Banner */
.legal-hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 50%, #0d1f12 100%);
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(8, 135, 46, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.legal-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(8, 135, 46, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -30px) scale(1.1); }
}

.legal-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.legal-hero-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(8, 135, 46, 0.2) 0%, rgba(8, 135, 46, 0.1) 100%);
    border: 2px solid rgba(8, 135, 46, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.legal-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
}

.legal-hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

.legal-hero-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.legal-hero-date svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 100px;
    left: 20px;
    z-index: 10;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateX(-4px);
}

.back-link svg {
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

/* Main Content Area */
.legal-page {
    padding: 0;
    background: var(--background);
    min-height: auto;
}

.legal-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 20px;
    position: relative;
    top: -60px;
}

/* Main Content Card */
.legal-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Section Styling */
.legal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
    font-family: 'Poppins', sans-serif;
    scroll-margin-top: 100px;
}

.legal-section h2 .section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(8, 135, 46, 0.1) 0%, rgba(8, 135, 46, 0.05) 100%);
    border: 1.5px solid rgba(8, 135, 46, 0.2);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
}

.legal-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.5rem 0 0.875rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary);
}

.legal-section p {
    color: var(--text);
    line-height: 1.85;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.legal-section p strong {
    color: var(--text);
    font-weight: 600;
}

/* List Styling */
.legal-section ul {
    list-style: none;
    margin: 0 0 1.25rem 0;
    padding: 0;
}

.legal-section li {
    position: relative;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    padding-left: 1.75rem;
    font-size: 1rem;
}

.legal-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
    border-radius: 50%;
}

.legal-section li strong {
    color: var(--primary);
    font-weight: 600;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(8, 135, 46, 0.06) 0%, rgba(8, 135, 46, 0.02) 100%);
    border: 1px solid rgba(8, 135, 46, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box p {
    margin: 0;
    color: var(--text);
}

.highlight-box strong {
    color: var(--primary);
}

/* Contact Box */
.contact-box {
    background: linear-gradient(135deg, #0a0a0a 0%, #0d1f12 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
    color: var(--white);
}

.contact-box p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem;
}

.contact-box a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-box a:hover {
    color: var(--success);
}

/* Table of Contents Sidebar */
.legal-toc {
    position: sticky;
    top: 100px;
    align-self: start;
}

.legal-toc-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.legal-toc-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.legal-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-toc-list li {
    margin-bottom: 0.5rem;
}

.legal-toc-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.legal-toc-list a:hover {
    background: rgba(8, 135, 46, 0.06);
    color: var(--primary);
    transform: translateX(4px);
}

.legal-toc-list a.active {
    background: rgba(8, 135, 46, 0.1);
    color: var(--primary);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 968px) {
    .legal-content-wrapper {
        grid-template-columns: 1fr;
        padding: 3rem 20px;
        top: -40px;
    }

    .legal-toc {
        display: none;
    }

    .legal-hero-title {
        font-size: 2.25rem;
    }

    .back-link {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 120px 0 60px;
    }

    .legal-hero-title {
        font-size: 2rem;
    }

    .legal-hero-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .legal-content-wrapper {
        top: -30px;
    }

    .legal-section h2 {
        font-size: 1.25rem;
    }

    .legal-section h2 .section-number {
        width: 28px;
        height: 28px;
        font-size: 0.8125rem;
    }
}

