/* ===== Legal Product Page Styles ===== */

html {
    scroll-behavior: smooth;
}

/* ---------- Hero & Base ---------- */
.legal-hero {
    background: linear-gradient(135deg, #0a0f2c 0%, #0d1b3e 40%, #112240 100%);
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(201, 168, 76, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Subtle grid overlay */
.legal-grid-bg {
    background-image:
        linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ---------- Gold Accent Utilities ---------- */
.text-gold { color: #c9a84c; }
.bg-gold { background-color: #c9a84c; }
.border-gold { border-color: #c9a84c; }
.bg-gold-subtle { background-color: rgba(201, 168, 76, 0.08); }

.gold-gradient-text {
    background: linear-gradient(135deg, #c9a84c, #e8d48b, #c9a84c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Floating Scales Animation ---------- */
.scales-float {
    animation: scalesFloat 6s ease-in-out infinite;
}

@keyframes scalesFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-12px) rotate(1deg); }
    75% { transform: translateY(8px) rotate(-1deg); }
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---------- Cards ---------- */
.legal-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.legal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c9a84c, transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.legal-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 168, 76, 0.35);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(201, 168, 76, 0.05);
}

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

/* Light variant for Why Partner section */
.legal-card-light {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.legal-card-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0a0f2c, #c9a84c);
    opacity: 0;
    transition: opacity 0.4s;
}

.legal-card-light:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(10, 15, 44, 0.12);
}

.legal-card-light:hover::before {
    opacity: 1;
}

/* ---------- Icon Container ---------- */
.icon-ring {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.05));
    border: 1px solid rgba(201, 168, 76, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.legal-card:hover .icon-ring,
.legal-card-light:hover .icon-ring {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.25), rgba(201, 168, 76, 0.1));
    border-color: rgba(201, 168, 76, 0.4);
}

/* ---------- Pulse Dot ---------- */
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #c9a84c;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(201, 168, 76, 0); }
}

/* ---------- Stat Counter ---------- */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c9a84c, #e8d48b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* ---------- Quote Block ---------- */
.quote-block {
    position: relative;
    padding-left: 2rem;
    border-left: 3px solid #c9a84c;
}

.quote-block::before {
    content: '\201C';
    position: absolute;
    top: -20px;
    left: 8px;
    font-size: 4rem;
    color: rgba(201, 168, 76, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

/* ---------- Particle Canvas ---------- */
#legalParticles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ---------- Separator ---------- */
.gold-separator {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c9a84c, #e8d48b);
    border-radius: 2px;
}

/* ---------- Badge ---------- */
.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(201, 168, 76, 0.1);
    color: #c9a84c;
    border: 1px solid rgba(201, 168, 76, 0.25);
}

/* ---------- Nav for Legal Page ---------- */
.legal-nav {
    background: rgba(10, 15, 44, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2.2rem;
    }
}
