
body,
.site-body {
    background: var(--bg-page);
}

/* =============================================================
   SECTION WRAPPER
   ============================================================= */
.agb-section {
    padding: 3rem 1.25rem 5rem;
}

.agb-container {
    max-width: 1024px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

/* =============================================================
   TABLE OF CONTENTS
   ============================================================= */
.agb-toc {
    position: sticky;
    top: 6rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}

.agb-toc-title {
    color: var(--text-white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.agb-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.agb-toc-list li {
    counter-increment: toc-counter;
    margin-bottom: 0.1rem;
}

.agb-toc-list li a {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.78rem;
    padding: 0.3rem 0.4rem;
    border-radius: 0.4rem;
    line-height: 1.4;
    transition: background 0.2s, color 0.2s;
}

.agb-toc-list li a::before {
    content: counter(toc-counter);
    color: var(--blue-bright);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 14px;
    flex-shrink: 0;
}

.agb-toc-list li a:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--text-white);
}

/* =============================================================
   AGB BODY
   ============================================================= */
.agb-body {
    min-width: 0;
}

.agb-section-block {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.agb-section-block:first-child {
    padding-top: 0;
}

.agb-section-block:last-child {
    border-bottom: none;
}

.agb-section-num {
    color: var(--blue-bright);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.agb-section-heading {
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.agb-section-block p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.agb-section-block p:last-child {
    margin-bottom: 0;
}

.agb-section-block strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* =============================================================
   LISTS
   ============================================================= */
.agb-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0.75rem;
}

.agb-list li {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.agb-list li:last-child {
    border-bottom: none;
}

.agb-list li::before {
    content: '—';
    color: var(--blue-bright);
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* =============================================================
   FOOTER OVERRIDE
   ============================================================= */
.footer {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 760px) {
    .agb-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .agb-toc {
        position: static;
    }
}

@media (max-width: 480px) {
    .agb-section {
        padding: 2rem 1rem 4rem;
    }

    .agb-section-heading {
        font-size: 1.05rem;
    }
}
