/* ==========================================================================
   page.css — prose pages: legal, contact, offline and the error views.
   ========================================================================== */

.page-wrap {
    flex: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}

.page-head {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--divider-color);
    margin-bottom: 28px;
}

.eyebrow {
    display: inline-block;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-head h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    font-weight: 500;
    letter-spacing: -.02em;
    margin-bottom: 12px;
}

.lede {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color-secondary);
    margin-bottom: 14px;
}

.updated {
    font-size: .8rem;
    color: var(--text-color-secondary);
    margin-bottom: 18px;
}

.toc {
    padding: 16px 20px;
    border-radius: 12px;
    background: var(--surface-raised);
    margin-bottom: 32px;
}

.toc h2 {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-color-secondary);
    margin-bottom: 10px;
}

.toc ol {
    margin-left: 18px;
}

.toc li {
    margin-bottom: 6px;
}

.toc a {
    color: var(--primary-color);
    font-size: .9rem;
}

.prose {
    color: var(--text-color-secondary);
    font-size: 1rem;
    line-height: 1.75;
}

.prose section {
    margin-bottom: 34px;
    scroll-margin-top: 20px;
}

.prose h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 10px;
}

.prose h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin: 20px 0 6px;
}

.prose p {
    margin-bottom: 12px;
}

.prose ul {
    margin: 0 0 14px 20px;
}

.prose li {
    margin-bottom: 7px;
}

.prose a {
    color: var(--primary-color);
    word-break: break-word;
}

.prose strong {
    color: var(--text-color);
    font-weight: 500;
}

/* ---------------- contact ---------------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin-bottom: 34px;
}

.contact-card {
    padding: 18px;
    border-radius: 12px;
    background: var(--surface-raised);
    box-shadow: var(--shadow-1);
}

.contact-card .ic {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-card h2 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 6px;
}

.contact-card p {
    font-size: .875rem;
    line-height: 1.6;
    color: var(--text-color-secondary);
    margin-bottom: 10px;
}

.contact-card a {
    color: var(--primary-color);
    font-size: .9375rem;
    font-weight: 500;
    word-break: break-word;
}

/* ---------------- error and offline pages ---------------- */
.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.offline-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.offline-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--surface-raised);
    color: var(--text-color);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
}

.offline-list a:hover {
    box-shadow: var(--shadow-1);
}

.offline-list .ic {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

@media (max-width:600px) {
    .page-wrap {
        padding: 22px 16px 40px;
    }
}
