*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #04061a;
    --bg2: #080c24;
    --accent: #e8c84a;
    --text: #ffffff;
    --muted: #8a8fa8;
    --card-bg: #0c1230;
    --nav-height: 56px;
}

body {
    background: var(--bg2);
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: linear-gradient(to bottom, rgba(4, 6, 26, .95) 0%, rgba(4, 6, 26, 0) 100%);
}

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ccd;
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
}

.legal-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.03);
    border: 1px #ffffff;
    border-radius: 10px;
}


/* legal header section */
.legal-header {
    margin-bottom: 2.2rem;
    border-bottom: 2px solid #eef2f8;
    padding-bottom: 1rem;
}

.legal-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #13294b;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.last-updated {
    font-size: 0.85rem;
    color: #5b6e8c;
    background: #f1f4f9;
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-weight: 450;
}

/* content typography */
.legal-content h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1f2f44;
    margin: 1.8rem 0 1rem 0;
    padding-bottom: 0.2rem;
    border-left: 4px solid #2c4b7a;
    padding-left: 1rem;
}

.legal-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3b4f;
    margin: 1.4rem 0 0.5rem 0;
}

.legal-content p {
    margin-bottom: 1rem;
    color: #2c3e4e;
    font-weight: 400;
    font-size: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin: 0.8rem 0 1.2rem 1.8rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: #2c3e4e;
}

.legal-content strong {
    color: #0e2a3b;
    font-weight: 600;
}

hr.divider-light {
    margin: 1.5rem 0;
    border: 0;
    height: 1px;
    background: #e4e9f0;
}

/* ── FOOTER ── */
main {
    background: var(--bg2);
    border-top: 50px solid rgba(255, 255, 255, .05);
    padding: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 1px;
}


/* footer area (professional) */




/* ── FOOTER ── */
footer {
    background: var(--bg2);
    border-top: 1px solid rgba(255, 255, 255, .05);
    padding: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 1px;
}


/* main card – clean white panel, exactly replicating structure from the image */
.card {
    width: 100%;
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.02);
    padding: 3rem 3rem 2.8rem 3rem;
}

/* grid layout: 4 columns exactly like the image shows:
           Main | Learn | Legal | Social */
.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 2rem;
    margin-bottom: 2rem;
}

/* each column styling */
.nav-col h3 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: #c8c8e9;
    margin-bottom: 1.25rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid #eaeef2;
    display: inline-block;
}

.nav-col ul {
    list-style: none;
}

.nav-col li {
    margin-bottom: 0.8rem;
}

.nav-col a {
    text-decoration: none;
    color: #8a8a96;
    font-weight: 450;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-col a:hover {
    color: #e8c84a;
    transform: translateX(3px);
}

/* specific style for social links (icons) */
.social-links a i {
    width: 1.4rem;
    font-size: 1.2rem;
    color: #b0b8d0;
}

.social-links a:hover i {
    color: #e8c84a;
}

/* bottom extra line – optional separator (matching minimal style) */
.footer-bottom {
    margin: 2rem;
    padding: 1.2rem;
    border-top: 1px solid #edf0f5;
    text-align: center;
    font-size: 0.8rem;
    color: #8a8a96;
    width: 100%;
}

.back-top {
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    color: #8a8fa8;
    transition: color .2s;

}

.back-top:hover {
    color: var(--accent);
}


/* responsive: on smaller screens, two columns then stacked */
@media (max-width: 750px) {
    .card {
        padding: 2rem;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-nav {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-col h3 {
        margin-bottom: 0.9rem;
    }
}

/* additional heading style: image like plain modern */
.site-header {
    margin-bottom: 2rem;
    text-align: left;
}

.site-header h2 {
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8f8f9e;
    border-left: 4px solid #cbd5e1;
    padding-left: 12px;
}

/* ── ARROW SVG ── */
.arrow-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── DIVIDER LINE ── */
.divider {
    height: 1px;
    background: rgba(255, 255, 255, .06);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg);
        padding: 24px 32px;
        gap: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .hero-name {
        font-size: 72px;
    }

    .portfolio-item {
        grid-template-columns: 36px 1fr;
        gap: 0 12px;
    }

    .portfolio-num {
        font-size: 36px;
    }

    .chars-grid {
        grid-template-columns: 1fr 1fr;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .chars-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .section,
    #portfolio .inner,
    #characters .inner {
        padding: 60px 20px;
    }
}