/* TurnNet legal pages — Terms & Privacy */
body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: #0f172a;
    color: #f1f5f9;
}

.legal-page {
    min-height: 100vh;
    padding: 48px 20px 64px;
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 40%, #0a0f1a 100%);
}

.legal-inner {
    max-width: 760px;
    margin: 0 auto;
}

.legal-back {
    display: inline-block;
    margin-bottom: 20px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
}

.legal-back:hover {
    color: #94a3b8;
}

.legal-eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4ade80;
    margin-bottom: 8px;
}

.legal-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: #f8fafc;
    margin-bottom: 8px;
    line-height: 1.2;
}

.legal-meta {
    color: #64748b;
    font-size: 0.88rem;
    margin-bottom: 20px;
}

.legal-draft-banner {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(125, 211, 252, 0.28);
    background: rgba(15, 23, 42, 0.85);
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 28px;
}
.legal-draft-banner strong {
    color: #7dd3fc;
}

.legal-body section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.legal-body section:last-child {
    border-bottom: none;
}

.legal-body h2 {
    font-size: 1.15rem;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.legal-body h3 {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin: 16px 0 8px;
}

.legal-body p,
.legal-body li {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.65;
}

.legal-body ul {
    margin: 10px 0 10px 1.25rem;
}

.legal-body li {
    margin-bottom: 8px;
}

.legal-body a {
    color: #38bdf8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-body a:hover {
    color: #7dd3fc;
}

.legal-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    text-align: center;
}

.legal-footer p {
    color: #64748b;
    font-size: 0.88rem;
}

.legal-footer a {
    color: #64748b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-footer a:hover {
    color: #94a3b8;
}

.market-tape {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    height: var(--market-tape-h, 34px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px 0 0;
    background: linear-gradient(90deg, #020617 0%, #0b1220 40%, #052e16 100%);
    border-bottom: 1px solid rgba(74, 222, 128, 0.28);
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    overflow: hidden;
}

.market-tape-label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 100%;
    background: rgba(2, 6, 23, 0.95);
    border-right: 1px solid rgba(74, 222, 128, 0.25);
}

.market-tape-gift {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #020617;
    background: linear-gradient(135deg, #4ade80, #38bdf8);
    padding: 2px 7px;
    border-radius: 999px;
}

.market-tape-label-text {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
}

.market-tape-viewport {
    flex: 1 1 auto;
    overflow: hidden;
}

.market-tape-track {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    white-space: nowrap;
    animation: market-tape-scroll 48s linear infinite;
}

@keyframes market-tape-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.market-tape-item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 12px;
}

.market-tape-kind { font-size: 9px; color: #64748b; }
.market-tape-sym { font-weight: 800; color: #f8fafc; }
.market-tape-px { color: #cbd5e1; }
.market-tape-item.up .market-tape-chg { color: #4ade80; }
.market-tape-item.down .market-tape-chg { color: #f87171; }
.market-tape-note { font-size: 9px; color: #64748b; white-space: nowrap; }

html.has-market-tape .legal-page {
    padding-top: 82px;
}
