/* Bridge Swap — info pages (Terms, Risk Disclosure, How It Works, FAQ)
   Shares the exact palette/typography of bridge-swap.css so these read as
   part of the same product, not a bolted-on template. */

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

:root {
    --bg: #0b0e11;
    --card: #181a20;
    --card-soft: #1e2329;
    --border: #2b3139;
    --text: #eaecef;
    --muted: #8d949e;
    --muted-2: #5e6673;
    --gold: #f0b90b;
    --gold-2: #f8d33a;
    --green: #0ecb81;
    --red: #dc3545;
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 0 0 48px;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- shared top bar (matches the swap app's header) ---------- */
.info-topbar {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-topbar .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: var(--gold);
    letter-spacing: -0.5px;
}

.info-topbar .brand .icon { font-size: 18px; }

.info-topbar .back-link {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 30px;
    transition: 0.2s;
}
.info-topbar .back-link:hover { color: var(--text); border-color: var(--muted-2); text-decoration: none; }

/* ---------- page shell ---------- */
.info-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 20px 0;
}

.info-page .eyebrow-date {
    font-size: 12px;
    color: var(--muted-2);
    margin-bottom: 10px;
}

.info-page h1 {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.info-page .lede {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 62ch;
    margin-bottom: 32px;
}

.info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px clamp(18px, 4vw, 40px);
}

.info-page section + section { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--border); }

.info-page h2 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.info-page h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 16px 0 8px;
    color: var(--text);
}

.info-page p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--muted);
    max-width: 68ch;
    margin-bottom: 12px;
}

.info-page ul, .info-page ol {
    margin: 8px 0 12px 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}
.info-page li { margin-bottom: 6px; }
.info-page li::marker { color: var(--gold); }

.info-page strong { color: var(--text); font-weight: 600; }

/* ---------- How It Works: numbered steps (genuinely sequential) ---------- */
.steps-list {
    list-style: none;
    margin: 0;
    counter-reset: step;
    display: grid;
    gap: 14px;
}
.steps-list li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 14px;
    align-items: start;
    margin-bottom: 0;
}
.steps-list li::before {
    content: counter(step);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card-soft);
    border: 1px solid var(--border);
    color: var(--gold);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.steps-list .step-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.steps-list .step-body { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ---------- status pill row (used on How It Works to preview the tracker) ---------- */
.status-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 6px;
}
.status-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 30px;
    background: var(--card-soft);
    border: 1px solid var(--border);
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.status-pill.active { color: var(--gold); border-color: rgba(240,185,11,0.35); }
.status-pill.active .dot { background: var(--gold); }
.status-pill.done { color: var(--green); border-color: rgba(14,203,129,0.3); }
.status-pill.done .dot { background: var(--green); }

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    background: var(--card-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chevron {
    flex-shrink: 0;
    width: 18px; height: 18px;
    color: var(--muted);
    transition: transform 0.2s ease;
}
.faq-item[open] summary .chevron { transform: rotate(180deg); color: var(--gold); }
.faq-item .faq-answer {
    padding: 0 18px 16px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--muted);
}

/* ---------- tips / cancel callouts (Useful tips + How to cancel content) ---------- */
.tip-block {
    background: var(--card-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px clamp(16px, 3vw, 26px);
    margin-top: 16px;
}
.tip-block h3 { margin-top: 0; }
.tip-list { list-style: none; margin: 10px 0 0; display: grid; gap: 10px; }
.tip-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
}
.tip-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--green); }
.tip-list.no-list svg { color: var(--red); }

/* ---------- footer ---------- */
.info-footer {
    max-width: 760px;
    margin: 40px auto 0;
    padding: 0 20px;
    font-size: 12px;
    color: var(--muted-2);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
}
.info-footer .legal-links { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 640px) {
    .info-card { padding: 22px 16px; border-radius: 16px; }
    .info-topbar { padding: 16px 16px 0; }
    .info-page { padding: 22px 16px 0; }
}
