/* =========================================================
   Terms & Conditions — VOD page
   Scoped under .terms-vod-page
   ========================================================= */

.terms-vod-page {
    --tv-primary: var(--hv-primary, #8B1874);
    --tv-primary-hover: var(--hv-primary-hover, #E1198F);
    --tv-bg: var(--hv-bg, #09090b);
    --tv-surface: var(--hv-surface, #141418);
    --tv-border: var(--hv-border, rgba(255, 255, 255, 0.08));
    --tv-text: var(--hv-text, #f5f5f7);
    --tv-muted: var(--hv-muted, #9b9ba8);
    --tv-ease: var(--hv-transition, 0.28s cubic-bezier(0.22, 1, 0.36, 1));
    padding-bottom: 3.5rem;
}

/* ---------- Hero ---------- */
.terms-vod-page .terms-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(220px, 34vw, 320px);
    display: flex;
    align-items: flex-end;
    padding: 5.5rem 0 2.4rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.terms-vod-page .terms-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 55% 70% at 85% 20%, rgba(225, 25, 143, 0.22), transparent 60%),
        radial-gradient(ellipse 50% 60% at 10% 80%, rgba(139, 24, 116, 0.28), transparent 55%),
        linear-gradient(160deg, #1a0f18 0%, #0c0c10 48%, #09090b 100%);
}

.terms-vod-page .terms-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(9, 9, 11, 0.15) 0%, rgba(9, 9, 11, 0.55) 55%, var(--tv-bg) 100%);
    pointer-events: none;
}

.terms-vod-page .terms-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 46rem;
    animation: termsFadeUp 0.7s var(--tv-ease) both;
}

.terms-vod-page .terms-hero .hv-kicker {
    gap: 0.35rem;
}

.terms-vod-page .terms-hero-title {
    margin: 0 0 0.75rem;
    color: #fff;
    font-size: clamp(1.85rem, 3.6vw, 2.75rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.terms-vod-page .terms-hero-lead {
    margin: 0;
    max-width: 38rem;
    color: var(--tv-muted);
    font-size: clamp(0.95rem, 1.5vw, 1.08rem);
    font-weight: 600;
    line-height: 1.7;
}

/* ---------- Layout ---------- */
.terms-vod-page .terms-layout {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 1.75rem 2.25rem;
    align-items: start;
    padding-top: 0.5rem;
}

/* ---------- TOC ---------- */
.terms-vod-page .terms-toc {
    position: sticky;
    top: 6.5rem;
    padding: 1rem 0.85rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--tv-border);
}

.terms-vod-page .terms-toc-label {
    margin: 0 0 0.75rem;
    padding: 0 0.35rem;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
}

.terms-vod-page .terms-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.terms-vod-page .terms-toc-nav a {
    display: block;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    color: var(--tv-muted) !important;
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none !important;
    transition: background var(--tv-ease), color var(--tv-ease);
}

.terms-vod-page .terms-toc-nav a:hover {
    background: rgba(225, 25, 143, 0.12);
    color: #fff !important;
}

/* ---------- Content ---------- */
.terms-vod-page .terms-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.terms-vod-page .terms-block {
    padding: 1.35rem 1.25rem 1.4rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid var(--tv-border);
    scroll-margin-top: 6.5rem;
}

.terms-vod-page .terms-group-label {
    margin: 0 0 0.65rem;
    color: var(--tv-primary-hover);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.terms-vod-page .terms-block-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0 0 0.75rem;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 850;
    line-height: 1.35;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terms-vod-page .terms-block-title i {
    color: var(--tv-primary-hover);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.terms-vod-page .terms-block-title::after {
    content: none;
}

.terms-vod-page .terms-prose {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.terms-vod-page .terms-prose p,
.terms-vod-page .terms-olist li,
.terms-vod-page .terms-note {
    margin: 0;
    color: rgba(245, 245, 247, 0.88);
    font-size: 0.95rem;
    font-weight: 550;
    line-height: 1.95;
    text-align: justify;
}

.terms-vod-page .terms-prose a {
    color: var(--tv-primary-hover) !important;
    text-decoration: none !important;
    font-weight: 700;
}

.terms-vod-page .terms-prose a:hover {
    text-decoration: underline !important;
}

.terms-vod-page .terms-olist {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: terms-counter;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.terms-vod-page .terms-olist[start] {
    counter-reset: terms-counter calc(attr(start number, 1) - 1);
}

.terms-vod-page .terms-olist li {
    position: relative;
    padding-inline-start: 2.35rem;
    counter-increment: terms-counter;
}

.terms-vod-page .terms-olist li::before {
    content: counter(terms-counter);
    position: absolute;
    inset-inline-start: 0;
    top: 0.15rem;
    width: 1.7rem;
    height: 1.7rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(139, 24, 116, 0.28);
    border: 1px solid rgba(225, 25, 143, 0.35);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

/* Manual starts because attr() counter support is uneven */
.terms-vod-page #terms-usage .terms-olist { counter-reset: terms-counter 0; }
.terms-vod-page #terms-account .terms-olist { counter-reset: terms-counter 2; }
.terms-vod-page #terms-privacy .terms-olist { counter-reset: terms-counter 3; }
.terms-vod-page #terms-access .terms-olist { counter-reset: terms-counter 5; }
.terms-vod-page #terms-bandwidth .terms-olist { counter-reset: terms-counter 8; }
.terms-vod-page #terms-report .terms-olist { counter-reset: terms-counter 9; }
.terms-vod-page #terms-finance .terms-olist { counter-reset: terms-counter 10; }
.terms-vod-page #terms-parental .terms-olist { counter-reset: terms-counter 11; }
.terms-vod-page #terms-user .terms-olist:first-of-type { counter-reset: terms-counter 12; }
.terms-vod-page #terms-user .terms-olist:last-of-type { counter-reset: terms-counter 15; }

.terms-vod-page .terms-note {
    margin-top: 0.95rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: var(--tv-muted);
}

.terms-vod-page .terms-note--accent {
    border-style: solid;
    border-color: rgba(225, 25, 143, 0.28);
    background: rgba(139, 24, 116, 0.14);
    color: rgba(245, 245, 247, 0.9);
}

.terms-vod-page .terms-note--accent strong {
    color: var(--tv-primary-hover);
    font-weight: 850;
}

/* ---------- Support ---------- */
.terms-vod-page .terms-support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
    padding: 1.4rem 1.35rem;
    border-radius: 18px;
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(225, 25, 143, 0.18), transparent 55%),
        rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(225, 25, 143, 0.22);
}

.terms-vod-page .terms-support-title {
    margin: 0 0 0.4rem;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 850;
}

.terms-vod-page .terms-support-text {
    margin: 0;
    max-width: 34rem;
    color: var(--tv-muted);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.7;
}

.terms-vod-page .terms-support-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.terms-vod-page .terms-support-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 3.35rem;
    padding: 0.55rem 1.25rem 0.55rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(225, 25, 143, 0.35);
    background: linear-gradient(135deg, var(--tv-primary, #8B1874), #b01d8a 55%, #d41a92);
    color: #fff !important;
    text-decoration: none !important;
    box-shadow:
        0 14px 28px rgba(139, 24, 116, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, filter 0.28s ease;
}

.terms-vod-page .terms-support-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    color: #fff !important;
    box-shadow:
        0 18px 34px rgba(225, 25, 143, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.terms-vod-page .terms-support-cta:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 3px;
}

.terms-vod-page .terms-support-cta-icon {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}

.terms-vod-page .terms-support-cta-icon i {
    font-size: 1.15rem;
    line-height: 1;
}

.terms-vod-page .terms-support-cta-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    min-width: 0;
    padding-inline-end: 0.35rem;
}

.terms-vod-page .terms-support-cta-label {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 850;
    line-height: 1.15;
}

.terms-vod-page .terms-support-cta-meta {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: 0.01em;
    direction: ltr;
}

.terms-vod-page .terms-support-phone {
    min-height: 3.35rem;
}

/* ---------- Motion ---------- */
@keyframes termsFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terms-vod-page .terms-block {
    animation: termsFadeUp 0.55s var(--tv-ease) both;
}

.terms-vod-page .terms-block:nth-child(1) { animation-delay: 0.04s; }
.terms-vod-page .terms-block:nth-child(2) { animation-delay: 0.08s; }
.terms-vod-page .terms-block:nth-child(3) { animation-delay: 0.12s; }
.terms-vod-page .terms-block:nth-child(4) { animation-delay: 0.16s; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .terms-vod-page .terms-layout {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    .terms-vod-page .terms-toc {
        position: static;
        padding: 0.85rem;
    }

    .terms-vod-page .terms-toc-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.25rem;
    }
}

@media (max-width: 767.98px) {
    .terms-vod-page .terms-hero {
        min-height: 200px;
        padding: 4.5rem 0 1.75rem;
    }

    .terms-vod-page .terms-block {
        padding: 1.1rem 0.95rem 1.15rem;
        border-radius: 14px;
    }

    .terms-vod-page .terms-block-title {
        font-size: 1.05rem;
    }

    .terms-vod-page .terms-prose p,
    .terms-vod-page .terms-olist li,
    .terms-vod-page .terms-note {
        font-size: 0.9rem;
        text-align: right;
    }

    .terms-vod-page .terms-toc-nav {
        grid-template-columns: 1fr;
    }

    .terms-vod-page .terms-support {
        padding: 1.15rem 1rem;
    }

    .terms-vod-page .terms-support-actions {
        width: 100%;
    }

    .terms-vod-page .terms-support-cta,
    .terms-vod-page .terms-support-actions .hv-cta {
        flex: 1 1 100%;
        justify-content: center;
    }

    .terms-vod-page .terms-support-cta-copy {
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .terms-vod-page .terms-hero-inner,
    .terms-vod-page .terms-block {
        animation: none !important;
    }
}
