/*
 * Page-specific styles for the default Page template (page.php).
 * Used automatically for Terms of Service, Privacy Policy, Cookie Policy,
 * Accessibility Statement, and any other standalone text page without its
 * own dedicated template.
 *
 * .page-hero / .page-hero-inner / .page-hero-sub already live in
 * global.css (shared hero pattern). .wave-divider, .back-to-top, and
 * comment styles also already live in global.css.
 *
 * .post-body below intentionally mirrors the blog article typography in
 * blog.css so long-form content (headings, lists, tables, links) looks
 * consistent site-wide, without this template depending on blog.css.
 */

/* ── Body ── */
.page-body { background-color: var(--white); padding: 90px 0 140px; }
.page-body-container { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.page-updated { font-family: var(--font-body); font-size: 13px; color: var(--text-primary); opacity: 0.55; margin-bottom: var(--spacing-xl); }

@media (max-width: 899px) {
    .page-body { padding: 70px 0 110px; }
}
@media (max-width: 550px) {
    .page-body { padding: 56px 0 80px; }
    .page-body-container { padding: 0 20px; }
}

/* ── Long-form content typography (matches blog .post-body) ── */
.post-body { font-family: var(--font-body); font-size: 16px; line-height: 1.75; color: var(--text-primary); }
.post-body h2 { font-size: 20px; font-weight: 600; color: var(--text-primary); margin: 48px 0 16px; }
.post-body h2:first-child { margin-top: 0; }
.post-body h3 { font-size: 20px; font-weight: 600; color: var(--text-primary); margin: 32px 0 12px; }
.post-body p { margin-bottom: 14px; }
.post-body ul, .post-body ol { margin: 0 0 var(--spacing-lg) var(--spacing-xl); }
.post-body li { margin-bottom: var(--spacing-sm); }
.post-body strong { font-weight: 600; color: var(--text-primary); }
.post-body em { font-style: italic; }
.post-body a { color: var(--primary-green); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { opacity: 0.8; }
.post-body img { max-width: 100%; border-radius: 10px; display: block; margin: 32px 0; background-color: var(--light-green-bg); }
.post-body figure { margin: 32px 0; }
.post-body figcaption { font-family: var(--font-body); font-size: 13px; color: var(--text-primary); opacity: 0.5; margin-top: -23px; text-align: left; }
.post-body blockquote { border-left: 3px solid var(--primary-green); padding: 4px 0 4px 24px; margin: 32px 0; }
.post-body blockquote p { font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--text-primary); line-height: 1.75; margin: 0; font-style: italic; }
.post-body table { width: 100%; border-collapse: collapse; margin: 32px 0; font-family: var(--font-body); font-size: 14px; }
.post-body th { background-color: var(--light-green-bg); color: var(--text-primary); font-family: var(--font-heading); font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; text-align: left; padding: 12px 16px; }
.post-body td { padding: 12px 16px; color: var(--text-primary); vertical-align: top; line-height: 1.5; }
.post-body tr { border-bottom: 1px solid rgba(28, 37, 73, 0.07); }
.post-body tr:nth-child(even) td { background-color: rgba(28, 37, 73, 0.02); }

/* Subtle rounded container + horizontal scroll so wide tables (e.g. a
   cookie table with long "purpose" copy) never break mobile layout. */
.post-body .table-scroll {
    margin: 32px 0;
    border: 1px solid rgba(28, 37, 73, 0.08);
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.post-body .table-scroll table {
    margin: 0;
    min-width: 560px;
}
.post-body .table-scroll tr:last-child { border-bottom: none; }

@media (max-width: 550px) {
    .post-body table { font-size: 13px; }
    .post-body th, .post-body td { padding: 10px 14px; }
}
.post-body ol { list-style: none; counter-reset: page-ol-counter; }
.post-body ol > li { counter-increment: page-ol-counter; position: relative; padding-left: 28px; }
.post-body ol > li::before { content: counter(page-ol-counter) "."; position: absolute; left: 0; top: 0; font-family: var(--font-body); font-size: 16px; font-weight: 700; color: var(--text-primary); }
.post-body ol > li > ol,
.post-body ol > li > p:not(:first-child) {
    margin-top: var(--spacing-sm);
}

@media (max-width: 550px) {
    .post-body { font-size: 15px; }
    .post-body h2 { font-size: 18px; }
    .post-body h3 { font-size: 18px; }
}