/* Shared shell for Variaplay content pages (about, privacy, terms, support). */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --page: #020814;
    --panel: rgba(12, 23, 42, 0.76);
    --panel-strong: rgba(15, 28, 50, 0.92);
    --line: rgba(255, 216, 138, 0.14);
    --line-hot: rgba(255, 200, 92, 0.4);
    --text: #f7fbff;
    --muted: rgba(232, 242, 255, 0.68);
    --dim: rgba(232, 242, 255, 0.46);
    --gold: #ffc85c;
    --moon: #9cf4ff;
}

html {
    min-height: 100%;
    background: var(--page);
}

body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.7;
    background:
        radial-gradient(90% 40% at 50% -8%, rgba(255, 200, 92, 0.09), transparent 62%),
        linear-gradient(170deg, #030a18 0%, #081227 48%, #02060f 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 40;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

a { color: var(--gold); }
a:hover { color: var(--text); }

/* Nav */
.site-nav {
    padding: 18px 20px;
    padding-top: max(18px, env(safe-area-inset-top, 0px) + 10px);
    display: flex;
    justify-content: center;
    background: linear-gradient(180deg, rgba(2, 8, 20, 0.9), rgba(2, 8, 20, 0));
}
.site-nav-inner {
    width: min(1120px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    color: var(--text);
}
.nav-brand:hover { color: var(--text); }
.nav-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    box-shadow: 0 0 24px rgba(76, 131, 255, 0.28);
}
.nav-links {
    display: flex;
    gap: 22px;
    font-size: 0.92rem;
    font-weight: 600;
}
.nav-links a {
    color: var(--muted);
    text-decoration: none;
}
.nav-links a:hover { color: var(--gold); }

/* Content column */
.page {
    flex: 1;
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 26px 22px 56px;
    padding-left: max(22px, env(safe-area-inset-left, 0px) + 22px);
    padding-right: max(22px, env(safe-area-inset-right, 0px) + 22px);
}

.page h1 {
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(2.1rem, 5vw, 2.9rem);
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    color: var(--text);
}

.page .updated {
    font-size: 0.85rem;
    color: var(--dim);
    margin-bottom: 32px;
}

.page h2 {
    font-family: Fraunces, Georgia, serif;
    font-size: 1.34rem;
    font-weight: 600;
    color: var(--text);
    margin: 34px 0 10px;
}

.page h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--muted);
    margin: 18px 0 6px;
}

.page p, .page li {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 14px;
}
.page li { margin-bottom: 8px; }
.page ul { padding-left: 22px; }
.page strong { color: var(--text); }
.page em { color: var(--text); }

/* Quick-facts definition list (about page) */
.facts dl {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 6px 14px;
    margin: 0;
}
.facts dt {
    color: var(--dim);
    font-weight: 700;
}
.facts dd {
    margin: 0 0 10px;
    color: var(--muted);
}

/* Highlight card (support page) */
.contact-card {
    margin: 0 0 28px;
    padding: 18px 22px;
    background: linear-gradient(135deg, var(--panel-strong), var(--panel));
    border: 1px solid var(--line);
    border-radius: 14px;
}
.contact-card p { margin: 0; }

/* In-page nav at the bottom of content */
.page-nav {
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid rgba(157, 207, 255, 0.1);
    font-size: 0.9rem;
}
.page-nav a {
    display: inline-block;
    margin-right: 16px;
    color: var(--muted);
    text-decoration: none;
}
.page-nav a:hover { color: var(--gold); }

/* Footer */
.site-footer {
    padding: 16px 22px 18px;
    padding-bottom: max(18px, env(safe-area-inset-bottom, 0px) + 12px);
    color: var(--dim);
    border-top: 1px solid rgba(157, 207, 255, 0.1);
    text-align: center;
    font-size: 0.86rem;
}
.site-footer a {
    color: var(--muted);
    text-decoration: none;
}
.site-footer a:hover { color: var(--gold); }
.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
