/* Trivia Heist website: shared styles for the home and privacy pages. */

:root {
    --bg: #f5f4fb;
    --card: #ffffff;
    --text: #1d1b2e;
    --muted: #5d5a73;
    --accent: #5a3df0;
    --accent-soft: #ece8ff;
    --border: #e3e0f0;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0e0c1a;
        --card: #1a1730;
        --text: #f2f0fa;
        --muted: #a8a4c0;
        --accent: #a896ff;
        --accent-soft: #272149;
        --border: #2d2948;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 20px 64px;
}

a {
    color: var(--accent);
}

h1,
h2,
h3 {
    line-height: 1.25;
}

h1 {
    font-size: 2.1rem;
    margin: 0 0 8px;
}

h2 {
    font-size: 1.35rem;
    margin: 40px 0 12px;
}

h3 {
    font-size: 1.05rem;
    margin: 24px 0 8px;
}

.muted {
    color: var(--muted);
}

.hero {
    text-align: center;
    padding: 24px 0 8px;
}

.hero img {
    width: 128px;
    height: 128px;
    border-radius: 29px;
    box-shadow: 0 12px 32px rgba(70, 40, 180, 0.25);
}

.hero p {
    font-size: 1.15rem;
    margin: 0 auto;
    max-width: 520px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px 24px;
    margin: 20px 0;
}

.card h2 {
    margin-top: 0;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.links a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--accent-soft);
    text-decoration: none;
    font-weight: 600;
}

.back {
    display: inline-block;
    margin-bottom: 24px;
    text-decoration: none;
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th,
td {
    text-align: left;
    vertical-align: top;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
}

th {
    font-weight: 600;
}

.table-wrap {
    overflow-x: auto;
}

footer {
    margin-top: 56px;
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
}
