/* ============================================
   SECURENCE — Legal Pages Styles
   Extends styles.css + pages.css design system
   ============================================ */

/* ──────────── Page Navigation ──────────── */
.page-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out-expo);
}

.page-nav.scrolled {
    padding: 12px 0;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.page-nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.page-back-link:hover {
    color: var(--neon-purple);
}

.page-back-link svg {
    transition: transform 0.3s var(--ease-out-expo);
}

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

/* ──────────── Legal Hero Section ──────────── */
.legal-hero {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 40px 80px;
    position: relative;
    overflow: hidden;
}

.legal-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.legal-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
}

.legal-hero-glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(168, 85, 247, 0.15);
    top: -100px;
    right: -100px;
    animation: legalGlowFloat1 8s ease-in-out infinite;
}

.legal-hero-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.12);
    bottom: -50px;
    left: -100px;
    animation: legalGlowFloat2 10s ease-in-out infinite;
}

.legal-hero-glow-3 {
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: legalGlowFloat3 12s ease-in-out infinite;
}

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

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

@keyframes legalGlowFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.15; }
}

.legal-hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
}

.legal-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--neon-purple);
    margin-bottom: 32px;
}

.legal-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.legal-hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ──────────── Legal Content Section ──────────── */
.legal-content-section {
    position: relative;
    z-index: 1;
    padding: 80px 0 100px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.legal-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

/* ──────────── Legal Cards Grid ──────────── */
.legal-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* ──────────── Legal Card ──────────── */
.legal-card {
    position: relative;
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease-out-expo);
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
}

.legal-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.legal-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.12);
}

.legal-card.animated:hover {
    transform: translateY(-6px);
}

.legal-card-glow {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.legal-card:hover .legal-card-glow {
    opacity: 1;
}

.legal-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.15);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neon-purple);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.legal-card:hover .legal-card-number {
    background: rgba(168, 85, 247, 0.15);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.2);
}

.legal-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.legal-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ──────────── Legal Footer (Full, matching index.html) ──────────── */
.legal-footer {
    padding: 80px 0 40px;
    background: #030308;
    position: relative;
    border-top: 1px solid var(--border-subtle);
}

.legal-footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 2px;
    background: var(--gradient-primary);
    filter: blur(2px);
    opacity: 0.5;
}

.legal-footer .footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.legal-footer .footer-brand {
    max-width: 300px;
}

.legal-footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.legal-footer .footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.legal-footer .footer-links-group {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.legal-footer .footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-footer .footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.legal-footer .footer-col a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.legal-footer .footer-col a:hover {
    color: var(--neon-purple);
}

.legal-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.04);
    flex-wrap: wrap;
    gap: 16px;
}

.legal-footer .footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.legal-footer .footer-bottom-links {
    display: flex;
    gap: 24px;
}

.legal-footer .footer-bottom-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.legal-footer .footer-bottom-links a:hover {
    color: var(--neon-purple);
}

/* ──────────── Back to Top Button ──────────── */
.legal-back-top {
    text-align: center;
    padding: 40px 0 0;
}

.legal-back-top a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.legal-back-top a:hover {
    color: var(--neon-purple);
}

.legal-back-top a svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.legal-back-top a:hover svg {
    transform: translateY(-4px);
}

/* ──────────── Responsive ──────────── */
@media (max-width: 768px) {
    .legal-hero {
        padding: 140px 20px 60px;
        min-height: 45vh;
    }

    .legal-cards-grid {
        grid-template-columns: 1fr;
    }

    .page-nav-container {
        padding: 0 20px;
    }

    .legal-container {
        padding: 0 20px;
    }

    .legal-content-section {
        padding: 60px 0 80px;
    }

    .legal-footer .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .legal-footer .footer-links-group {
        gap: 40px;
    }

    .legal-footer .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .legal-hero-title {
        font-size: 2rem;
    }

    .legal-card {
        padding: 28px;
    }
}
