body {
    background: linear-gradient(145deg, var(--color-charcoal) 0%, var(--color-night) 100%);
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 10%, rgba(212, 168, 83, 0.07) 0%, transparent 55%);
    pointer-events: none;
}

/* Draft banner */
.draft-banner {
    background: rgba(196, 93, 62, 0.18);
    border-bottom: 2px solid rgba(196, 93, 62, 0.5);
    color: #f5d4c8;
    text-align: center;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    position: sticky;
    top: 0;
    z-index: 100;
}

.draft-banner strong {
    font-weight: 700;
}

/* Top navigation bar */
.doc-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 10;
}

.doc-nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-cream);
    text-decoration: none;
}

.doc-nav-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--color-amber);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-charcoal);
    font-weight: 700;
    font-size: 16px;
}

.doc-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.doc-nav-back:hover {
    color: var(--color-amber);
}

/* Main layout */
.doc-layout {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    gap: 56px;
    position: relative;
    z-index: 1;
}

/* Sidebar table of contents */
.doc-toc {
    flex: 0 0 220px;
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

.doc-toc-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-amber);
    margin-bottom: 16px;
}

.doc-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
}

.doc-toc li {
    margin: 0;
}

.doc-toc a {
    display: block;
    padding: 6px 0 6px 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.15s;
    line-height: 1.4;
}

.doc-toc a:hover {
    color: var(--color-amber-light);
}

/* Main document body */
.doc-body {
    flex: 1;
    min-width: 0;
}

.doc-header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-amber);
    margin-bottom: 12px;
}

.doc-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--color-cream);
    line-height: 1.15;
    margin-bottom: 16px;
}

.doc-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
}

/* Section styles */
.doc-section {
    margin-bottom: 44px;
    scroll-margin-top: 90px;
}

.doc-section h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--color-cream);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 168, 83, 0.2);
}

.doc-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-amber-light);
    margin: 24px 0 10px;
}

.doc-section p {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 14px;
}

.doc-section ul,
.doc-section ol {
    margin: 10px 0 16px 0;
    padding-left: 22px;
}

.doc-section li {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 6px;
}

.doc-section li strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Info box */
.info-box {
    background: rgba(212, 168, 83, 0.08);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 10px;
    padding: 18px 22px;
    margin: 20px 0;
}

.info-box p {
    margin-bottom: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

.info-box p + p {
    margin-top: 8px;
}

/* Warning / special-category callout */
.callout-art9 {
    background: rgba(196, 93, 62, 0.1);
    border: 1px solid rgba(196, 93, 62, 0.3);
    border-radius: 10px;
    padding: 18px 22px;
    margin: 20px 0;
}

.callout-art9 p {
    margin-bottom: 0;
    font-size: 14px;
    color: rgba(245, 212, 200, 0.85);
}

.callout-art9 p + p {
    margin-top: 8px;
}

/* Sub-processor table */
.sp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 14px;
}

.sp-table thead th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-amber);
    padding: 10px 14px;
    border-bottom: 1px solid rgba(212, 168, 83, 0.25);
}

.sp-table tbody td {
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
    vertical-align: top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-table tbody tr:last-child td {
    border-bottom: none;
}

.sp-table td strong {
    color: rgba(255, 255, 255, 0.9);
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

/* Placeholder highlight */
.todo {
    background: rgba(212, 168, 83, 0.18);
    border-radius: 4px;
    padding: 1px 6px;
    font-style: italic;
    color: var(--color-amber-light);
    font-size: 0.9em;
}

/* Contact card */
.contact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 22px 26px;
    margin-top: 16px;
}

.contact-card p {
    margin-bottom: 6px;
}

.contact-card a {
    color: var(--color-amber);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Footer */
.doc-footer {
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.doc-footer p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 8px;
}

.doc-footer a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
}

.doc-footer a:hover {
    color: var(--color-amber);
}

/* Responsive */
@media (max-width: 768px) {
    .doc-layout {
        flex-direction: column;
        gap: 32px;
        padding: 32px 20px 60px;
    }

    .doc-toc {
        position: static;
        flex: none;
    }

    .doc-title {
        font-size: 32px;
    }

    .doc-nav {
        padding: 14px 20px;
    }

    .sp-table {
        font-size: 13px;
    }

    .sp-table thead th,
    .sp-table tbody td {
        padding: 10px 8px;
    }
}
