/* =========================================================
   INTELLIVEST — LEGAL PAGES
   Privacy Policy + Terms & Conditions
========================================================= */


/* =========================================================
   CONTENT
========================================================= */

.legal-content {
    padding-block: var(--section-padding);
    background: #fff;
}

.legal-content__inner {
    max-width: 980px;
    margin-inline: auto;
}

.legal-section {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: var(--space-lg);
    padding-block: var(--space-xl);
    border-bottom: 1px solid rgba(7, 33, 56, 0.12);
}

.legal-section:first-child {
    padding-top: 0;
}

.legal-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.legal-section__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(189, 113, 62, 0.35);
    border-radius: var(--radius-sm);
    background: rgba(189, 113, 62, 0.07);
    color: var(--copper);
    font-weight: var(--fw-extrabold);
}

.legal-section__body h2 {
    margin: 0 0 var(--space-sm);
    color: var(--heading-color);
    font-size: var(--fs-h3);
    font-weight: var(--fw-extrabold);
    line-height: var(--lh-heading);
}

.legal-section__text {
    color: var(--body-color);
    line-height: var(--lh-copy);
}

.legal-section__text p {
    margin: 0 0 var(--space-sm);
}

.legal-section__text p:last-child {
    margin-bottom: 0;
}

.legal-section__text ul,
.legal-section__text ol {
    margin: var(--space-md) 0;
    padding-inline-start: var(--space-lg);
}

.legal-section__text li {
    margin-bottom: var(--space-xs);
}

.legal-section__text li:last-child {
    margin-bottom: 0;
}

.legal-section__text li::marker {
    color: var(--copper);
}


/* =========================================================
   FARSI / RTL
========================================================= */

html[dir="rtl"] .legal-page,
.legal-page--rtl {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .legal-section,
.legal-page--rtl .legal-section {
    direction: rtl;
}

html[dir="rtl"] .legal-section__text ul,
html[dir="rtl"] .legal-section__text ol,
.legal-page--rtl .legal-section__text ul,
.legal-page--rtl .legal-section__text ol {
    padding-right: var(--space-lg);
    padding-left: 0;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .legal-content__inner {
        max-width: 100%;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .legal-section {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .legal-section__number {
        width: 42px;
        height: 42px;
    }
}
