* {
    box-sizing: border-box;
}

:root {
    --bg: #0d0b0a;
    --panel: #171211;
    --panel2: #1c1715;
    --border: #2b2422;
    --orange: #e44a2b;
    --orange-hover: #d43e1e;
    --text: #e9e5e4;
    --muted: #8a8380;
    --dim: #5c5552;
    --green: #22a55a;
    --radius: 14px;
    --radius-sm: 10px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(1100px 550px at 85% 0%, rgba(228, 74, 43, 0.1), transparent 60%), var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.5;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.terms-content {
    flex: 1;
    min-width: 0;
}

.terms-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 24px 80px;
    font-size: 14px;
}

.kicker {
    font-size: 11px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 2.5px;
    margin-bottom: 8px;
}

.big-title {
    font-size: 44px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.intro {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
    max-width: 820px;
    margin-bottom: 48px;
}

.term-section {
    margin-bottom: 40px;
}

.term-heading {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    line-height: 1.3;
}

.term-num {
    color: var(--orange);
    margin-right: 2px;
}

.term-body {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 14px;
}

.term-body b {
    color: var(--text);
    font-weight: 600;
}

.term-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 6px 0 0;
    padding: 0;
}

.term-list li {
    position: relative;
    padding-left: 20px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.term-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--orange);
}

@media (max-width: 760px) {
    .big-title { font-size: 34px; }
    .term-body, .term-list li { font-size: 15px; }
}

/* ---------- Light theme ---------- */
html[data-theme="light"] {
    --bg: #f2efec;
    --panel: #ffffff;
    --panel2: #f2ece8;
    --border: #e3dcd7;
    --text: #221d1a;
    --muted: #6f6761;
    --dim: #9b938c;
}

html[data-theme="light"] body {
    background: radial-gradient(1100px 550px at 85% 0%, rgba(228, 74, 43, 0.05), transparent 60%), var(--bg);
}

html[data-theme="light"] .big-title { color: #1c1714; }
html[data-theme="light"] .term-heading { color: #221d1a; }
