/*
 * /impressum/ and /privacy/ — the legal pages on ivsanz.com.
 * Same paper, navy and Hanken Grotesk as /contact/, set for reading.
 *
 * All selectors are .lg-* prefixed so this file does not collide with
 * the site-global styles.css.
 */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --lg-paper:       #f4f3f1;
    --lg-navy:        #0e0d2a;
    --lg-purple:      #8b5cf6;
    --lg-text-muted:  #57534e;
    --lg-text-faint:  #6f6963;
    --lg-border:      #e6e5e1;

    --lg-font: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --lg-transition: 0.18s ease;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.lg-page {
    background: var(--lg-paper);
    color: var(--lg-navy);
    font-family: var(--lg-font);
    line-height: 1.6;
    min-height: 100vh;
}

.lg-container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1.25rem 1.5rem;
}

.lg-heading {
    font-size: clamp(2rem, 7vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.lg-lede {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--lg-text-muted);
    max-width: 52ch;
    margin-bottom: 1.5rem;
}

.lg-body h2 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 2.25rem 0 0.5rem;
}

.lg-body p,
.lg-body address,
.lg-body li {
    font-size: 1rem;
    color: var(--lg-text-muted);
}

.lg-body address {
    font-style: normal;
}

.lg-body p + p,
.lg-body address + p,
.lg-body ul + p,
.lg-body p + ul {
    margin-top: 0.75rem;
}

.lg-body ul {
    padding-left: 1.25rem;
}

.lg-body li + li {
    margin-top: 0.35rem;
}

.lg-body strong {
    color: var(--lg-navy);
    font-weight: 600;
}

.lg-body a {
    color: var(--lg-navy);
    text-decoration: underline;
    text-decoration-color: var(--lg-border);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--lg-transition);
}

.lg-body a:hover {
    text-decoration-color: var(--lg-purple);
}

.lg-note {
    margin-top: 2.25rem;
}

.lg-updated {
    margin-top: 2.25rem;
    font-size: 0.875rem;
    color: var(--lg-text-faint);
}

.lg-footer {
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--lg-border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.lg-footer a {
    color: var(--lg-text-faint);
    text-decoration: none;
    transition: color var(--lg-transition);
}

.lg-footer a:hover {
    color: var(--lg-text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lg-footer a[aria-current="page"] {
    color: var(--lg-navy);
}

a:focus-visible {
    outline: 2px solid var(--lg-purple);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (min-width: 640px) {
    .lg-container {
        padding: 3rem 2rem 2rem;
    }

    .lg-lede {
        font-size: 1.2rem;
    }
}

@media (min-width: 960px) {
    .lg-container {
        padding-top: 4rem;
    }
}
