/* =============================================================
   shared.css — BiteLedger website
   Common styles for all pages (home, privacy, terms)
   ============================================================= */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── DESIGN TOKENS ─── */
:root {
    --grad-start:  #0f0c29;
    --grad-mid:    #302b63;
    --grad-end:    #24243e;
    --bg:          #0d0b1a;
    --bg-card:     rgba(255,255,255,0.05);
    --border:      rgba(124,109,244,0.25);
    --accent:      #7c6df4;
    --accent-light:#b8aaff;
    --text:        #cfc9f0;
    --text-muted:  #7a728f;
    --text-white:  #ffffff;
    --radius-card: 14px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13,11,26,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(124,109,244,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 58px;
}
.nav-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-brand-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
}
.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent-light); }

/* ─── PAGE HERO (legal pages) ─── */
.page-hero {
    background: linear-gradient(135deg, var(--grad-start) 0%, var(--grad-mid) 55%, var(--grad-end) 100%);
    padding: 64px 24px 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% -20%, rgba(124,109,244,0.2) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero h1 {
    position: relative;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

/* ─── LEGAL CONTENT TYPOGRAPHY ─── */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}
h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-top: 44px;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}
p { margin-bottom: 14px; }
ul, ol { margin: 12px 0 16px; padding-left: 28px; }
li { margin: 8px 0; }
strong { color: var(--text-white); font-weight: 600; }
a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); text-decoration: underline; }
hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }
.meta { color: var(--text-muted); font-size: 0.85rem; }
.contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 20px 24px;
    margin: 20px 0;
}
.contact-box a { color: var(--accent-light); font-weight: 600; }

/* ─── FOOTER ─── */
footer {
    background: linear-gradient(180deg, var(--grad-end) 0%, var(--grad-start) 100%);
    border-top: 1px solid var(--border);
    padding: 48px 24px;
    text-align: center;
}
.footer-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 24px;
    list-style: none;
    margin-bottom: 28px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-light); }
.footer-sep { color: rgba(124,109,244,0.3); user-select: none; }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

/* ─── RESPONSIVE (nav) ─── */
@media (max-width: 600px) {
    nav { padding: 0 18px; }
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 0.82rem; }
}
