/* css/legal.css — standalone styling for privacy.html and terms.html.
 *
 * Deliberately NOT css/style.css. That stylesheet sets `body { overflow:
 * hidden; height: 100dvh; }` for the app's own tab-switched, internally-
 * scrolled screens — exactly wrong for a normal long-form page that should
 * scroll like any other document. These two pages share only the app's color
 * tokens, redeclared here rather than dragging in ~5000 lines of app-specific
 * rules and resets that a static content page has no use for.
 */
:root {
    --bg-dark:    #0a0a0c;
    --card-bg:    #16161a;
    --accent:     #2ecc71;
    --text-main:  #f1f2f6;
    --text-muted: #a4b0be;
    --border:     #2a2a2e;
}

* { box-sizing: border-box; }

html { scrollbar-width: thin; scrollbar-color: #444 var(--bg-dark); }

body {
    margin: 0;
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif, 'Noto Color Emoji';
    line-height: 1.6;
}

.legal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-dark);
    z-index: 10;
}
.legal-header img { width: 26px; height: 26px; }
.legal-header .brand { font-weight: 800; letter-spacing: .5px; color: var(--text-main); font-size: 1rem; }
.legal-header a.back {
    margin-left: auto;
    color: var(--accent);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
}
.legal-header a.back:hover { text-decoration: underline; }

.legal-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

.legal-main h1 { color: var(--accent); font-size: 1.6rem; margin: 0 0 4px; letter-spacing: .3px; }
.legal-updated { color: var(--text-muted); font-size: .82rem; margin: 0 0 18px; }

.legal-main h2 {
    color: var(--text-main);
    font-size: 1.08rem;
    margin: 30px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}
.legal-main p { color: #d4d6db; font-size: .92rem; margin: 0 0 14px; }
.legal-main ul { margin: 0 0 14px; padding-left: 22px; color: #d4d6db; font-size: .92rem; }
.legal-main li { margin-bottom: 6px; }
.legal-main a { color: var(--accent); }
.legal-main strong { color: var(--text-main); }

.legal-footer {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 20px 40px;
    border-top: 1px solid var(--border);
    font-size: .78rem;
    color: #555;
    text-align: center;
}
.legal-footer a { color: var(--text-muted); text-decoration: underline; margin: 0 6px; }

@media (max-width: 480px) {
    .legal-main h1 { font-size: 1.35rem; }
    .legal-main { padding: 22px 16px 50px; }
}
