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

/* ==========================================================================
   Terms 2026 — modern document layout for "Syarat & Ketentuan"
   Same color system as auth-2026.css, scoped under .terms2026 so it never
   touches any other page.
   ========================================================================== */

.terms2026 {
    --t-primary: var(--yellow-primary);
    --t-primary-hover: var(--yellow-primary);
    --t-primary-soft: color-mix(in srgb, var(--yellow-primary) 12%, var(--white));
    --t-panel: var(--dark-blue);
    --t-panel-line: rgba(255, 255, 255, 0.08);
    --t-bg: var(--bg-body);
    --t-surface: var(--white);
    --t-border: var(--dark-grey);
    --t-text: var(--black);
    --t-muted: var(--black-text);
    --t-accent: var(--yellow-primary);
    --t-radius: 14px;
    --t-radius-lg: 22px;
    font-family: "Inter", sans-serif;
    color: var(--t-text);
    background: var(--t-bg);
    padding-bottom: 64px;
}

.terms2026 * {
    box-sizing: border-box;
}

.terms2026 a {
    text-decoration: none;
}

/* -------- Hero -------- */
.terms2026-hero {
    position: relative;
    background: linear-gradient(135deg, var(--t-panel) 0%, color-mix(in srgb, var(--t-panel) 80%, var(--t-primary)) 100%);
    color: #fff;
    padding: 56px 20px 108px;
    overflow: hidden;
}

.terms2026-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(circle at 20% 15%, #000 0%, transparent 65%);
    mask-image: radial-gradient(circle at 20% 15%, #000 0%, transparent 65%);
    pointer-events: none;
}

.terms2026-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.terms2026-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 12.5px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 18px;
}

.terms2026-hero-inner h1 {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 36px;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.terms2026-hero-inner p {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.62);
    max-width: 540px;
    margin: 0 auto;
}

.terms2026-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.terms2026-hero-actions button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    padding: 0 18px;
    border-radius: var(--t-radius);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 13.5px;
    font-weight: 500;
    font-family: "Inter", sans-serif;
    transition: background 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}

.terms2026-hero-actions button:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.26);
}

/* -------- Reading progress -------- */
.terms2026-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--t-primary);
    z-index: 50;
    transition: width 0.1s ease-out;
}

/* -------- Layout -------- */
.terms2026-main {
    margin-top: -64px;
    position: relative;
    z-index: 2;
}

.terms2026-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    grid-template-areas:
        "toc content"
        "help content";
    gap: 24px;
    align-items: start;
}

/* -------- Sidebar -------- */
.terms2026-toc-card {
    grid-area: toc;
    position: sticky;
    top: 20px;
}

.terms2026-help-card {
    grid-area: help;
    align-self: start;
}

.terms2026-content {
    grid-area: content;
}

.terms2026-toc-card,
.terms2026-help-card {
    background: var(--t-surface);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-lg);
    padding: 20px;
    box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04);
}

.terms2026-toc-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--t-muted);
    margin-bottom: 12px;
}

.terms2026-toc-card nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 50vh;
    overflow-y: auto;
}

.terms2026-toc-card nav a {
    display: block;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--t-muted);
    font-weight: 500;
    border-left: 2px solid transparent;
    transition: background 0.15s ease, color 0.15s ease;
}

.terms2026-toc-card nav a.toc-h3 {
    padding-left: 20px;
    font-size: 13px;
    font-weight: 400;
}

.terms2026-toc-card nav a:hover {
    background: var(--t-primary-soft);
    color: var(--t-primary);
}

.terms2026-toc-card nav a.active {
    background: var(--t-primary-soft);
    color: var(--t-primary);
    border-left-color: var(--t-primary);
    font-weight: 600;
}

.terms2026-toc-empty {
    font-size: 13px;
    color: var(--t-muted);
}

.terms2026-help-card {
    text-align: center;
}

.terms2026-help-card i {
    font-size: 22px;
    color: var(--t-primary);
    margin-bottom: 8px;
}

.terms2026-help-card .t {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    margin-bottom: 4px;
}

.terms2026-help-card .d {
    font-size: 12.5px;
    color: var(--t-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}

.terms2026-help-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    border-radius: var(--t-radius);
    background: var(--t-primary);
    color: #fff !important;
    font-size: 13.5px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.terms2026-help-card a:hover {
    background: var(--t-primary-hover);
}

/* -------- Content card -------- */
.terms2026-content {
    background: var(--t-surface);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-lg);
    padding: 36px 40px;
    box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04);
}

/* -------- Prose (arbitrary CMS content) -------- */
.terms2026-prose {
    font-size: 15px;
    line-height: 1.75;
    color: var(--t-text);
}

.terms2026-prose h1,
.terms2026-prose h2,
.terms2026-prose h3,
.terms2026-prose h4 {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--t-text);
    scroll-margin-top: 90px;
}

.terms2026-prose h1 {
    font-size: 24px;
    margin: 0 0 16px;
}

.terms2026-prose h2 {
    font-size: 20px;
    margin: 36px 0 14px;
    padding-top: 4px;
}

.terms2026-prose h2:first-child {
    margin-top: 0;
}

.terms2026-prose h3 {
    font-size: 16.5px;
    margin: 24px 0 10px;
}

.terms2026-prose h4 {
    font-size: 15px;
    margin: 18px 0 8px;
}

.terms2026-prose p {
    margin: 0 0 16px;
    color: var(--t-text);
}

.terms2026-prose ul,
.terms2026-prose ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.terms2026-prose li {
    margin-bottom: 8px;
}

.terms2026-prose li::marker {
    color: var(--t-primary);
}

.terms2026-prose strong,
.terms2026-prose b {
    font-weight: 600;
    color: var(--t-text);
}

.terms2026-prose a {
    color: var(--t-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.terms2026-prose blockquote {
    margin: 0 0 16px;
    padding: 14px 18px;
    border-left: 3px solid var(--t-primary);
    background: var(--t-primary-soft);
    border-radius: 0 10px 10px 0;
    color: var(--t-text);
}

.terms2026-prose hr {
    border: none;
    border-top: 1px solid var(--t-border);
    margin: 28px 0;
}

.terms2026-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
    font-size: 14px;
}

.terms2026-prose table th,
.terms2026-prose table td {
    border: 1px solid var(--t-border);
    padding: 10px 12px;
    text-align: left;
}

.terms2026-prose table th {
    background: var(--t-bg);
    font-weight: 600;
}

.terms2026-prose img {
    max-width: 100%;
    border-radius: 10px;
    margin: 8px 0 16px;
}

.terms2026-prose-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--t-muted);
}

.terms2026-prose-empty i {
    font-size: 28px;
    color: var(--t-primary);
    margin-bottom: 10px;
    display: block;
}

.terms2026-prose .toc-pseudo-heading {
    scroll-margin-top: 90px;
}

/* -------- Mobile TOC toggle -------- */
.terms2026-toc-title .bi-chevron-down {
    display: none;
}

/* -------- Responsive -------- */
@media (max-width: 991.98px) {
    .terms2026-hero {
        padding: 40px 16px 96px;
    }

    .terms2026-hero-inner h1 {
        font-size: 28px;
    }

    .terms2026-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "toc"
            "content"
            "help";
    }

    .terms2026-toc-card,
    .terms2026-help-card {
        position: static;
    }

    .terms2026-content {
        padding: 26px 20px;
    }

    .terms2026-toc-title {
        cursor: pointer;
    }

    .terms2026-toc-title .bi-chevron-down {
        display: inline-block;
        transition: transform 0.15s ease;
    }

    .terms2026-toc-card.collapsed nav {
        display: none;
    }

    .terms2026-toc-card.collapsed .terms2026-toc-mobile-toggle i {
        transform: rotate(-90deg);
    }
}

@media (max-width: 575.98px) {
    .terms2026-hero-actions button {
        flex: 1 1 auto;
        justify-content: center;
    }

    .terms2026-content {
        padding: 22px 16px;
    }
}