/* Cryst-9 - Legal Pages (Terms, Privacy, Cookies) - matches the Battlestar Steel landing theme */

:root {
    --sky: #b9c6d1;            /* cool silver (primary accent/hover) */
    --grape: #6d7f8f;          /* gunmetal steel */
    --grape-deep: #4a5866;
    --lime: #9fb0bd;           /* brushed steel */
    --lime-deep: #63737f;
    --magenta: #d6e0e8;        /* bright chrome highlight */
    --magenta-deep: #92a0ac;
    --corn: #eef3f7;           /* near-white */
    --tangerine: #aeb9c3;      /* pale steel */
    --berry: #8593a0;          /* slate steel */
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.82);
    --card: rgba(255, 255, 255, 0.06);
    --card-line: rgba(185, 198, 209, 0.24);
}

* { 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(185, 198, 209, 0.14) 0%, transparent 46%),
        radial-gradient(circle at 100% 22%, rgba(120, 140, 160, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 0% 62%, rgba(214, 224, 232, 0.10) 0%, transparent 46%),
        linear-gradient(180deg, #1b2127 0%, #12161b 44%, #0a0d10 100%);
    background-attachment: fixed;
}

/* Press Start 2P - retro arcade 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(18, 22, 26, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(185, 198, 209, 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: 36px; width: auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}
.logo-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.82rem; line-height: 1; color: var(--text);
    text-shadow: 0 0 14px rgba(185,198,209,0.45), 0 2px 0 rgba(0,0,0,0.4);
}
.logo-text b { color: var(--sky); font-weight: inherit; }
.beta-badge {
    display: inline-block;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem; line-height: 1; letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(180deg, #c4d0da 0%, var(--grape) 100%);
    padding: 0.28rem 0.4rem 0.24rem; border-radius: 4px;
    box-shadow: 0 2px 0 #3a4650, inset 0 1px 1px rgba(255,255,255,0.35);
    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; }

/* 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(185, 198, 209, 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); }

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