/* ============================================
   LEGAL PAGE — Styles
   ============================================ */

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.4s ease;
}

.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 2rem;
}

.nav__left {
    display: flex;
    align-items: center;
}

.nav__back {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav__back:hover {
    color: var(--gold-light);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(-3px);
}

.nav__back-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav__back:hover .nav__back-icon {
    transform: translateX(-3px);
}

.nav__logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav__logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav__logo:hover {
    transform: scale(1.05);
}

/* --- Legal Content --- */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: calc(80px + 4rem) 2rem 4rem;
}

.legal-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 1.5rem;
}

.legal-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
    border-radius: 2px;
}

.legal-section>p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-article {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.legal-article:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.legal-article h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.legal-article p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-article ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.legal-article li {
    padding: 0.5rem 0 0.5rem 1.8rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-article li::before {
    content: '›';
    position: absolute;
    left: 0.5rem;
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .legal-content {
        padding: calc(70px + 2rem) 1.5rem 3rem;
    }

    .nav__container {
        padding: 0 1rem;
    }

    .nav__logo {
        height: 32px;
    }

    .nav__back-text {
        display: none;
    }

    .nav__back {
        padding: 0.5rem;
    }

    .legal-article {
        padding: 1.5rem;
    }
}

/* --- Light Theme Overrides (Specific to Legal) --- */
[data-theme="light"] .legal-article {
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .legal-article:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border-color: rgba(255, 160, 0, 0.4);
}

[data-theme="light"] .nav__back:hover {
    background: rgba(255, 160, 0, 0.1);
    color: var(--gold-dark);
}

[data-theme="light"] .legal-title::after {
    background: linear-gradient(90deg, #FFD54F, #FFA000, #FFD54F);
}