@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg:            #0b0808;
    --bg-card:       #1c1514;
    --border:        #2e2220;
    --text-primary:  #ffffff;
    --text-secondary:#a39694;
    --text-tertiary: #6e5e5c;
    --accent:        #a81a11;
    --accent-dim:    rgba(168, 26, 17, 0.15);
    --radius-lg:     22px;
    --radius-md:     16px;
    --max-width:     800px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg);
    background-image: radial-gradient(circle at 70% 30%, #540c07 0%, #0b0808 70%);
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: inherit; }

/* hidden — not in original */
.perf-rule { display: none; }

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── HEADER ── */
.topbar { padding: 28px 0 20px; }

.topbar .wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.brand-sub {
    font-size: 12.5px;
    color: var(--text-secondary);
}

.back-link {
    margin-left: auto;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}

.back-link:hover { color: var(--accent); }

/* ── HERO CARD ── */
.hero {
    margin-top: 8px;
    padding: 36px 36px;
    background: linear-gradient(135deg, #1e1514 0%, #1a1312 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.hero h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(20px, 3.5vw, 26px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 14px;
}

.hero p {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 500px;
    margin: 0;
    line-height: 1.55;
}

/* ── CARD GRID ── */
.card-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 14px 0 56px;
}

.card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.card:hover {
    background: #261d1b;
    transform: translateY(-2px);
    border-color: #4a2e2a;
}

/* Terms card spans full width */
.card.full-width {
    grid-column: span 2;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    color: var(--accent);
}

.card-body { flex: 1; min-width: 0; }

.card-title {
    font-weight: 600;
    font-size: 15.5px;
    margin: 0 0 3px;
}

.card-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.card-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.card:hover .card-arrow {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ── FOOTER ── */
footer {
    padding: 28px 0 48px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    opacity: 0.75;
}

/* ── LEGAL PAGES ── */
.doc-header { padding: 36px 0 8px; }

.doc-header h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(26px, 5vw, 34px);
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin: 0 0 12px;
}

.updated-badge {
    display: inline-block;
    font-size: 12.5px;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 999px;
}

.doc-body { padding: 24px 0 64px; }

.doc-body h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.doc-body h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 36px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    letter-spacing: -0.01em;
}

.doc-body p {
    color: var(--text-secondary);
    font-size: 15.5px;
    margin: 0 0 14px;
}

.doc-body ul {
    margin: 0 0 14px;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 15.5px;
}

.doc-body li { margin-bottom: 8px; }
.doc-body li::marker { color: var(--accent); }
.doc-body strong { color: var(--text-primary); }

/* ── RESPONSIVE ── */
@media (max-width: 580px) {
    .card-list { grid-template-columns: 1fr; }
    .card.full-width { grid-column: span 1; }
    .hero { padding: 28px 24px; }
}
