/* Page-owned styles for Terms & Conditions */

.terms-main {
    background-color: var(--sandstone-light);
    color: var(--graphite);
}

/* Hero */
.terms-hero {
    background-color: var(--felt-navy);
    color: var(--off-white);
    padding-block: var(--space-64);
}

.terms-hero__content {
    max-width: 66.666%;
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}

.terms-hero__eyebrow {
    color: var(--red-earth);
    margin-block-end: 0;
}

.terms-hero__title {
    font-size: var(--text-h1-size);
    font-weight: var(--text-h1-weight);
    line-height: var(--text-h1-line-height);
    letter-spacing: var(--text-h1-letter-spacing);
    color: var(--off-white);
    margin-block-end: 0;
    position: relative;
    padding-block-start: var(--space-16);
}

.terms-hero__title::before {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--red-earth);
    position: absolute;
    top: 0;
    left: 0;
}

.terms-hero__lead {
    font-size: var(--text-body-large-size);
    line-height: var(--text-body-large-line-height);
    letter-spacing: var(--text-body-large-letter-spacing);
    max-width: 60ch;
    margin-block-end: 0;
}

.terms-hero__support {
    max-width: 60ch;
    margin-block-end: 0;
}

.terms-hero__date {
    font-size: var(--text-body-size);
    font-weight: 600;
    margin-block-end: 0;
}

.terms-hero__address {
    font-size: var(--text-body-small-size);
    line-height: var(--text-body-small-line-height);
    letter-spacing: var(--text-body-small-letter-spacing);
    color: var(--brushed-steel);
    margin-block-end: 0;
}

/* Table of Contents */
.terms-toc-section {
    background-color: var(--sandstone);
    padding-block: var(--space-48);
    border-block-end: var(--border-brushed-steel);
}

.terms-toc__intro {
    margin-block-end: var(--space-16);
}

.terms-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.terms-toc__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--font-body);
    font-size: var(--text-body-size);
    font-weight: var(--text-body-weight);
    line-height: var(--text-body-line-height);
    letter-spacing: var(--text-body-letter-spacing);
    color: var(--graphite);
    text-decoration: none;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.terms-toc__link:hover {
    color: var(--desert-sky);
    text-decoration: underline;
    text-decoration-color: var(--desert-sky);
    text-underline-offset: 4px;
}

.terms-toc__link:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
}

/* Legal sections */
.terms-section {
    padding-block: var(--space-64);
}

.terms-section + .terms-section {
    border-block-start: var(--border-brushed-steel);
}

.terms-section__title {
    font-size: var(--text-h2-size);
    font-weight: var(--text-h2-weight);
    line-height: var(--text-h2-line-height);
    letter-spacing: var(--text-h2-letter-spacing);
    color: var(--graphite);
    margin-block-end: var(--space-24);
}

.terms-section__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
    max-width: 68ch;
}

.terms-section__subtitle {
    font-size: var(--text-h3-size);
    font-weight: var(--text-h3-weight);
    line-height: var(--text-h3-line-height);
    letter-spacing: var(--text-h3-letter-spacing);
    color: var(--graphite);
    margin-block-end: 0;
}

.terms-section__content p {
    margin-block-end: 0;
}

.terms-section__content .content-list {
    margin-block-end: 0;
}

/* Age policy callout */
.terms-age-callout {
    background-color: var(--sandstone);
    border: 1px solid var(--red-earth);
    padding: var(--space-24);
    max-width: 66.666%;
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    margin-block-end: var(--space-24);
}

.terms-age-callout__title {
    font-size: var(--text-h3-size);
    font-weight: var(--text-h3-weight);
    line-height: var(--text-h3-line-height);
    letter-spacing: var(--text-h3-letter-spacing);
    color: var(--graphite);
    margin-block-end: 0;
}

.terms-age-callout p {
    margin-block-end: 0;
}

.terms-age-callout .content-list {
    margin-block-end: 0;
}

.terms-age-id {
    max-width: 68ch;
}

/* Contact list */
.terms-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.terms-contact-list a {
    color: var(--graphite);
    text-decoration: underline;
    text-decoration-color: var(--desert-sky);
    text-underline-offset: 4px;
    transition: color var(--transition-fast);
}

.terms-contact-list a:hover {
    color: var(--desert-sky);
}

.terms-contact-list a:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
}

/* Responsive */
@media (max-width: 991px) {
    .terms-hero__content,
    .terms-age-callout {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .terms-hero {
        padding-block: var(--space-48);
    }

    .terms-hero__content {
        gap: var(--space-12);
    }

    .terms-hero__title {
        font-size: 2rem;
    }

    .terms-hero__lead,
    .terms-hero__support {
        max-width: 100%;
    }

    .terms-toc-section {
        padding-block: var(--space-32);
    }

    .terms-section {
        padding-block: var(--space-48);
    }

    .terms-section__content {
        gap: var(--space-16);
    }

    .terms-age-callout {
        padding: var(--space-16);
        gap: var(--space-12);
        margin-block-end: var(--space-16);
    }
}

@media (prefers-reduced-motion: reduce) {
    .terms-toc__link,
    .terms-contact-list a {
        transition: none;
    }
}
