/* Terms & Conditions and Privacy Policy pages (scoped to .legal-page) */
.legal-page .legal-hero {
    padding-bottom: 48px;
    background: linear-gradient(180deg, #fff 0%, #f8f6f3 100%);
}

.legal-page .legal-hero-inner {
    max-width: 760px;
    padding-top: 12px;
}

.legal-page .legal-hero-inner .section-subtitle {
    margin-bottom: 12px;
}

.legal-page .legal-hero-inner .about-hero-statement-lead {
    margin-bottom: 22px;
}

.legal-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 28px;
    list-style: none;
    padding: 18px 0 0;
    margin: 0;
    border-top: 1px solid #e8e3dc;
    font-size: 13px;
    color: #777;
}

.legal-hero-meta i {
    color: #b68d5a;
    margin-right: 6px;
}

.legal-page .legal-body {
    padding: 70px 0 90px;
}

/* Table of contents */
.legal-toc {
    position: sticky;
    top: 130px;
    padding: 26px 24px;
    background: #f8f6f3;
    border-top: 2px solid #111;
}

.legal-toc-title {
    display: block;
    list-style: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 16px;
    cursor: default;
    pointer-events: none;
}

.legal-toc-title::-webkit-details-marker {
    display: none;
}

.legal-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-toc-list li + li {
    margin-top: 2px;
}

.legal-toc-list a {
    display: flex;
    gap: 12px;
    padding: 7px 0 7px 12px;
    border-left: 2px solid transparent;
    font-size: 14px;
    line-height: 1.45;
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-toc-list a:hover,
.legal-toc-list a.is-active {
    color: #111;
    border-left-color: #b68d5a;
}

.legal-toc-num {
    flex: 0 0 22px;
    font-family: 'Inria Serif', serif;
    color: #b68d5a;
}

/* Content */
.legal-content {
    padding-left: 30px;
}

.legal-section {
    position: relative;
    padding: 0 0 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    scroll-margin-top: 130px;
}

.legal-section-num {
    display: block;
    font-family: 'Inria Serif', serif;
    font-size: 34px;
    line-height: 1;
    color: #d4a574;
    margin-bottom: 12px;
}

.legal-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 18px;
}

.legal-section-body {
    color: #555;
    font-size: 15px;
    line-height: 1.9;
}

.legal-section-body p {
    margin-bottom: 14px;
}

.legal-section-body p:last-child,
.legal-section-body ul:last-child {
    margin-bottom: 0;
}

.legal-section-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 22px 0 10px;
}

.legal-section-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

.legal-section-body ul li {
    position: relative;
    padding: 6px 0 6px 26px;
}

.legal-section-body ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 18px;
    width: 8px;
    height: 8px;
    background: #b68d5a;
    transform: rotate(45deg);
}

.legal-section-body strong {
    color: #111;
}

.legal-section-body a {
    color: #b68d5a;
    font-weight: 600;
    text-decoration: none;
}

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

.legal-highlight {
    padding: 18px 22px;
    margin: 18px 0;
    background: #f8f6f3;
    border-left: 3px solid #b68d5a;
    color: #444;
}

/* Contact card */
.legal-contact-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 40px;
    background: #111;
    color: #fff;
}

.legal-contact-card__intro {
    flex: 1 1 280px;
}

.legal-contact-card__intro .section-subtitle {
    margin-bottom: 10px;
}

.legal-contact-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.legal-contact-card p {
    color: #bbb;
    margin: 0;
    line-height: 1.7;
}

.legal-contact-card__list {
    flex: 1 1 280px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-contact-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
    color: #ddd;
}

.legal-contact-card__list li:last-child {
    border-bottom: 0;
}

.legal-contact-card__list i {
    width: 16px;
    margin-top: 4px;
    color: #b68d5a;
    text-align: center;
}

.legal-contact-card__list a {
    color: #fff;
    text-decoration: none;
}

.legal-contact-card__list a:hover {
    color: #b68d5a;
}

@media (max-width: 991.98px) {
    .legal-page .legal-body {
        padding: 40px 0 60px;
    }

    .legal-toc {
        position: static;
        margin-bottom: 36px;
        padding: 18px 20px;
    }

    .legal-toc-title {
        position: relative;
        margin-bottom: 0;
        cursor: pointer;
        pointer-events: auto;
    }

    .legal-toc-title::after {
        content: "\f107";
        font-family: FontAwesome;
        position: absolute;
        right: 0;
        top: -2px;
        font-size: 16px;
        letter-spacing: 0;
        transition: transform 0.2s ease;
    }

    .legal-toc[open] .legal-toc-title {
        margin-bottom: 14px;
    }

    .legal-toc[open] .legal-toc-title::after {
        transform: rotate(180deg);
    }

    .legal-content {
        padding-left: 0;
    }

    .legal-section {
        scroll-margin-top: 90px;
    }
}

@media (max-width: 767px) {
    .legal-page .legal-hero {
        padding-bottom: 32px;
    }

    .legal-section {
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .legal-section-num {
        font-size: 28px;
    }

    .legal-section-title {
        font-size: 20px;
    }

    .legal-contact-card {
        padding: 28px 22px;
    }
}
