/* ===========================
   LEGAL / INFORMATIONAL PAGES
   Uses CSS vars from style.css
   =========================== */

.page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
}

/* --- Page Header --- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.page-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.page-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.page-nav-link {
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 150ms ease;
}

.page-nav-link:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.page-nav-link.is-active {
    background: var(--accent);
    color: #fff;
}

/* --- Page Content --- */
.page-content {
    flex: 1;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 32px;
}

.page-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.page-updated {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.page-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.page-content h3 {
    font-size: 17px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
}

.page-content p {
    line-height: 1.7;
    margin-bottom: 12px;
    color: var(--text);
}

.page-content ul,
.page-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.page-content li {
    line-height: 1.7;
    margin-bottom: 6px;
}

.page-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-content a:hover {
    opacity: 0.85;
}

/* --- Legal Content --- */
.legal-content section {
    margin-bottom: 8px;
}

/* --- Contact Page --- */
.contact-email {
    font-size: 20px;
    font-weight: 600;
}

/* --- Page Footer --- */
.page-footer {
    padding: 24px 32px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
}

.page-footer-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.page-footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 150ms ease;
}

.page-footer-nav a:hover {
    color: var(--text);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 760px) {
    .page-header {
        padding: 12px 16px;
        flex-direction: column;
        gap: 10px;
    }

    .page-content {
        padding: 24px 16px;
    }

    .page-content h1 {
        font-size: 24px;
    }

    .page-content h2 {
        font-size: 18px;
    }

    .page-footer {
        padding: 20px 16px;
    }
}
