/* Shared styles for static pages: privacy policy and error pages */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

@media (prefers-color-scheme: dark) {
    body {
        background: #0a0a0a;
        color: #e0e0e0;
    }
}

/* ---------- Page header (privacy) ---------- */

.page-header {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

@media (prefers-color-scheme: dark) {
    .page-header {
        background: rgba(10, 10, 10, 0.95);
        border-bottom-color: #222;
    }
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    color: #000;
}

@media (prefers-color-scheme: dark) {
    .logo {
        color: #fff;
    }
}

/* ---------- Long-form content (privacy) ---------- */

.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #000;
}

@media (prefers-color-scheme: dark) {
    .content h1 {
        color: #fff;
    }
}

.content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 20px 0;
    color: #000;
}

@media (prefers-color-scheme: dark) {
    .content h2 {
        color: #fff;
    }
}

.content p {
    margin-bottom: 16px;
    color: #666;
}

@media (prefers-color-scheme: dark) {
    .content p {
        color: #aaa;
    }
}

.content ul {
    margin-bottom: 20px;
    margin-left: 20px;
}

.content li {
    margin-bottom: 8px;
    color: #666;
}

@media (prefers-color-scheme: dark) {
    .content li {
        color: #aaa;
    }
}

.last-updated {
    color: #999;
    font-size: 14px;
    margin-bottom: 40px;
}

.page-footer {
    background: #f9f9f9;
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

@media (prefers-color-scheme: dark) {
    .page-footer {
        background: #1a1a1a;
        color: #aaa;
    }
}

/* ---------- Error pages (404 / 500) ---------- */

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.error-container {
    text-align: center;
    padding: 40px 20px;
}

.error-container h1 {
    font-size: 72px;
    margin-bottom: 20px;
    font-weight: 700;
}

.error-container p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

@media (prefers-color-scheme: dark) {
    .error-container p {
        color: #aaa;
    }
}

.error-container a {
    display: inline-block;
    padding: 12px 32px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: opacity 0.3s;
}

@media (prefers-color-scheme: dark) {
    .error-container a {
        background: #fff;
        color: #000;
    }
}

.error-container a:hover {
    opacity: 0.9;
}

/* ---------- Accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
