/* Legal documents shared stylesheet — reused by terms.html, privacy.html, location.html.
   Designed to render well both standalone in browser and inside iOS in-app WKWebView.
   Light mode is the default; dark mode is applied via prefers-color-scheme.
   iOS WKWebView resolves prefers-color-scheme from the host trait collection. */

:root {
    /* Light theme (default) */
    --bg: #FFFFFF;
    --surface: #F7F7FA;
    --text: #1A1A1A;
    --text-secondary: #6B6B6B;
    --primary-orange: #FF5722;
    --neon-pink: #FF2D95;
    --link: #E04A1B;
    --border-soft: rgba(0, 0, 0, 0.08);
    --notice-bg: rgba(124, 58, 237, 0.06);
    --notice-border: rgba(124, 58, 237, 0.18);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0D0B2E;
        --surface: #1A1347;
        --text: #FFFFFF;
        --text-secondary: #A0A0C0;
        --primary-orange: #FF5722;
        --neon-pink: #FF2D95;
        --link: #FF5722;
        --border-soft: rgba(124, 58, 237, 0.18);
        --notice-bg: rgba(124, 58, 237, 0.12);
        --notice-border: rgba(124, 58, 237, 0.18);
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    padding: 24px 20px 64px;
    max-width: 720px;
    margin: 0 auto;
    word-break: keep-all;
}

header.legal-header {
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-soft);
}

header.legal-header h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary-orange), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header.legal-header .meta {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

main h2 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin: 28px 0 10px;
}

main p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

main p strong {
    color: var(--text);
    font-weight: 600;
}

main a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--link) 40%, transparent);
}

main ul {
    margin: 8px 0 16px 20px;
    color: var(--text-secondary);
    font-size: 15px;
}

main ul li { margin-bottom: 6px; }

footer.legal-footer {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--border-soft);
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

.notice {
    background: var(--notice-bg);
    border: 1px solid var(--notice-border);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 16px 0 24px;
    font-size: 14px;
    color: var(--text-secondary);
}
