/* =================================================================
   Legal & Text-Heavy Page Stylesheet (legal.css)
   - Aligned with site palette: black + brand green
   ================================================================= */

:root {
    --abcl-black: #0f172a;
    --abcl-green: #4ade80;
    --abcl-green-soft: #d4f0d4;
}

/* --- Hero Section — animated tech background --- */
.legal-hero {
    position: relative;
    height: 40vh;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, #020617 0%, #0a0f1c 50%, #0f172a 100%);
    background-size: 200% 200%;
    animation: legal-bg-shift 18s ease-in-out infinite;
    padding: 2rem 0;
    overflow: hidden;
}
@keyframes legal-bg-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(74, 222, 128, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 222, 128, 0.08) 1px, transparent 1px);
    background-size: 44px 44px, 44px 44px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
    .legal-hero { animation: none; }
}

/* --- Content Section --- */
.legal-content-section {
    padding: 5rem 0;
    background-color: #fff;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #333;
}

.legal-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-color);
}

.legal-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--abcl-black);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--abcl-green);
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.legal-content a:hover {
    color: #22c55e;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
}