/* The terms of use (Pages/Terms).
 *
 * Long-form prose, which nothing else in this app is, so it gets a measure and
 * a rhythm rather than the app's usual dense layout. Someone is being asked to
 * accept obligations about other people's children; the least it can do is be
 * comfortable to actually read. */

.terms-page {
    /* Around 70 characters at this size, which is where running text stops
       being tiring. */
    max-width: 40rem;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.terms-header h1 {
    margin: 0 0 0.25rem;
}

.terms-version {
    margin: 0 0 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

.terms-body section {
    margin-bottom: 2rem;
}

.terms-body h2 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}

.terms-body p {
    margin: 0 0 0.75rem;
    line-height: 1.65;
}

.terms-body ul {
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
}

.terms-body li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

/* The disclaimer is the one part a school's counsel most needs to notice, so
   it does not read as another numbered clause. */
.terms-notice {
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--color-warning-border);
    background: var(--color-warning-bg);
    border-radius: var(--radius-sm);
}

.terms-notice h2 {
    margin-bottom: 0.4rem;
}

.terms-notice p {
    margin: 0;
}

/* ---- Accepting ---- */

.terms-accept {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 2rem;
    padding: 1.25rem;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

/* The whole row is the hit target, and the checkbox is deliberately not
   pre-ticked: an acceptance nobody actively made is not worth recording. */
.terms-accept-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0;
    line-height: 1.55;
    cursor: pointer;
}

.terms-accept-check input {
    margin-top: 0.25rem;
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
}

.terms-accept .btn {
    align-self: flex-start;
}

.terms-accepted-note {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
