/* "Legal Page" template only. Self-contained: relies only on the design
   tokens, .container, and .btn defined in custom.css (always loaded).
   The prose rules below mirror single.css's .single-content typography,
   scoped as .legal-content since each template's stylesheet stays
   self-contained (no cross-loading between templates). */

/* Title header */
.legal-hero {
    padding: 64px 24px 40px;
}
.legal-hero__title {
    margin: 0;
    color: var(--cx-ink);
    font-family: var(--cx-heading-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.2em;
    font-size: clamp(28px, 4vw, 44px);
}

/* Prose: typography for the page's own content */
.legal-content {
    max-width: 760px;
    padding-bottom: 100px;
    color: var(--cx-body);
    font-size: 16px;
    line-height: 1.8;
}
.legal-content > * + * {
    margin-top: 20px;
}
.legal-content h2,
.legal-content h3,
.legal-content h4 {
    color: var(--cx-ink);
    font-family: var(--cx-heading-font);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.legal-content h2 {
    margin-top: 48px;
    font-size: clamp(22px, 2.6vw, 28px);
}
.legal-content h3 {
    margin-top: 36px;
    font-size: clamp(19px, 2.2vw, 22px);
}
.legal-content h4 {
    margin-top: 28px;
    font-size: 17px;
}
.legal-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-content ul,
.legal-content ol {
    padding-left: 1.4em;
}
.legal-content li + li {
    margin-top: 8px;
}
.legal-content blockquote {
    margin: 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--cx-accent);
    color: var(--cx-ink);
    font-style: italic;
}
.legal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}
.legal-content figcaption {
    margin-top: 8px;
    color: var(--cx-muted-text);
    font-size: 13px;
    text-align: center;
}
.legal-content pre {
    background: var(--cx-ink);
    color: var(--cx-white);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}
.legal-content code {
    background: var(--cx-muted-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.legal-content pre code {
    background: transparent;
    padding: 0;
}
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.legal-content th,
.legal-content td {
    border: 1px solid var(--cx-border);
    padding: 10px 14px;
    text-align: left;
}
.legal-content hr {
    border: 0;
    border-top: 1px solid var(--cx-border);
}

@media (max-width: 900px) {
    .legal-hero {
        padding-inline: 24px;
    }
}
