/* ── Creek Motors Legal Pages (Terms of Service & Privacy Policy) ── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; }

body.creek-legal-page {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: #F7F8FB;
    min-height: 100vh;
    color: #2D3442;
}

/* Hide loader and progress chrome only */
body.creek-legal-page .loader-wrapper,
body.creek-legal-page #anywhere-home,
body.creek-legal-page .progress-wrap {
    display: none !important;
}

/* ── Page layout ── */
.creek-legal-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 80px 24px 80px;
}

/* ── Section title (matches home page FAQ heading) ── */
.creek-legal-container .rts-section-title {
    text-align: center;
    margin-bottom: 20px;
}

.creek-legal-container .rts-section-title .subtitle {
    display: inline-block;
    font-size: 20px;
    color: #FF3600;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    margin-bottom: 15px;
}

.creek-legal-container .rts-section-title .heading-title {
    font-size: 44px;
    font-weight: 800;
    color: #050B20;
    font-family: 'Outfit', sans-serif;
    margin: 0;
    line-height: 1.2;
}

.creek-legal-container .rts-section-title .heading-title span {
    color: #FF3600;
    position: relative;
}

.creek-legal-container .rts-section-title .heading-title span::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 3px;
    background: #FF3600;
    border-radius: 6px;
    bottom: 6px;
    left: 0;
}

/* ── Effective date badge ── */
.creek-legal-effective {
    text-align: center;
    margin-bottom: 40px;
}

.creek-legal-effective .effective-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 54, 0, 0.08);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #FF3600;
}

.creek-legal-effective .effective-date svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── Notice box ── */
.creek-legal-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: #FFF6F0;
    border: 1px solid rgba(255, 54, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 40px;
}

.creek-legal-notice .notice-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #FF3600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.creek-legal-notice .notice-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.creek-legal-notice .notice-text {
    font-size: 14px;
    line-height: 1.6;
    color: #6B4423;
    font-weight: 500;
}

/* ── Intro text ── */
.creek-legal-intro {
    font-size: 16px;
    line-height: 1.7;
    color: #4A4F59;
    margin-bottom: 40px;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #EAECEF;
}

/* ── Accordion (matches home page FAQ accordion) ── */
.creek-legal-accordion {
    margin-bottom: 40px;
}

.creek-legal-accordion .accordion .accordion-item {
    padding: 18px 30px;
    border: 1px solid rgba(85, 85, 85, 0.15);
    background: #fff;
    border-radius: 6px;
    position: relative;
}

.creek-legal-accordion .accordion .accordion-item:not(:last-child) {
    margin-bottom: 20px;
}

.creek-legal-accordion .accordion .accordion-item.active {
    background: #F6F6F6;
    border: 1px solid transparent;
}

.creek-legal-accordion .accordion .accordion-item .accordion-header .accordion-button {
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #050B20;
    padding: 0;
    border: none;
    background: transparent;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
}

.creek-legal-accordion .accordion .accordion-item .accordion-button:not(.collapsed) {
    background: transparent;
    color: #1F1F25;
    box-shadow: none;
}

.creek-legal-accordion .accordion .accordion-item .accordion-button::after {
    content: "+";
    font-family: "Font Awesome 6 Pro", sans-serif;
    background-image: none;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #050B20;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.creek-legal-accordion .accordion .accordion-item .accordion-button:not(.collapsed)::after {
    content: "\f068";
    font-family: "Font Awesome 6 Pro", sans-serif;
    color: #FF3600;
    transform: none;
    background: #FF3600;
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 14px;
}

.creek-legal-accordion .accordion .accordion-item .accordion-body {
    padding: 0;
    padding-top: 15px;
}

.creek-legal-accordion .accordion .accordion-body p {
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
    margin: 0 0 12px;
}

.creek-legal-accordion .accordion .accordion-body p:last-child {
    margin-bottom: 0;
}

.creek-legal-accordion .accordion .accordion-body ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.creek-legal-accordion .accordion .accordion-body ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 8px;
}

.creek-legal-accordion .accordion .accordion-body ul li:last-child {
    margin-bottom: 0;
}

.creek-legal-accordion .accordion .accordion-body ul li .bullet-icon {
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background: #FF3600;
    margin-top: 9px;
}

.creek-legal-accordion .accordion .accordion-body a {
    color: #FF3600;
    font-weight: 600;
    text-decoration: none;
}

.creek-legal-accordion .accordion .accordion-body a:hover {
    text-decoration: underline;
}

/* ── Contact card inside accordion ── */
.creek-legal-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: #F8F9FB;
    border-radius: 12px;
    margin-top: 12px;
}

.creek-legal-contact .contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #4A4F59;
}

.creek-legal-contact .contact-row svg {
    width: 18px;
    height: 18px;
    fill: #FF3600;
    flex-shrink: 0;
}

.creek-legal-contact .contact-row a {
    color: #FF3600;
    font-weight: 600;
    text-decoration: none;
}

.creek-legal-contact .contact-row a:hover {
    text-decoration: underline;
}

/* ── Back button ── */
.creek-legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 12px 28px;
    background: #FF3600;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.25s;
    width: auto !important;
}

.creek-legal-back:hover {
    background: #E04E1A;
    transform: translateY(-2px);
}

.creek-legal-back svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.creek-legal-back-wrapper {
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .creek-legal-container {
        padding: 40px 16px 60px;
    }

    .creek-legal-container .rts-section-title .heading-title {
        font-size: 32px;
    }

    .creek-legal-accordion .accordion .accordion-item {
        padding: 16px 20px;
    }

    .creek-legal-accordion .accordion .accordion-item .accordion-header .accordion-button {
        font-size: 16px;
    }
}

@media (max-width: 580px) {
    .creek-legal-container .rts-section-title .heading-title {
        font-size: 26px;
    }

    .creek-legal-container .rts-section-title .subtitle {
        font-size: 16px;
    }

    .creek-legal-intro {
        padding: 16px;
    }
}
