/* MUSK_MANIFEST — doc content pages (FAQs, How-To, Privacy, Terms) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

html { color-scheme: light; }

body.doc-page,
body.legal-doc {
    margin: 0;
    background: #FFFFFF;
    color: #171717;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body.legal-doc {
    padding: 0 1.5rem 4rem;
}

body.legal-doc > *:not(script):not(.go-top-wrap) {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

body.legal-doc .legal-header {
    text-align: center;
    padding: 3rem 0 2rem;
    border-bottom: 1px solid #E8E8E8;
    margin-bottom: 2rem;
    max-width: 680px;
}

body.legal-doc .legal-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin: 0 0 0.35rem;
    color: #171717;
}

body.legal-doc .legal-header p {
    font-size: 13px;
    color: #6E6E6E;
    margin: 0;
}

body.legal-doc h1,
body.doc-page h1 {
    color: #171717;
    font-weight: 600;
    letter-spacing: -0.03em;
}

body.legal-doc h2.legal-h2,
body.legal-doc h3.legal-h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #171717;
    margin: 2.5rem 0 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

body.legal-doc h3.legal-h3 {
    font-size: 0.9rem;
    margin-top: 2rem;
    color: #393939;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.legal-doc p,
body.legal-doc li,
body.doc-page p {
    color: #393939;
}

body.legal-doc p {
    margin: 0 0 1.1rem;
}

body.legal-doc .legal-meta {
    font-size: 13px;
    color: #6E6E6E;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #F0F0F0;
}

body.legal-doc a,
body.doc-page a {
    color: #171717;
    text-decoration: underline;
}

body.legal-doc .legal-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E8E8E8;
    font-size: 13px;
    color: #6E6E6E;
}

[data-theme="dark"] body.doc-page,
[data-theme="dark"] body.legal-doc {
    background: #000;
    color: #F5F5F5;
}

[data-theme="dark"] body.doc-page p,
[data-theme="dark"] body.legal-doc p {
    color: #C8C8C8;
}

/* Go to top — shared across FAQs, How-To, Privacy, Terms */
body.doc-page,
body.legal-doc {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

.go-top-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, #FFFFFF 70%, transparent);
    pointer-events: none;
}

.go-top-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    min-height: 48px;
    padding: 0 20px;
    border: none;
    border-radius: 24px;
    background: #000000;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.go-top-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

[data-theme="dark"] .go-top-wrap {
    background: linear-gradient(to top, #000000 70%, transparent);
}

[data-theme="dark"] .go-top-btn {
    background: #FFFFFF;
    color: #000000;
}
