/* Terms page (templates/web/term.html) */

/* Hero */
.terms_hero .bred_text h1 {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 24px;
    text-wrap: balance;
}

.terms_hero .bred_text h1 + p {
    max-width: 680px;
    margin: 0 auto 24px;
    font-size: 18px;
    line-height: 28px;
    text-wrap: pretty;
}

/* Body */
.terms_page {
    padding: 64px 0 96px;
}

.terms_wrap {
    max-width: 800px;
    margin: 0 auto;
    /* responsive.css centers text below 767px; legal copy stays right aligned */
    text-align: right;
}

.terms_updated {
    display: inline-block;
    margin: 0 0 32px;
    padding: 4px 12px;
    border-radius: 9999px;
    background-color: var(--light-purple);
    color: var(--purple);
    font-size: 14px;
    line-height: 20px;
}

.terms_updated strong {
    font-weight: 700;
}

.terms_card {
    margin-bottom: 16px;
    padding: 32px;
    border: 1px solid var(--light-bg);
    border-radius: 16px;
    background-color: var(--bg-white);
}

.terms_card:last-child {
    margin-bottom: 0;
}

.terms_card h2 {
    margin: 0 0 16px;
    color: var(--dark-purple);
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    text-wrap: balance;
}

.terms_card p,
.terms_card li {
    color: var(--body-text-purple);
    font-size: 18px;
    line-height: 28px;
    text-wrap: pretty;
}

.terms_card p {
    margin: 0 0 16px;
}

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

.terms_card strong {
    color: var(--dark-purple);
    font-weight: 700;
}

.terms_card ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.terms_card li {
    position: relative;
    padding-right: 24px;
}

/* bullet, vertically centered on the first line: (28px - 8px) / 2 */
.terms_card li::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: var(--purple);
}

.terms_card a {
    color: var(--purple);
    text-decoration: underline;
    text-underline-offset: 4px;
    border-radius: 4px;
    transition: color 700ms cubic-bezier(0.32, 0.72, 0, 1);
}

.terms_card a:hover {
    color: var(--dark-purple);
    text-decoration: underline;
}

.terms_card a:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}

@media screen and (max-width: 767px) {
    .terms_hero .bred_text h1 {
        font-size: 36px;
        line-height: 40px;
        margin-bottom: 16px;
    }

    .terms_hero .bred_text h1 + p {
        font-size: 16px;
        line-height: 24px;
    }

    .terms_page {
        padding: 48px 0 64px;
    }

    .terms_card {
        padding: 24px 16px;
    }

    .terms_card h2 {
        margin-bottom: 12px;
        font-size: 20px;
        line-height: 28px;
    }

    .terms_card p,
    .terms_card li {
        font-size: 16px;
        line-height: 24px;
    }

    /* (24px - 8px) / 2 */
    .terms_card li::before {
        top: 8px;
    }
}
