/* ===========================================
   Sproud Static Site - Shared Styles
   =========================================== */

/* CSS Variables */
:root {
    --bg-primary: #0A0A0A;
    --bg-secondary: #111111;
    --bg-dark: #000000;
    --bg-card: rgba(255, 255, 255, 0.04);
    --accent: #333333;
    --accent-hover: #444444;
    --accent-light: #AAAAAA;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --border: rgba(255, 255, 255, 0.08);
}

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

/* Safari iOS overscroll fix - shows this color during bounce */
html {
    background-color: #111111;
}

/* Base Body Styles */
body {
    font-family: 'Sen', -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(80% 80% at 50% 30%, #1a1a1a 0%, #111111 40%, #0a0a0a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================================
   Skip Link (Accessibility)
   =========================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 1000;
    padding: 0.75rem 1.5rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
}

.skip-link:focus {
    top: 0;
}

/* ===========================================
   Focus Visible (Accessibility)
   =========================================== */
:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}

/* ===========================================
   Background Particles Animation
   =========================================== */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: float 20s infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 2s; }
.particle:nth-child(3) { left: 60%; top: 10%; animation-delay: 4s; }
.particle:nth-child(4) { left: 80%; top: 50%; animation-delay: 6s; }
.particle:nth-child(5) { left: 40%; top: 60%; animation-delay: 8s; }
.particle:nth-child(6) { left: 90%; top: 30%; animation-delay: 10s; }
.particle:nth-child(7) { left: 5%; top: 50%; animation-delay: 12s; }
.particle:nth-child(8) { left: 75%; top: 85%; animation-delay: 14s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.5); opacity: 0.6; }
}

/* ===========================================
   Header
   =========================================== */
header {
    position: relative;
    z-index: 10;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 34px;
    width: auto;
}

/* ===========================================
   Main Content Container
   =========================================== */
main {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

/* ===========================================
   Hero Section
   =========================================== */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-family: 'Sen', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (forced-colors: active) {
    .hero h1 {
        background: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: unset;
        background-clip: unset;
        color: CanvasText;
    }
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.hero .last-update {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ===========================================
   Legal Content (shared for privacy & terms)
   =========================================== */
.legal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent-light);
    border-radius: 2px;
}

.legal-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul {
    color: var(--text-secondary);
    margin: 1rem 0 1rem 1.5rem;
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 0.75rem;
}

.legal-content a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Warning Box (crisis/safety notices in legal pages) */
.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: #FECACA;
}

/* Safety Info section (bottom of legal pages) */
.safety-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* ===========================================
   Footer
   =========================================== */
footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-light);
}

.footer-section a {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* ===========================================
   Responsive - Base
   =========================================== */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }

    main {
        padding: 1.5rem 1.5rem 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .legal-content {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
        width: 100%;
    }
}

/* ===========================================
   Reduced Motion
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================================
   Print Styles
   =========================================== */
@media print {
    body {
        background: #FFFFFF;
        color: #000000;
    }

    .bg-particles,
    .skip-link {
        display: none;
    }

    header, footer {
        border-color: #CCCCCC;
    }

    .legal-content {
        background: none;
        border: 1px solid #CCCCCC;
        padding: 1rem;
    }

    .legal-content h2,
    .legal-content h3,
    .legal-content strong {
        color: #000000;
    }

    .legal-content p,
    .legal-content ul,
    .legal-content a {
        color: #333333;
    }

    .warning-box {
        background: #FEE2E2;
        border-color: #EF4444;
        color: #991B1B;
    }

    .hero h1 {
        background: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: #000000;
        background-clip: unset;
        color: #000000;
    }

    a {
        color: #333333;
        text-decoration: underline;
    }

    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}
