/* Chessingo - 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: 'Outfit', '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;
}

/* Bangers - the comic display face used for titles site-wide (Joe, 2026-10-12) */
main h1 { font-family: 'Bangers', 'Outfit', sans-serif; font-weight: 400; letter-spacing: 0.03em; }

/* 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: 960px; 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: 22px; width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
/* Global top nav component (shell-nav.js) - legal pages fork the nav styling,
   so the shared link/chip/burger rules live here too. */
.nav-links { display: flex; align-items: center; gap: 1.2rem; }
.nav-link {
    color: var(--text-dim); text-decoration: none;
    font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em;
    transition: color 0.15s;
}
.nav-link:hover { color: var(--corn); }
.nav-link.is-active { color: var(--sky); }
.nav-signin { color: var(--text); }
.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: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 700;
    text-decoration: none; letter-spacing: 0.02em;
    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); }
.nav-account { position: relative; }
.nav-chip {
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
    color: var(--text); border-radius: 9999px; padding: 0.35rem 0.8rem;
    font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer;
}
.nav-chip:hover { border-color: var(--sky); }
.nav-chip-dot {
    width: 18px; height: 18px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--lime), var(--lime-deep));
}
.nav-menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px;
    display: flex; flex-direction: column;
    background: rgba(26,28,35,0.98); border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px; padding: 6px; z-index: 120;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}
.nav-menu[hidden] { display: none; }
.nav-menu-item {
    text-align: left; background: none; border: 0; color: var(--text);
    font: inherit; font-size: 0.9rem; text-decoration: none;
    padding: 0.55rem 0.8rem; border-radius: 8px; cursor: pointer;
}
.nav-menu-item:hover { background: rgba(255,255,255,0.08); color: var(--corn); }
.nav-burger { display: none; flex-direction: column; gap: 4px; cursor: pointer; background: none; border: 0; padding: 6px; margin-left: auto; }
.nav-burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--text); }
@media (max-width: 720px) {
    .nav-burger { display: flex; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0.4rem;
        background: rgba(26,28,35,0.98); border-bottom: 2px solid rgba(166,243,74,0.4);
        padding: 0.9rem 1.5rem; display: none;
    }
    .nav-links.is-open { display: flex; }
    .nav-menu { position: static; box-shadow: none; margin-top: 6px; }
}

/* Breadcrumb sub-bar sits below the fixed global nav (GDD s11.1) */
.breadcrumb-bar {
    max-width: 960px; margin: 0 auto; padding: 5.2rem 1.5rem 0;
}
.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; }

/* Content */
main {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem 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). It scrolls inside its own box on a phone, so the page
   itself never scrolls sideways. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.table-scroll table { min-width: 560px; }
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); }

/* 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; }

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