/**
 * LONGBONDOOR shared interface foundations.
 *
 * Deliberately limited to low-conflict primitives. Existing templates retain
 * responsibility for component layouts until they are migrated individually.
 */

:root {
    --lbd-color-ink: #171714;
    --lbd-color-muted: #68645d;
    --lbd-color-paper: #f5f2ec;
    --lbd-color-paper-deep: #e9e4da;
    --lbd-color-line: #d8d2c7;
    --lbd-color-gold: #b78f43;
    --lbd-color-gold-dark: #765824;
    --lbd-color-focus: #0a5ea8;
    --lbd-font-display: 'Playfair Display', Georgia, serif;
    --lbd-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --lbd-content-max: 90rem;
    --lbd-space-1: 0.5rem;
    --lbd-space-2: 1rem;
    --lbd-space-3: 1.5rem;
    --lbd-space-4: 2rem;
    --lbd-space-5: 3rem;
    --lbd-space-6: 5rem;
    --lbd-radius-control: 0.125rem;
}

:where(a, button, input, select, textarea, summary, [role='button'], [tabindex]):focus {
    outline: 3px solid var(--lbd-color-focus);
    outline-offset: 3px;
}

:where(a, button, input, select, textarea, summary, [role='button'], [tabindex]):focus:not(:focus-visible) {
    outline: none;
}

:where(button, input, select, textarea) {
    font: inherit;
}

:where(button, [role='button'], input[type='submit'], input[type='button']) {
    touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.lbd-legal-page {
    width: min(100% - 2rem, 52rem);
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 6rem) 0;
    color: var(--lbd-color-ink);
    font-family: var(--lbd-font-body);
    font-size: 1rem;
    line-height: 1.75;
}

.lbd-legal-page h2 {
    margin: 2.5rem 0 0.75rem;
    font-family: var(--lbd-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.25;
}

.lbd-legal-page h3 {
    margin: 1.75rem 0 0.5rem;
    font-size: 1.1rem;
}

.lbd-legal-page p,
.lbd-legal-page ul {
    margin: 0 0 1rem;
}

.lbd-legal-page a {
    color: var(--lbd-color-gold-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.lbd-legal-updated {
    color: var(--lbd-color-muted);
    font-size: 0.9rem;
}
