/* =========================================================
   LEGAL PAGES (Terms & Privacy)  -  prefix: crown-auto-deals-legal
   ========================================================= */
html {
    scroll-behavior: smooth;
}

.crown-auto-deals-legal-page {
    --cad-red: #dc2626;
    --cad-red-dark: #b91c1c;
    --cad-text: #f4f4f5;
    --cad-muted: #c4c4cc;
    --cad-line: rgb(255 255 255 / .1);
    --cad-card: rgb(255 255 255 / .05);

    background: linear-gradient(to bottom, #000000 0%, #1a0000 25%, #520000 50%, #1a0000 75%, #000000 100%);
    color: var(--cad-text);
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.crown-auto-deals-legal-page *,
.crown-auto-deals-legal-page *::before,
.crown-auto-deals-legal-page *::after {
    box-sizing: border-box;
}

/* =========================================================
   HERO
   ========================================================= */
.crown-auto-deals-legal-hero {
    padding: 70px 0 36px;
    text-align: center;
}

.crown-auto-deals-legal-crumb {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
    padding: 6px 16px;
    border: 1px solid var(--cad-line);
    border-radius: 50px;
    background: var(--cad-card);
    font-size: 13px;
}

.crown-auto-deals-legal-crumb a {
    color: #d4d4d8;
    text-decoration: none;
}

.crown-auto-deals-legal-crumb a:last-child {
    color: #fff;
    font-weight: 600;
}

.crown-auto-deals-legal-crumb a:hover {
    color: #fca5a5;
}

.crown-auto-deals-legal-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #f87171;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.crown-auto-deals-legal-title {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(30px, 4.6vw, 48px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.4px;
}

.crown-auto-deals-legal-title span {
    color: var(--cad-red);
}

.crown-auto-deals-legal-intro {
    max-width: 680px;
    margin: 0 auto 18px;
    color: var(--cad-muted);
    font-size: 16.5px;
    line-height: 1.7;
}

.crown-auto-deals-legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px;
    border: 1px solid rgb(220 38 38 / .45);
    border-radius: 50px;
    background: rgb(220 38 38 / .12);
    color: #fecaca;
    font-size: 13px;
}

.crown-auto-deals-legal-updated strong {
    color: #fff;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.crown-auto-deals-legal-section {
    padding: 12px 0 84px;
}

.crown-auto-deals-legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

@media (min-width: 992px) {
    .crown-auto-deals-legal-layout {
        grid-template-columns: 290px minmax(0, 1fr);
        gap: 36px;
        align-items: start;
    }
}

/* =========================================================
   TABLE OF CONTENTS
   ========================================================= */
.crown-auto-deals-legal-toc {
    border: 1px solid var(--cad-line);
    border-radius: 18px;
    background: var(--cad-card);
}

.crown-auto-deals-legal-toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 20px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    list-style: none;
    cursor: pointer;
}

.crown-auto-deals-legal-toc summary::-webkit-details-marker {
    display: none;
}

.crown-auto-deals-legal-toc summary i {
    color: var(--cad-red);
    font-size: 20px;
    transition: transform .25s;
}

.crown-auto-deals-legal-toc[open] summary i {
    transform: rotate(180deg);
}

.crown-auto-deals-legal-toc ol {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0 10px 12px;
    list-style: none;
    counter-reset: toc;
}

.crown-auto-deals-legal-toc li {
    counter-increment: toc;
}

.crown-auto-deals-legal-toc a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #d4d4d8;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.crown-auto-deals-legal-toc a::before {
    content: counter(toc);
    flex: 0 0 22px;
    color: #f87171;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

.crown-auto-deals-legal-toc a:hover {
    background: rgb(255 255 255 / .07);
    color: #fff;
}

.crown-auto-deals-legal-toc a.is-active {
    background: var(--cad-red);
    color: #fff;
}

.crown-auto-deals-legal-toc a.is-active::before {
    color: #fff;
}

@media (min-width: 992px) {
    .crown-auto-deals-legal-toc {
        position: sticky;
        top: 110px;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--cad-red) transparent;
    }

    .crown-auto-deals-legal-toc summary {
        pointer-events: none;
    }

    .crown-auto-deals-legal-toc summary i {
        display: none;
    }
}

/* =========================================================
   CONTENT
   ========================================================= */
.crown-auto-deals-legal-content {
    min-width: 0;
    padding: 38px 40px 40px;
    border: 1px solid var(--cad-line);
    border-radius: 22px;
    background: var(--cad-card);
    counter-reset: sec;
}

/* ---------- Plain English summary ---------- */
.crown-auto-deals-legal-summary {
    margin-bottom: 34px;
    padding: 22px 24px;
    border: 1px solid rgb(220 38 38 / .4);
    border-radius: 18px;
    background: linear-gradient(160deg, rgb(220 38 38 / .18), rgb(255 255 255 / .03) 70%);
}

.crown-auto-deals-legal-summary h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.crown-auto-deals-legal-summary h2 i {
    color: var(--cad-red);
    font-size: 22px;
}

.crown-auto-deals-legal-summary ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.crown-auto-deals-legal-summary li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #e4e4e7;
    font-size: 15px;
    line-height: 1.6;
}

.crown-auto-deals-legal-summary li i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--cad-red);
    font-size: 18px;
}

/* ---------- Sections ---------- */
.crown-auto-deals-legal-sec {
    padding: 28px 0;
    border-top: 1px solid var(--cad-line);
    scroll-margin-top: 100px;
}

.crown-auto-deals-legal-sec:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.crown-auto-deals-legal-sec h2 {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 14px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.crown-auto-deals-legal-sec h2::before {
    counter-increment: sec;
    content: counter(sec);
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 50px;
    background: var(--cad-red);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    transform: translateY(-2px);
}

.crown-auto-deals-legal-sec h3 {
    margin: 20px 0 8px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.crown-auto-deals-legal-sec p {
    margin: 0 0 14px;
    color: var(--cad-muted);
    font-size: 15.5px;
    line-height: 1.8;
}

.crown-auto-deals-legal-sec ul,
.crown-auto-deals-legal-sec ol {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
    padding-left: 22px;
}

.crown-auto-deals-legal-sec li {
    color: var(--cad-muted);
    font-size: 15.5px;
    line-height: 1.7;
}

.crown-auto-deals-legal-sec li::marker {
    color: #f87171;
}

.crown-auto-deals-legal-sec strong {
    color: #fff;
}

.crown-auto-deals-legal-sec a {
    color: #f87171;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.crown-auto-deals-legal-sec a:hover {
    color: #fff;
}

/* ---------- Callout ---------- */
.crown-auto-deals-legal-callout {
    display: flex;
    gap: 14px;
    margin: 0 0 16px;
    padding: 16px 18px;
    border: 1px solid rgb(220 38 38 / .45);
    border-left: 4px solid var(--cad-red);
    border-radius: 14px;
    background: rgb(220 38 38 / .1);
}

.crown-auto-deals-legal-callout>i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #f87171;
    font-size: 22px;
}

.crown-auto-deals-legal-callout p {
    margin: 0;
    color: #f4f4f5;
    font-size: 15px;
}

/* ---------- Contact block ---------- */
.crown-auto-deals-legal-contact {
    display: grid;
    gap: 12px;
    margin-top: 6px;
    padding: 20px 22px;
    border: 1px solid var(--cad-line);
    border-radius: 16px;
    background: rgb(0 0 0 / .25);
}

.crown-auto-deals-legal-contact div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #e4e4e7;
    font-size: 15px;
    line-height: 1.6;
}

.crown-auto-deals-legal-contact i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--cad-red);
    font-size: 20px;
}

.crown-auto-deals-legal-contact a {
    text-decoration: none;
}

.crown-auto-deals-legal-disclaimer {
    margin: 22px 0 0;
    color: #8a8a95;
    font-size: 12.5px;
    line-height: 1.7;
    text-align: center;
}

/* ---------- Back to top ---------- */
.crown-auto-deals-legal-top {
    position: fixed;
    right: 20px;
    bottom: 84px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--cad-red);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 10px 24px -8px rgb(0 0 0 / .7);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .25s, transform .25s, background .2s;
    cursor: pointer;
}

.crown-auto-deals-legal-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.crown-auto-deals-legal-top:hover {
    background: var(--cad-red-dark);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991.98px) {
    .crown-auto-deals-legal-hero {
        padding: 70px 0 26px;
    }

    .crown-auto-deals-legal-section {
        padding-bottom: 56px;
    }

    .crown-auto-deals-legal-content {
        padding: 28px 24px 30px;
    }
}

@media (max-width: 575.98px) {
    .crown-auto-deals-legal-hero {
        padding: 70px 0 20px;
    }

    .crown-auto-deals-legal-crumb {
        margin-bottom: 14px;
        padding: 4px 12px;
        font-size: 12px;
    }

    .crown-auto-deals-legal-title {
        font-size: 27px;
    }

    .crown-auto-deals-legal-intro {
        font-size: 14.5px;
    }

    .crown-auto-deals-legal-updated {
        padding: 5px 12px;
        font-size: 12px;
    }

    .crown-auto-deals-legal-toc {
        border-radius: 16px;
    }

    .crown-auto-deals-legal-toc summary {
        padding: 13px 16px;
        font-size: 14px;
    }

    .crown-auto-deals-legal-toc a {
        padding: 7px 10px;
        font-size: 13.5px;
    }

    .crown-auto-deals-legal-content {
        padding: 22px 16px 24px;
        border-radius: 18px;
    }

    .crown-auto-deals-legal-summary {
        margin-bottom: 24px;
        padding: 18px 16px;
        border-radius: 16px;
    }

    .crown-auto-deals-legal-summary h2 {
        font-size: 16px;
    }

    .crown-auto-deals-legal-summary li {
        font-size: 14px;
    }

    .crown-auto-deals-legal-sec {
        padding: 22px 0;
    }

    .crown-auto-deals-legal-sec h2 {
        gap: 10px;
        font-size: 18px;
    }

    .crown-auto-deals-legal-sec h2::before {
        min-width: 26px;
        height: 26px;
        font-size: 12.5px;
    }

    .crown-auto-deals-legal-sec h3 {
        font-size: 15.5px;
    }

    .crown-auto-deals-legal-sec p,
    .crown-auto-deals-legal-sec li {
        font-size: 14.5px;
        line-height: 1.7;
    }

    .crown-auto-deals-legal-callout {
        gap: 10px;
        padding: 14px;
    }

    .crown-auto-deals-legal-callout p {
        font-size: 14px;
    }

    .crown-auto-deals-legal-contact {
        padding: 16px;
    }

    .crown-auto-deals-legal-contact div {
        font-size: 14px;
    }

    .crown-auto-deals-legal-top {
        right: 14px;
        bottom: 78px;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
    .crown-auto-deals-legal-page {
        background: #fff;
        color: #000;
    }

    .crown-auto-deals-legal-toc,
    .crown-auto-deals-legal-top,
    .crown-auto-deals-legal-crumb {
        display: none !important;
    }

    .crown-auto-deals-legal-layout {
        display: block;
    }

    .crown-auto-deals-legal-content,
    .crown-auto-deals-legal-summary,
    .crown-auto-deals-legal-callout,
    .crown-auto-deals-legal-contact {
        border-color: #ccc;
        background: #fff;
    }

    .crown-auto-deals-legal-title,
    .crown-auto-deals-legal-sec h2,
    .crown-auto-deals-legal-sec h3,
    .crown-auto-deals-legal-sec strong,
    .crown-auto-deals-legal-summary h2 {
        color: #000;
    }

    .crown-auto-deals-legal-intro,
    .crown-auto-deals-legal-sec p,
    .crown-auto-deals-legal-sec li,
    .crown-auto-deals-legal-summary li,
    .crown-auto-deals-legal-callout p,
    .crown-auto-deals-legal-contact div {
        color: #222;
    }

    .crown-auto-deals-legal-sec {
        break-inside: avoid-page;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .crown-auto-deals-legal-page * {
        transition: none !important;
    }
}