/* =============================================================================
 * Legal pages — shared layout (agb, widerruf, shipping)
 * -----------------------------------------------------------------------------
 * impressum.html and privacy.html predate this file and carry their own inline
 * <style> block with equivalent rules. They were left alone deliberately; new
 * legal pages use this stylesheet instead of growing a fourth copy.
 * ============================================================================= */

.legal-page {
    max-width: 680px;
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 7rem) 5%;
}

.legal-page h1 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.legal-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.legal-page h2 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.legal-page h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.legal-page p,
.legal-page li {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.75;
}

.legal-page p {
    margin-bottom: 1rem;
}

.legal-page ul,
.legal-page ol {
    margin: 0 0 1rem 1.25rem;
    padding-left: 0.75rem;
    list-style: disc outside;
}

.legal-page ol {
    list-style: decimal outside;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

.legal-page a {
    color: var(--color-text);
    text-decoration: underline;
}

.legal-page strong {
    color: var(--color-text);
    font-weight: 600;
}

/* The statutory model withdrawal form, set apart as a quotable block. */
.legal-form-box {
    border: 1px solid var(--color-border, #e0e0e0);
    padding: clamp(1.25rem, 3vw, 2rem);
    margin: 1.5rem 0 2rem;
    background: #fafafa;
}

.legal-form-box p:last-child {
    margin-bottom: 0;
}

/* Unresolved item that must not reach production. Loud on purpose — see
 * LAUNCH.md, which lists every one of these. */
.todo {
    background: #ffe9ec;
    border-left: 3px solid #9D051C;
    padding: 0.75rem 1rem;
    display: block;
    margin: 1rem 0;
    color: #6b0413;
    font-size: 0.9rem;
    line-height: 1.6;
}

.legal-nav {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border, #e0e0e0);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.legal-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    margin-right: 1.25rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.legal-nav a:hover {
    color: var(--color-text);
}

.back-link {
    display: inline-block;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.back-link:hover {
    color: var(--color-text);
}
