:root {
    --space-dark: #0a0a1a;
    --space-purple: #1a1a3a;
    --accent-gold: #ffd166;
    --accent-cyan: #4ecdc4;
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    margin: 0;
    padding: 32px 18px 90px;
    color: #f6f2ff;
    background:
        radial-gradient(circle at 15% 12%, rgba(78, 205, 196, 0.13), transparent 28rem),
        radial-gradient(circle at 85% 25%, rgba(199, 125, 255, 0.14), transparent 30rem),
        linear-gradient(160deg, var(--space-purple), var(--space-dark) 65%);
    font-family: 'Nunito', sans-serif;
    line-height: 1.65;
}

.content-page {
    width: min(760px, 100%);
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--accent-cyan);
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

h1 {
    margin: 0 0 8px;
    color: var(--accent-gold);
    font-size: clamp(2rem, 7vw, 3.5rem);
    line-height: 1.08;
}

h2 {
    margin: 34px 0 8px;
    color: #ffffff;
    font-size: 1.25rem;
}

p,
ul {
    margin: 0 0 16px;
}

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

.intro,
.privacy-summary {
    margin: 24px 0 32px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
}

.privacy-summary strong {
    color: var(--accent-gold);
}

.updated {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

.page-footer {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 404: a small lost-in-space scene with the planet standing in for zero. */
.error-page {
    display: grid;
    place-items: center;
    min-height: 100dvh;
    padding: 32px 18px;
    overflow: hidden;
    text-align: center;
}

.error-page::before,
.error-page::after {
    position: fixed;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: white;
    content: '';
    opacity: 0.75;
    box-shadow:
        8vw 12vh white, 22vw 76vh #ffd166, 38vw 18vh white,
        55vw 84vh #4ecdc4, 72vw 14vh white, 88vw 68vh white,
        14vw 48vh #c77dff, 46vw 63vh white, 78vw 43vh #ffd166;
}

.error-page::after {
    inset: 9vh auto auto 4vw;
    transform: rotate(18deg) scale(0.65);
    opacity: 0.4;
}

.error-content {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
}

.lost-ufo {
    width: clamp(90px, 20vw, 145px);
    filter: drop-shadow(0 0 25px rgba(78, 205, 196, 0.45));
    animation: lostUfoFloat 3s ease-in-out infinite;
}

.error-label {
    margin: 12px 0 0;
    color: var(--accent-gold);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.error-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 2vw, 14px);
    margin: 2px 0 4px;
    color: white;
    font-size: clamp(5rem, 22vw, 10rem);
    font-weight: 900;
    line-height: 0.95;
    text-shadow: 0 0 24px rgba(199, 125, 255, 0.45);
}

.error-code img {
    width: clamp(82px, 20vw, 150px);
    height: clamp(82px, 20vw, 150px);
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(255, 209, 102, 0.4));
}

.error-content h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 8vw, 3.4rem);
}

.error-content > p:not(.error-label) {
    max-width: 520px;
    margin: 0 auto 26px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 3vw, 1.15rem);
}

.return-button {
    display: inline-block;
    padding: 13px 22px;
    border: 2px solid var(--accent-cyan);
    border-radius: 999px;
    color: white;
    background: rgba(78, 205, 196, 0.14);
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 0 24px rgba(78, 205, 196, 0.16);
    transition: transform 0.2s ease, background 0.2s ease;
}

.return-button:hover {
    background: rgba(78, 205, 196, 0.25);
    transform: translateY(-2px);
}

@keyframes lostUfoFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
    .lost-ufo,
    .return-button {
        animation: none;
        transition: none;
    }
}
