/* Nitro Renegade - Legal Pages (Terms, Privacy, Cookies) - matches the bright landing theme */

:root {
    --sky: #37c6ff;
    --grape: #7b2ff7;
    --grape-deep: #3a0f88;
    --lime: #a6f34a;
    --lime-deep: #4e9c12;
    --magenta: #ff4fa3;
    --magenta-deep: #c11f6e;
    --corn: #ffd23f;
    --tangerine: #ff9f1c;
    --berry: #b34fff;
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.82);
    --card: rgba(255, 255, 255, 0.12);
    --card-line: rgba(255, 255, 255, 0.30);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Fredoka', 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% -8%, rgba(200, 206, 216, 0.20) 0%, transparent 45%),
        radial-gradient(circle at 100% 25%, rgba(255, 79, 163, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 0% 55%, rgba(166, 243, 74, 0.22) 0%, transparent 42%),
        linear-gradient(180deg, #2b2f38 0%, #22242c 48%, #14161b 100%);
    background-attachment: fixed;
}

/* Press Start 2P - retro candy display for the main title, matching the landing */
main h1 { font-family: 'Press Start 2P', monospace; }

/* Force form controls onto the body font (they don't inherit by default) so the
   legal pages stay type-consistent with the rest of the site. */
button, input, select, textarea { font-family: inherit; }

/* Nav */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(26, 28, 35, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(166, 243, 74, 0.4);
}
.nav-inner {
    max-width: 1140px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.7rem 1.5rem;
}
.logo {
    text-decoration: none; color: var(--text);
    display: flex; align-items: center; gap: 0.5rem;
}
.logo-img {
    display: block; height: 30px; width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.beta-badge {
    display: inline-block;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem; line-height: 1; letter-spacing: 0.08em;
    color: #143d00;
    background: linear-gradient(180deg, #c4ff7a 0%, var(--lime) 100%);
    padding: 0.28rem 0.4rem 0.24rem; border-radius: 4px;
    box-shadow: 0 2px 0 var(--lime-deep), inset 0 1px 1px rgba(255,255,255,0.6);
    vertical-align: middle;
}
.breadcrumb {
    font-size: 0.95rem; color: var(--text-dim); font-weight: 500;
    display: flex; align-items: center; gap: 0.5rem;
}
.breadcrumb a { color: var(--lime); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--magenta); }
.breadcrumb .sep { opacity: 0.4; }

/* Full top nav (matches the landing page) */
.nav-links { display: flex; align-items: center; gap: 1.1rem; }
.nav-link {
    color: var(--text-dim); text-decoration: none;
    font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em;
    white-space: nowrap; transition: color 0.15s;
}
.nav-link:hover { color: var(--corn); }
.nav-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    padding: 0.4rem; margin: -0.4rem; margin-left: auto;
    flex-direction: column; gap: 5px;
}
.nav-toggle-bar {
    display: block; width: 24px; height: 2px; border-radius: 2px;
    background: var(--text); transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(20, 22, 27, 0.98); backdrop-filter: blur(10px);
        border-bottom: 2px solid rgba(166, 243, 74, 0.4);
        padding: 0.5rem 0; max-height: 0; overflow: hidden;
        transition: max-height 0.28s ease;
    }
    .nav-links.open { max-height: 80vh; overflow-y: auto; }
    .nav-link { padding: 0.85rem 1.5rem; font-size: 1rem; border-top: 1px solid rgba(255,255,255,0.06); }
    .nav-links .btn-play, .nav-links .btn-wishlist { margin: 0.8rem 1.5rem 0.4rem; text-align: center; }
}
.btn-play {
    background: linear-gradient(180deg, #c4ff7a 0%, var(--lime) 45%, var(--lime-deep) 100%);
    color: #143d00; padding: 0.6rem 1.3rem; border-radius: 9999px;
    font-family: 'Fredoka', sans-serif; font-size: 0.95rem; font-weight: 700;
    text-decoration: none; letter-spacing: 0.02em; white-space: nowrap;
    box-shadow: 0 4px 0 var(--lime-deep), 0 6px 14px rgba(0,0,0,0.3), inset 0 2px 2px rgba(255,255,255,0.7);
    transition: transform 0.12s, box-shadow 0.12s;
}
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--lime-deep), 0 10px 20px rgba(0,0,0,0.35), inset 0 2px 2px rgba(255,255,255,0.7); }
.btn-play:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--lime-deep), inset 0 2px 2px rgba(255,255,255,0.6); }
.btn-wishlist {
    background: linear-gradient(180deg, #ff8fc4 0%, var(--magenta) 45%, var(--magenta-deep) 100%);
    color: #fff; padding: 0.6rem 1.3rem; border-radius: 9999px;
    font-family: 'Fredoka', sans-serif; font-size: 0.95rem; font-weight: 700;
    text-decoration: none; letter-spacing: 0.02em; white-space: nowrap;
    box-shadow: 0 4px 0 var(--magenta-deep), 0 6px 14px rgba(0,0,0,0.3), inset 0 2px 2px rgba(255,255,255,0.5);
    transition: transform 0.12s, box-shadow 0.12s;
}
.btn-wishlist:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--magenta-deep), 0 10px 20px rgba(0,0,0,0.35), inset 0 2px 2px rgba(255,255,255,0.5); }
.btn-wishlist:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--magenta-deep), inset 0 2px 2px rgba(255,255,255,0.45); }

/* Breadcrumb bar - shown below the nav on pages that are not a top-nav tab */
.crumb-bar { padding: 4.8rem 1.5rem 0; }
.crumb-inner {
    max-width: 760px; margin: 0 auto;
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; color: var(--text-dim);
    padding-bottom: 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.crumb-inner a { color: var(--lime); text-decoration: none; font-weight: 600; }
.crumb-inner a:hover { color: var(--magenta); }
.crumb-inner .sep { opacity: 0.4; }
.crumb-bar + main { padding-top: 1.8rem; }

/* Content */
main {
    max-width: 760px;
    margin: 0 auto;
    padding: 7rem 1.5rem 4rem;
}

main h1 {
    font-size: 1.9rem;
    color: var(--corn);
    margin-bottom: 0.6rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-shadow: 3px 3px 0 var(--magenta-deep), 0 0 30px rgba(255, 210, 63, 0.35);
}

.updated {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

section {
    margin-bottom: 1.6rem;
    background: var(--card);
    border: 1px solid var(--card-line);
    border-radius: 16px;
    padding: 1.4rem 1.6rem;
}

section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--lime);
    margin-bottom: 0.7rem;
}

section p {
    font-size: 1.02rem;
    color: var(--text-dim);
    margin-bottom: 0.7rem;
    line-height: 1.7;
}
section p:last-child { margin-bottom: 0; }

section p strong { color: var(--text); font-weight: 600; }

/* Table (cookies page) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.6rem 0;
    font-size: 0.95rem;
}
th, td {
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
th {
    color: var(--lime);
    font-weight: 700;
}
td { color: var(--text-dim); }

/* Phones: stack each row as a card. The names are long unbreakable strings
   (nitrorenegade_cookie_consent), and four columns of them made the whole page
   598px wide on a 390px screen, which pushed the nav toggle off-screen. */
@media (max-width: 600px) {
    table, tbody, tr, td { display: block; width: 100%; }
    table tr:first-child { display: none; }
    table tr { padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
    table td { border: 0; padding: 0.2rem 0; overflow-wrap: anywhere; }
    table td::before {
        content: attr(data-label);
        display: block;
        color: var(--lime);
        font-weight: 700;
        font-size: 0.8rem;
    }
}

/* Footer */
footer {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}
footer a { color: var(--lime); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--magenta); }

.sep { margin: 0 0.5rem; opacity: 0.4; }
.footer-powered { margin-top: 0.6rem; }
.footer-powered a { color: var(--lime); text-decoration: underline; font-weight: 600; }
.footer-powered a:hover { color: var(--magenta); }
.footer-powered .studio { color: var(--text-dim); }

/* Mobile */
@media (max-width: 768px) {
    main h1 { font-size: 1.35rem; }
    section h2 { font-size: 1.15rem; }
    section p { font-size: 0.98rem; }
}

/* Nitro Renegade text wordmark (no logo artwork yet) */
.logo-text {
    font-family: 'Press Start 2P', monospace; font-size: 14px; letter-spacing: 1px; color: #f2eef8;
    text-shadow: 0 0 6px #ff2fb4, 0 0 16px rgba(255, 47, 180, .6);
}
