/* The Privacy Policy and the Terms (templates/privacy.html,
   templates/terms.html) and the agree screen (templates/agree.html).
   The pages have no header above them, so they keep clear of the status
   bar themselves. */

/* The legal pages: one readable column of headings, paragraphs and
   lists, below the way back. */
.legal-page {
    max-width: 720px;
    padding-top: calc(24px + env(safe-area-inset-top, 0px));
    padding-bottom: 24px;
}
.legal-page:focus {
    outline: none;
}
.legal-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text);
    overflow-wrap: anywhere;
}
.legal-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 8px;
}
.legal-text h2 {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 28px 0 8px;
}
.legal-text p {
    margin-bottom: 12px;
}
.legal-text ul {
    margin: 0 0 12px;
    padding-left: 20px;
}
.legal-text li {
    margin-bottom: 8px;
}
.legal-text a {
    color: var(--primary);
    text-underline-offset: 2px;
}
.legal-text .legal-updated {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 4px 0 20px;
}

/* The agree screen: the auth card holding the summary, the Terms' date,
   the links to both pages, I agree and Sign out. */
.agree-card {
    max-width: 480px;
    font-size: 0.9375rem;
    line-height: 1.55;
}
.auth-wrapper:focus {
    outline: none;
}
.agree-intro {
    margin-bottom: 12px;
}
.agree-summary {
    margin: 0 0 16px;
    padding-left: 20px;
}
.agree-summary li {
    margin-bottom: 8px;
}
.agree-updated {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.agree-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 8px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}
.agree-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--primary);
    text-underline-offset: 2px;
}
/* A phone has no room for both on one line: one under the other, with
   no separator left hanging. */
@media (max-width: 420px) {
    .agree-links {
        flex-direction: column;
        align-items: flex-start;
    }
    .agree-links-sep {
        display: none;
    }
}
.agree-sign-out {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}
