/* Static pages — brand-aligned shell for LTR + RTL (logical properties) */

.sp {
    --sp-ink: #212121;
    --sp-muted: #6b6b6b;
    --sp-line: #e8e8e8;
    --sp-soft: #f7f5fb;
    --sp-accent: var(--lilk, #7c3aed);
    --sp-accent-soft: rgba(124, 58, 237, 0.08);
    --sp-pink: var(--pink, #ed3aab);
    color: var(--sp-ink);
    text-align: start;
}

.sp a {
    color: var(--sp-accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

.sp a:hover {
    color: var(--Hlilk, #8b5fe4);
    text-decoration: underline;
}

.sp a:focus-visible {
    outline: 2px solid var(--sp-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Hero ─────────────────────────────────────────────── */

.sp-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 120% at 100% 0%, rgba(237, 58, 171, 0.07), transparent 55%),
        radial-gradient(ellipse 70% 100% at 0% 100%, rgba(124, 58, 237, 0.1), transparent 50%),
        linear-gradient(180deg, #faf9fc 0%, #fff 100%);
    border-bottom: 1px solid var(--sp-line);
}

.sp-hero__inner {
    width: 100%;
    max-width: 920px;
    margin-inline: auto;
    padding: 2rem clamp(1rem, 3vw, 1.75rem) 1.5rem;
    animation: sp-fade-up 0.45s ease both;
}

.sp-hero__brand {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--sp-accent);
    background: var(--sp-accent-soft);
    border-radius: 999px;
    line-height: 1.4;
}

.sp-hero__title {
    margin: 0;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--sp-ink);
    letter-spacing: -0.02em;
}

.sp-hero__lede {
    margin: 0.85rem 0 0;
    max-width: 52ch;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
    color: var(--sp-muted);
}

.sp-hero__meta {
    margin: 0.65rem 0 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sp-muted);
}

/* ── Subnav ───────────────────────────────────────────── */

.sp-subnav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--sp-line);
}

.sp-subnav__inner {
    max-width: 920px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 1.75rem);
}

.sp-subnav__label {
    display: none;
}

.sp-subnav__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0.65rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sp-subnav__list::-webkit-scrollbar {
    display: none;
}

.sp-subnav__link {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sp-ink) !important;
    text-decoration: none !important;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sp-subnav__link:hover {
    background: var(--sp-soft);
    color: var(--sp-accent) !important;
}

.sp-subnav__link.is-active {
    background: var(--sp-accent);
    color: #fff !important;
    border-color: var(--sp-accent);
}

.sp-subnav__link.is-active:hover {
    color: #fff !important;
    background: var(--Hlilk, #8b5fe4);
}

/* ── Body shell ────────────────────────────────────────── */

.sp-body {
    width: 100%;
    max-width: 920px;
    margin-inline: auto;
    padding: 1.75rem clamp(1rem, 3vw, 1.75rem) 3rem;
    animation: sp-fade-up 0.5s ease 0.06s both;
}

.sp-prose {
    max-width: 42rem;
}

.sp-prose > p {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.75;
    color: var(--sp-ink);
}

.sp-prose > p:last-child {
    margin-bottom: 0;
}

.sp-prose .sp-h {
    margin: 1.75rem 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--sp-ink);
    scroll-margin-top: 4.5rem;
}

.sp-prose .sp-h:first-child {
    margin-top: 0;
}

.sp-prose ul {
    margin: 0 0 1rem;
    padding-inline-start: 1.25rem;
}

.sp-prose li {
    margin: 0.4rem 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
}

.sp-prose li::marker {
    color: var(--sp-accent);
}

/* ── Contact cards ─────────────────────────────────────── */

.sp-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin: 1.25rem 0;
}

.sp-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.1rem 1.2rem;
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    text-decoration: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.sp-card:hover {
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.08);
    transform: translateY(-1px);
}

.sp-card__label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sp-muted);
    text-transform: none;
}

.sp-card__value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sp-accent);
    word-break: break-word;
}

.sp-tip {
    margin: 1.25rem 0 0;
    padding: 1rem 1.15rem;
    background: var(--sp-soft);
    border-inline-start: 3px solid var(--sp-accent);
    border-radius: 0 10px 10px 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.65;
    color: var(--sp-ink);
}

[dir="rtl"] .sp-tip {
    border-radius: 10px 0 0 10px;
}

/* ── FAQ accordion ─────────────────────────────────────── */

.sp-faq {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sp-faq__item {
    border: 1px solid var(--sp-line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.sp-faq__item[open] {
    border-color: rgba(124, 58, 237, 0.35);
}

.sp-faq__item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--sp-ink);
}

.sp-faq__item summary::-webkit-details-marker {
    display: none;
}

.sp-faq__item summary::after {
    content: "";
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-inline-end: 2px solid var(--sp-muted);
    border-bottom: 2px solid var(--sp-muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-block-start: -0.2rem;
}

.sp-faq__item[open] summary::after {
    transform: rotate(225deg);
    margin-block-start: 0.15rem;
    border-color: var(--sp-accent);
}

.sp-faq__item summary:focus-visible {
    outline: 2px solid var(--sp-accent);
    outline-offset: -2px;
}

.sp-faq__answer {
    padding: 0 1.15rem 1.1rem;
    font-size: 0.975rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--sp-muted);
}

.sp-faq__answer p {
    margin: 0;
}

/* ── Legal layout + TOC ────────────────────────────────── */

.sp-legal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

.sp-toc {
    display: none;
}

.sp-toc__title {
    margin: 0 0 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sp-muted);
}

.sp-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sp-toc__list a {
    display: block;
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sp-ink) !important;
    text-decoration: none !important;
    border-radius: 6px;
    border-inline-start: 2px solid transparent;
    line-height: 1.4;
}

.sp-toc__list a:hover {
    background: var(--sp-soft);
    color: var(--sp-accent) !important;
    border-inline-start-color: var(--sp-accent);
}

/* ── Related footer links ──────────────────────────────── */

.sp-related {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sp-line);
}

.sp-related__title {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sp-muted);
    letter-spacing: 0.03em;
}

.sp-related__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-related__list a {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ── Motion ────────────────────────────────────────────── */

@keyframes sp-fade-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp-hero__inner,
    .sp-body {
        animation: none;
    }

    .sp-card,
    .sp-subnav__link,
    .sp a {
        transition: none;
    }
}

/* ── Breakpoints ───────────────────────────────────────── */

@media (min-width: 768px) {
    .sp-hero__inner {
        padding-block: 2.75rem 2rem;
    }

    .sp-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-subnav__inner {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .sp-subnav__label {
        display: block;
        flex-shrink: 0;
        margin: 0;
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--sp-muted);
        white-space: nowrap;
    }
}

@media (min-width: 992px) {
    .sp-legal {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 2.5rem;
    }

    .sp-toc {
        display: block;
        position: sticky;
        top: 4.75rem;
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
        padding-block: 0.25rem;
    }

    .sp-body {
        padding-block: 2.25rem 4rem;
    }
}
