/* Legal pages, contact page, and the shared site footer. */

/* --- shared page frame ------------------------------------------------ */
.legal-page,
.contact-page {
    width: 100%;
    max-width: 58rem;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) 1.25rem 5rem;
}

.legal-header,
.contact-header {
    display: grid;
    gap: 0.65rem;
    padding-bottom: 1.75rem;
    margin-bottom: 2.25rem;
    border-bottom: 1px solid var(--lp-border);
}

.legal-eyebrow,
.contact-eyebrow {
    margin: 0;
    color: var(--lp-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.legal-title,
.contact-title {
    margin: 0;
    max-width: 20ch;
    color: var(--lp-primary);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 750;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.legal-meta {
    margin: 0;
    color: var(--lp-text-muted);
    font-size: 0.78rem;
}

.legal-intro,
.contact-intro {
    margin: 0.25rem 0 0;
    max-width: 46rem;
    color: #3f4a5a;
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.7;
}

/* --- legal article ---------------------------------------------------- */
.legal-section {
    max-width: 46rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--lp-border) 70%, transparent);
}

.legal-section:last-child {
    border-bottom: 0;
}

.legal-heading {
    margin: 0 0 0.75rem;
    color: var(--lp-primary);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.legal-text {
    margin: 0 0 0.85rem;
    color: #3b4453;
    font-size: 0.975rem;
    line-height: 1.75;
}

.legal-text:last-child {
    margin-bottom: 0;
}

.legal-list {
    display: grid;
    gap: 0.55rem;
    margin: 0.35rem 0 1rem;
    padding-left: 1.15rem;
    list-style: disc;
}

.legal-list li {
    color: #3b4453;
    font-size: 0.95rem;
    line-height: 1.65;
}

.legal-contact-card {
    display: grid;
    gap: 0.35rem;
    margin: 1rem 0;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--lp-border);
    border-left: 3px solid var(--lp-accent);
    border-radius: var(--lp-rounded-md, 8px);
    background: var(--lp-surface);
}

.legal-contact-name {
    margin: 0 0 0.25rem;
    color: var(--lp-primary);
    font-weight: 700;
}

.legal-inline-link {
    color: var(--lp-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.legal-cookie-button {
    width: auto;
}

/* --- contact ---------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
}

.contact-card {
    display: grid;
    align-content: start;
    gap: 0.6rem;
    padding: 1.5rem;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-rounded-lg, 12px);
    background: var(--lp-surface);
    box-shadow: 0 1px 2px rgba(27, 54, 93, 0.04);
}

.contact-card-title {
    margin: 0 0 0.35rem;
    color: var(--lp-primary);
    font-size: 1.05rem;
    font-weight: 700;
}

.contact-text {
    margin: 0;
    color: #3b4453;
    font-size: 0.95rem;
    line-height: 1.65;
}

.contact-muted {
    margin: 0;
    color: var(--lp-text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.contact-link {
    color: var(--lp-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-link-strong {
    font-weight: 700;
}

.contact-address {
    display: grid;
    gap: 0.15rem;
    font-style: normal;
}

.contact-shortcuts {
    display: grid;
    gap: 0.45rem;
    padding: 0;
    list-style: none;
}

.contact-shortcuts .contact-link::before {
    content: '→';
    margin-right: 0.45rem;
    color: var(--lp-accent);
}

.contact-footer-note {
    margin-top: 1.25rem;
    padding: 1.5rem;
    border: 1px dashed var(--lp-border);
    border-radius: var(--lp-rounded-lg, 12px);
    background: color-mix(in srgb, var(--lp-surface-muted) 45%, transparent);
}

.contact-note-title {
    margin: 0 0 0.35rem;
    color: var(--lp-primary);
    font-size: 1rem;
    font-weight: 700;
}

/* --- site footer ------------------------------------------------------ */
.site-footer {
    margin-top: 5rem;
    background: var(--lp-primary);
    color: rgba(255, 255, 255, 0.78);
}

.site-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
    gap: 2.5rem;
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    padding: 3rem 1.25rem 2.25rem;
}

.site-footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.site-footer-logo {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    flex-shrink: 0;
}

.site-footer-name {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.site-footer-tagline {
    margin: 0;
    max-width: 20rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    line-height: 1.55;
}

.site-footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.site-footer-title {
    margin: 0 0 0.85rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-footer-links {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-link {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.875rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-footer-link:hover {
    color: #fff;
}

.site-footer-button {
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer-meta {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
}

.site-footer-mail {
    text-decoration: none;
}

.site-footer-mail:hover {
    color: #fff;
}

@media (max-width: 760px) {
    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 1.75rem;
    }

    .site-footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem 1.25rem;
    }
}

@media (max-width: 420px) {
    .site-footer-columns {
        grid-template-columns: 1fr;
    }
}

/* --- minimal footer ---------------------------------------------------- */
.footer-min {
    margin-top: 3rem;
    border-top: 1px solid var(--lp-border);
    background: var(--lp-surface);
}
.footer-min-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem 1.25rem;
}
.footer-min-legal,
.footer-min-link {
    margin: 0;
    color: var(--lp-text-muted);
    font-size: 0.72rem;
    line-height: 1.45;
}
.footer-min-links {
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
}
.footer-min-link {
    text-decoration: none;
}
.footer-min-link:hover { color: var(--lp-primary); }
.footer-min-sep { margin-inline: 0.35rem; opacity: 0.6; }
.footer-min-button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}
@media (max-width: 640px) {
    .footer-min-inner { justify-content: flex-start; padding-block: 0.9rem; }
}
