/* =============================================
   SongSlipDB — Terms & Conditions Page
   Aesthetic: Dark Stage / Neon Rig
   Consistent with full system CSS
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@300;400;600;700&family=Barlow+Condensed:wght@300;400;700&display=swap');

:root {
    --neon-cyan:     #02df87;
    --neon-magenta:  #FF2D78;
    --dark-base:     #080B12;
    --dark-mid:      #0E1220;
    --dark-card:     #131929;
    --dark-surface:  rgba(255,255,255,0.04);
    --border-glow:   rgba(2,223,135,0.18);
    --text-bright:   #F0F4FF;
    --text-muted:    #7A8BA8;
    --text-subtle:   #4A5A72;
    --font-display:  'Bebas Neue', sans-serif;
    --font-cond:     'Barlow Condensed', sans-serif;
    --font-body:     'Barlow', sans-serif;
    --radius-card:   16px;
    --transition:    0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    font-family: var(--font-body);
    background: var(--dark-base);
    color: var(--text-bright);
}

/* ======================================
   TWO-COLUMN LAYOUT
====================================== */
.main {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
}

/* ======================================
   LEFT — HERO (sticky)
====================================== */
.hero {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--dark-base);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem;
    overflow: hidden;
    border-right: 1px solid var(--border-glow);
}

/* Ambient glow pools */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(2,223,135,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(255,45,120,0.05) 0%, transparent 55%);
    pointer-events: none;
}

/* Grid overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(2,223,135,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(2,223,135,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.hero-content::before {
    content: '— LEGAL INFORMATION —';
    display: block;
    font-family: var(--font-cond);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    color: var(--neon-cyan);
    opacity: 0.7;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4.5vw, 4.2rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 0.95;
    color: var(--text-bright);
    margin-bottom: 1.2rem;
}

.hero-content p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
}

.hero-content::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
    margin-top: 2rem;
    opacity: 0.5;
}

/* ======================================
   RIGHT — SCROLLABLE CONTENT PANEL
====================================== */
.content-section {
    background: var(--dark-mid);
    padding: 0 1.75rem 3rem;
    overflow-y: auto;
    max-height: 100vh;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(2,223,135,0.15) transparent;
}

.content-section::-webkit-scrollbar { width: 5px; }
.content-section::-webkit-scrollbar-thumb {
    background: rgba(2,223,135,0.18);
    border-radius: 3px;
}

/* Top accent line */
.content-section::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%, var(--neon-cyan) 35%,
        var(--neon-magenta) 65%, transparent 100%);
    opacity: 0.55;
    margin-bottom: 1.75rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* ── Logo ── */
.logo-container {
    text-align: center;
    margin-bottom: 1.75rem;
}

.logo-container img {
    max-width: 210px;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(2,223,135,0.18));
}

/* ── Content wrapper ── */
.content {
    max-width: 480px;
    margin: 0 auto;
}

/* ======================================
   TERMS CARDS
====================================== */
.terms-section {
    background: var(--dark-card);
    border: 1px solid var(--border-glow);
    border-left: 3px solid rgba(2,223,135,0.22);
    border-radius: var(--radius-card);
    padding: 1.25rem 1.35rem;
    margin-bottom: 0.85rem;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    opacity: 0;
    animation: cardReveal 0.4s ease forwards;
}

.terms-section:nth-child(1)   { animation-delay: 0.05s; }
.terms-section:nth-child(2)   { animation-delay: 0.10s; }
.terms-section:nth-child(3)   { animation-delay: 0.15s; }
.terms-section:nth-child(4)   { animation-delay: 0.20s; }
.terms-section:nth-child(5)   { animation-delay: 0.25s; }
.terms-section:nth-child(n+6) { animation-delay: 0.30s; }

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.terms-section:hover {
    border-left-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(2,223,135,0.07),
                inset 0 0 0 1px rgba(2,223,135,0.03);
    transform: translateY(-2px);
}

/* Section heading — tracked uppercase label with rule */
.terms-section h2 {
    font-family: var(--font-cond);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terms-section h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(2,223,135,0.1);
}

/* Body text */
.terms-section p {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

.terms-section p:last-child { margin-bottom: 0; }

/* Bullet list */
.terms-section ul {
    margin: 0 0 0.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.terms-section li {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-muted);
}

.terms-section li::marker {
    color: rgba(2,223,135,0.4);
}

/* Contact email */
.contact-email {
    font-family: var(--font-cond);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(2,223,135,0.25);
}

/* ======================================
   RESPONSIVE
====================================== */
@media (max-width: 1024px) {
    .main {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .content-section {
        order: 1;
        max-height: none;
        overflow-y: visible;
        padding: 0 1.25rem 3rem;
    }

    .hero {
        order: 2;
        position: relative;
        height: auto;
        flex: none;
        padding: 2.5rem 1.5rem;
        text-align: center;
        border-right: none;
        border-top: 1px solid var(--border-glow);
        min-height: 220px;
    }

    .hero-content { margin: 0 auto; }
    .hero-content::before { text-align: center; }
    .hero-content p { margin: 0 auto; }
    .hero-content::after { margin: 1.5rem auto 0; }
}

@media (max-width: 640px) {
    .hero { display: none; }

    .content-section {
        padding: 0 1rem 2.5rem;
    }

    .logo-container img { max-width: 170px; }

    .terms-section {
        padding: 1rem 1.1rem;
        margin-bottom: 0.65rem;
    }

    .terms-section h2 { font-size: 0.65rem; }
    .terms-section p  { font-size: 0.84rem; }
    .terms-section li { font-size: 0.84rem; }
}