.terms-hero {
    padding-block: 3rem;
    background: var(--navy);
    color: #fff;
}

.terms-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

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

.terms-content,
.terms-acceptance {
    max-width: 850px;
    padding-block: 2.5rem;
    overflow-wrap: anywhere;
}

.terms-content section {
    margin-block: 2.5rem;
}

.terms-content h2 {
    font-size: 1.35rem;
    line-height: 1.35;
}

.terms-summary {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

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

.terms-content dt {
    font-weight: 700;
    margin-top: 1rem;
}

.terms-content dd {
    margin: .25rem 0 0;
}

.terms-content a,
.terms-acceptance a {
    color: #245c9e;
    text-decoration: underline;
}

.terms-acceptance h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-block: 1.5rem;
    cursor: pointer;
}

.terms-check input {
    margin-top: .4rem;
    flex-shrink: 0;
}

.terms-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.terms-error {
    padding: 1rem;
    border: 1px solid #a82828;
    border-radius: 8px;
    color: #8b1818;
    background: #fff1f1;
}

@media print {
    .site-header,
    footer,
    .floating-back-button,
    .terms-acceptance {
        display: none;
    }

    .terms-hero {
        background: #fff;
        color: #000;
    }
}
