/* Legal pages FormaSpace (pola WFHSpace, tanpa shadow elevation) */

.legal-page {
    --fs-header-height: 4.5rem;
    margin-top: calc(-1 * var(--fs-header-height));
    background: #f7f7fb;
    color: #0c1017;
}

.legal-page__container {
    width: 100%;
    max-width: var(--fs-shell-max, 100%);
    margin-inline: auto;
    padding-inline: var(--fs-shell-pad, clamp(1rem, 3.2vw, 3.25rem));
}

.legal-page__hero {
    padding-top: calc(var(--fs-header-height) + clamp(4rem, 9vw, 7.25rem));
    padding-bottom: clamp(2.75rem, 5vw, 4rem);
    background: linear-gradient(145deg, #6259e2 0%, #4438b8 48%, #2e2870 100%);
    color: #fff;
    text-align: center;
}

.legal-page__eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(222, 220, 255, 0.95);
}

.legal-page__title {
    margin: 0;
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.legal-page__subtitle {
    margin: 1rem auto 0;
    max-width: 38rem;
    font-size: clamp(0.92rem, 0.2vw + 0.88rem, 1.05rem);
    line-height: 1.65;
    font-weight: 500;
    color: rgba(237, 236, 255, 0.92);
}

.legal-page-hero__meta-row {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.legal-page-hero__meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
}

.legal-page-hero__meta i {
    flex-shrink: 0;
    opacity: 0.92;
}

.legal-page__nav {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.legal-page__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.92);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.legal-page__pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.legal-page__pill.is-active {
    background: #fff;
    border-color: #fff;
    color: #4438b8;
}

.legal-page__content {
    padding: clamp(1.75rem, 4vw, 2.5rem) 0 clamp(3.5rem, 8vw, 5rem);
}

.legal-page-pin-sentinel {
    height: 1px;
    pointer-events: none;
}

.legal-page-sticky-placeholder {
    width: 100%;
}

.legal-page-sticky {
    pointer-events: none;
}

.legal-page-sticky__bar {
    position: fixed;
    top: var(--fs-header-height, 4.5rem);
    left: 0;
    right: 0;
    z-index: 35;
    background: #fff;
    border-bottom: 1px solid #eef2ff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(-100% - 1rem));
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    pointer-events: none;
}

.legal-page-sticky.is-pinned .legal-page-sticky__bar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.legal-page-sticky__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    min-height: 3.5rem;
}

.legal-page-sticky__left {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
}

.legal-page-sticky__aside {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.45rem;
}

.legal-page-sticky__doc {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.legal-page-sticky__icon {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #6259e2;
    font-size: 1rem;
    border: 1px solid #dedcff;
}

.legal-page-sticky__title {
    font-size: 1.0625rem;
    font-weight: 800;
    color: #0c1017;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.legal-page-sticky__date {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e8ecf3;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    line-height: 1.35;
}

.legal-page-sticky__select-wrap {
    display: block;
    width: 11.5rem;
    max-width: 42vw;
}

.legal-page-sticky__select-wrap .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.legal-page-sticky__select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding: 0.45rem 1.75rem 0.45rem 0.75rem;
    border: 1px solid #e8ecf3;
    border-radius: 0.625rem;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.55rem center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.35;
    cursor: pointer;
    font-family: inherit;
}

.legal-page-sticky__select:focus {
    outline: none;
    border-color: #a5b4fc;
    box-shadow: 0 0 0 3px rgba(98, 89, 226, 0.15);
}

.legal-page-sticky__section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
    padding-top: 0.35rem;
    border-top: 1px solid #eef2ff;
}

.legal-page-sticky__section-dot {
    flex-shrink: 0;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #6259e2;
}

.legal-page-sticky__section-title {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.legal-page-doc {
    border-radius: 1.25rem;
    border: 1px solid #eef2ff;
    background: #fff;
    padding: 1.75rem 1.5rem;
    overflow: hidden;
}

@media (min-width: 640px) {
    .legal-page-doc {
        padding: 2.25rem 2.5rem;
    }
}

.legal-page-doc .legal-document-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.98rem;
    line-height: 1.62;
    color: #475569;
    font-weight: 500;
}

.legal-page-doc .legal-document-body > :first-child {
    margin-top: 0;
}

.legal-page-doc .legal-document-body h2 {
    margin: 1.75rem 0 0.75rem;
    font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.2rem);
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.legal-page-doc .legal-document-body h2:first-child {
    margin-top: 0;
}

.legal-page-doc .legal-document-body p {
    margin: 0 0 0.85rem;
}

.legal-page-doc .legal-document-body p:last-child {
    margin-bottom: 0;
}

.legal-section-heading {
    scroll-margin-top: 8.5rem;
}

.legal-page-cta {
    margin-top: 1.75rem;
    padding: 1.35rem 1.4rem;
    border-radius: 1.15rem;
    background: #fff;
    border: 1px solid #eef2ff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.legal-page-cta__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0c1017;
}

.legal-page-cta__desc {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #64748b;
    font-weight: 500;
}

.legal-page-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.legal-page-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.legal-page-cta__btn--ghost {
    border: 1px solid #e8ecf3;
    color: #334155;
    background: #fff;
}

.legal-page-cta__btn--ghost:hover {
    border-color: #c7d2fe;
    color: #6259e2;
    background: #f8f7ff;
}

.legal-page-cta__btn--primary {
    border: 1px solid #6259e2;
    background: #6259e2;
    color: #fff;
}

.legal-page-cta__btn--primary:hover {
    background: #534cc0;
    border-color: #534cc0;
}

@media (max-width: 639px) {
    .legal-page-sticky__top {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        min-height: 0;
        padding: 0.65rem 0 0.55rem;
    }

    .legal-page-sticky__left {
        width: 100%;
        align-items: center;
    }

    .legal-page-sticky__doc {
        justify-content: center;
        width: 100%;
    }

    .legal-page-sticky__title {
        white-space: normal;
        text-align: center;
    }

    .legal-page-sticky__aside {
        align-items: center;
        width: 100%;
    }

    .legal-page-sticky__select-wrap {
        width: 100%;
        max-width: none;
    }

    .legal-page-sticky__date {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .legal-page-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-page-cta__actions {
        width: 100%;
    }

    .legal-page-cta__btn {
        flex: 1;
        min-width: calc(50% - 0.25rem);
    }
}