/* Legal / policy content pages (Terms & Conditions, Complaints Policy, Company
   Policy, Private Notice, Cookie Policy). All five share the same "collapse"
   page template, so this single stylesheet keeps them consistent. */

.cms-policy-redesign .cpp-main {
    background: #fff;
}

/* Hero */
.cms-policy-redesign .cpp-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 44px;
    background: linear-gradient(180deg, #eef4ff 0%, #fff 100%);
    border-bottom: 1px solid var(--ln-border);
}

.cms-policy-redesign .cpp-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.cms-policy-redesign .cpp-hero .ln-multicolour-rule {
    justify-content: center;
    margin: 16px 0 0;
}

.cms-policy-redesign .cpp-hero h1 {
    margin: 10px 0 0;
    color: var(--ln-navy);
    font-size: clamp(32px, 4.4vw, 48px);
    line-height: 1.15;
}

.cms-policy-redesign .cpp-hero-desc {
    max-width: 620px;
    margin: 18px auto 0;
    color: var(--ln-muted);
    font-size: 16px;
    line-height: 1.6;
}

.cms-policy-redesign .cpp-hero-desc :where(p, span) {
    font-size: 16px !important;
    color: var(--ln-muted) !important;
}

.cms-policy-redesign .cpp-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 22px 0 0;
    color: var(--ln-muted);
    font-size: 13px;
    font-weight: 600;
}

.cms-policy-redesign .cpp-updated i {
    color: var(--ln-blue);
}

/* Body layout: sticky table-of-contents + section list */
.cms-policy-redesign .cpp-body {
    padding: 56px 0 96px;
}

.cms-policy-redesign .cpp-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 56px;
}

.cms-policy-redesign .cpp-toc {
    position: sticky;
    top: calc(var(--ln-header-h, 144px) + 28px);
    padding: 22px 20px;
    border: 1px solid var(--ln-border);
    border-radius: 16px;
    background: #fafbfe;
    max-height: calc(100vh - var(--ln-header-h, 144px) - 56px);
    overflow-y: auto;
}

.cms-policy-redesign .cpp-toc-title {
    display: block;
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ln-navy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
    cursor: default;
}

.cms-policy-redesign .cpp-toc ol {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: cpp-toc;
}

/* The [hidden] attribute (used to collapse the TOC on tablet/mobile) must
   win over the display:flex/grid rules above, which otherwise outrank the
   single attribute selector on specificity. */
.cms-policy-redesign .cpp-toc ol[hidden] {
    display: none !important;
}

.cms-policy-redesign .cpp-toc li {
    counter-increment: cpp-toc;
}

.cms-policy-redesign .cpp-toc a {
    display: block;
    padding: 7px 8px;
    border-radius: 8px;
    color: var(--ln-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .01em;
}

.cms-policy-redesign .cpp-toc a::before {
    margin-right: 6px;
    color: var(--ln-pink);
    content: counter(cpp-toc) ".";
}

.cms-policy-redesign .cpp-toc a:hover,
.cms-policy-redesign .cpp-toc a:focus-visible {
    background: #fff2f7;
    color: var(--ln-pink);
}

.cms-policy-redesign .cpp-content {
    min-width: 0;
    max-width: 780px;
}

.cms-policy-redesign .cpp-section {
    padding: 30px 0;
    border-bottom: 1px solid var(--ln-border);
    scroll-margin-top: calc(var(--ln-header-h, 144px) + 20px);
}

.cms-policy-redesign .cpp-section:first-child {
    padding-top: 0;
}

.cms-policy-redesign .cpp-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.cms-policy-redesign .cpp-section-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 14px;
}

.cms-policy-redesign .cpp-section-number {
    flex: none;
    color: var(--ln-pink);
    font-family: 'Nova Flat', sans-serif;
    font-size: 15px;
    font-weight: 400;
}

.cms-policy-redesign .cpp-section-head h2 {
    margin: 0;
    color: var(--ln-navy);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .01em;
    text-transform: uppercase;
}

/* Prose: the WYSIWYG-authored content ships with hard-coded inline
   font-sizes (e.g. style="font-size: 12px") from the legacy editor, so the
   typography is forced here to keep every page readable and consistent. */
.cms-policy-redesign .cpp-prose {
    color: var(--ln-text);
    font-size: 15px;
    line-height: 1.75;
}

.cms-policy-redesign .cpp-prose :where(p, span, div, li) {
    color: var(--ln-text) !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
}

.cms-policy-redesign .cpp-prose p {
    margin: 0 0 14px;
}

.cms-policy-redesign .cpp-prose p:last-child {
    margin-bottom: 0;
}

.cms-policy-redesign .cpp-prose b,
.cms-policy-redesign .cpp-prose strong {
    color: var(--ln-navy);
    font-weight: 700 !important;
}

.cms-policy-redesign .cpp-prose a {
    color: var(--ln-blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cms-policy-redesign .cpp-prose ul,
.cms-policy-redesign .cpp-prose ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

.cms-policy-redesign .cpp-prose li {
    margin-bottom: 6px;
}

@media (max-width: 1199px) {
    .cms-policy-redesign .cpp-toc {
        top: calc(var(--ln-header-h, 78px) + 28px);
        max-height: calc(100vh - var(--ln-header-h, 78px) - 56px);
    }

    .cms-policy-redesign .cpp-section {
        scroll-margin-top: calc(var(--ln-header-h, 78px) + 20px);
    }
}

/* Tablet */
@media (max-width: 991px) {
    .cms-policy-redesign .cpp-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cms-policy-redesign .cpp-toc {
        position: static;
        max-height: none;
    }

    .cms-policy-redesign .cpp-toc-title {
        position: relative;
        margin-bottom: 0;
        padding-right: 26px;
        cursor: pointer;
    }

    .cms-policy-redesign .cpp-toc-title::after {
        position: absolute;
        top: 50%;
        right: 2px;
        color: var(--ln-pink);
        font-size: 18px;
        line-height: 1;
        content: "+";
        transform: translateY(-50%);
    }

    .cms-policy-redesign .cpp-toc-title[aria-expanded="true"]::after {
        content: "\2212";
    }

    .cms-policy-redesign .cpp-toc ol {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px 12px;
        margin-top: 14px;
    }

    .cms-policy-redesign .cpp-content {
        max-width: none;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .cms-policy-redesign .cpp-hero {
        padding: 44px 0 32px;
    }

    .cms-policy-redesign .cpp-body {
        padding: 40px 0 64px;
    }

    .cms-policy-redesign .cpp-toc {
        padding: 18px 16px;
    }

    .cms-policy-redesign .cpp-toc ol {
        grid-template-columns: 1fr;
    }

    .cms-policy-redesign .cpp-section {
        padding: 24px 0;
    }

    .cms-policy-redesign .cpp-section-head h2 {
        font-size: 17px;
    }
}
