/* ================================================
   LEGAL PAGES — Shared Styles
   Used by: privacy.html, terms.html
   Depends on: Same CSS variables as main.css
   ================================================ */

/* --- Reset & Variables --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0e17;
    --card-bg: #111827;
    --border: rgba(255,255,255,0.07);
    --white: #ffffff;
    --grey: #94a3b8;
    --primary: #362FD9;
    --teal: #1aacac;
    --ocean: #2e97a7;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
    --gradient-btn: linear-gradient(135deg, var(--primary) 0%, var(--ocean) 50%, var(--teal) 100%);
    --glow: rgba(26,172,172,0.15);
    --glow-strong: rgba(54,47,217,0.35);
    --font-h: 'Figtree', sans-serif;
    --font-b: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-b);
    background: var(--bg);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* --- Background Effects --- */
body::before {
    content: '';
    position: fixed;
    top: -20%; left: -10%;
    width: 70%; height: 70%;
    background: radial-gradient(ellipse, rgba(54,47,217,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -30%; right: -15%;
    width: 60%; height: 60%;
    background: radial-gradient(ellipse, rgba(26,172,172,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 70%);
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 72.5rem;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    background: rgba(10,14,23,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.navbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar__logo img {
    height: 2.5rem;
    width: auto;
}

.navbar__right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar__link {
    font-size: 0.85rem;
    color: var(--grey);
    font-weight: 400;
    transition: color 0.25s;
}

.navbar__link:hover { color: var(--white); }

.navbar__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: url(/assets/images/academy-gradient.png);
    background-size: 150% 150%;
    background-position: center center;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0.75rem;
    transition: box-shadow 0.3s, transform 0.2s;
}

.navbar__cta:hover {
    box-shadow: 0 0 24px var(--glow-strong), 0 0 48px var(--glow);
    transform: translateY(-1px);
}

/* --- Page Header --- */
.legal-header {
    padding: 8rem 0 3rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.legal-header__title {
    font-family: var(--font-h);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    background: url(/assets/images/academy-gradient.png);
    background-size: cover;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-header__date {
    font-size: 0.85rem;
    color: var(--grey);
}

/* --- Legal Content Body --- */
.legal-content {
    max-width: 52rem;
    padding-bottom: 4rem;
}

.legal-content__intro {
    color: var(--grey);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.legal-content__intro a {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.25s;
}

.legal-content__intro a:hover { color: var(--white); }

/* --- Sections --- */
.legal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section__title {
    font-family: var(--font-h);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.legal-section__subtitle {
    font-family: var(--font-h);
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

.legal-section p {
    color: var(--grey);
    font-size: 0.88rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.legal-section a {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.25s;
}

.legal-section a:hover { color: var(--white); }

/* --- Lists --- */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem;
}

.legal-list li {
    position: relative;
    color: var(--grey);
    font-size: 0.88rem;
    line-height: 1.75;
    padding-left: 1.25rem;
    margin-bottom: 0.3rem;
}

.legal-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
}

.legal-list li strong {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* --- Contact Card --- */
.legal-contact {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-top: 1rem;
}

.legal-contact p {
    color: var(--grey);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.legal-contact p:last-child { margin-bottom: 0; }

.legal-contact strong {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.legal-contact a {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer__copy {
    font-size: 0.78rem;
    color: var(--grey);
}

.footer__links {
    display: flex;
    gap: 1.5rem;
}

.footer__link {
    font-size: 0.78rem;
    color: var(--grey);
    transition: color 0.25s;
}

.footer__link:hover { color: var(--white); }

/* --- Particles --- */
.particle {
    position: fixed;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--teal);
    opacity: 0;
    animation: float var(--dur, 12s) var(--delay, 0s) linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .legal-header { padding: 7rem 0 2rem; }
    .legal-header__title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
    .legal-section__title { font-size: 1.15rem; }
    .navbar__right .navbar__link { display: none; }
}

@media (max-width: 480px) {
    .footer__inner { flex-direction: column; text-align: center; }
    .footer__links { justify-content: center; }
    .legal-content__intro { font-size: 0.85rem; }
}
