/* Lumayan.id — Syarat & Ketentuan */
:root {
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #f6f7f9;
    --line: #e5e7eb;
    --brand: #f59e0b;
    --brand-dark: #d97706;
    --white: #ffffff;
    --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

a { color: inherit; }

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    max-width: var(--max);
    margin: auto;
    min-height: 68px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.brand > span:last-child span { color: var(--brand-dark); }

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
}

.back-link {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

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

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

.intro-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 38px 42px;
    margin-bottom: 24px;
    box-shadow: 0 8px 30px rgba(31, 41, 55, .05);
}

.eyebrow {
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    margin-bottom: 8px;
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -1.2px;
}

.lead {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.layout {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.toc {
    position: sticky;
    top: 92px;
}

.toc-inner {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 18px;
    max-height: calc(100vh - 115px);
    overflow: auto;
}

.toc h3 {
    margin: 0 0 12px;
    font-size: 14px;
    letter-spacing: .2px;
}

.toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc li + li { margin-top: 2px; }

.toc a {
    display: block;
    padding: 5px 7px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.45;
    border-radius: 7px;
}

.toc a:hover {
    color: var(--ink);
    background: #fff7e6;
}

.document {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
}

.welcome {
    padding: 34px 42px 30px;
    background: #fffaf0;
    border-bottom: 1px solid var(--line);
}

.welcome p { margin: 0 0 12px; }
.welcome p:last-child { margin-bottom: 0; }

.tos-section {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    padding: 32px 42px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 90px;
}

.section-number {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #fff3d6;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
}

.section-content h2 {
    margin: 1px 0 17px;
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: -.2px;
}

.section-content p {
    margin: 0 0 13px;
}

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

.section-content ul,
.section-content ol {
    margin: 8px 0 16px;
    padding-left: 23px;
}

.section-content li {
    padding-left: 4px;
    margin: 5px 0;
}

.section-content strong { font-weight: 700; }

.section-content a {
    color: var(--brand-dark);
    font-weight: 600;
}

.document-footer {
    padding: 28px 42px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 14px;
}

.document-footer strong { color: var(--ink); }

.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0,0,0,.15);
    font-size: 18px;
}

@media (max-width: 850px) {
    .layout { grid-template-columns: 1fr; }
    .toc { position: static; }
    .toc-inner { max-height: none; }
    .toc ol {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px 8px;
    }
}

@media (max-width: 600px) {
    body { font-size: 15px; }

    .header-inner {
        min-height: 60px;
        padding: 0 16px;
    }

    .back-link { font-size: 13px; }

    .page-wrap { padding: 20px 12px 45px; }

    .intro-card {
        border-radius: 14px;
        padding: 26px 22px;
    }

    .lead { font-size: 15px; }

    .meta-row {
        display: block;
        margin-top: 18px;
    }

    .meta-row span {
        display: block;
        margin-bottom: 5px;
    }

    .toc-inner { border-radius: 14px; padding: 16px; }

    .toc ol { grid-template-columns: 1fr; }

    .document { border-radius: 14px; }

    .welcome { padding: 26px 22px; }

    .tos-section {
        grid-template-columns: 1fr;
        gap: 11px;
        padding: 26px 22px;
    }

    .section-number {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .section-content h2 { font-size: 18px; }

    .document-footer {
        padding: 24px 22px;
        display: block;
    }

    .document-footer span {
        display: block;
        margin-top: 4px;
    }

    .to-top {
        right: 14px;
        bottom: 14px;
    }
}
