/* ============================================================
   Legal pages (/impressum/, /privacy/, /datenschutz/)
   Loads after /css/site.css and /css/pages/article.css and only adds
   what the legal text needs on top of the article template.

   Classes
     .legal-meta     small grey line under the h1 ("Last updated", "Stand")
     .prose address  postal and contact blocks, set like a paragraph
     .prose code     cookie names
     .todo           text not written yet ([[...]] in scripts/legal/), only while a placeholder is open
============================================================ */

/* ---- Hover easing for this file's triggers (same pattern as site.css) ---- */
.prose address a { --e: var(--ease-in-out); }
.prose address a:hover, .prose address a:focus-visible { --e: var(--ease-out); }

/* ---- Hero ---- */
.legal-meta { font-size: 15px; color: var(--ink-3); margin: -8px 0 12px; }
.art-hero-text .art-lang-note { margin: 0 0 32px; }
.art-hero-text > .art-lang-note:last-child { margin-bottom: 0; }

/* Legal sections are short: slightly smaller headings and less air than a guide */
.prose h2 { font-size: clamp(26px, 2.3vw, 32px); margin-top: 56px; }
.prose > h2:first-child { margin-top: 0; }
/* Long German compounds ("Datenschutzerklärung") must not push past a phone screen */
.art-hero-text h1 { overflow-wrap: break-word; hyphens: auto; }

/* ---- Contact blocks ---- */
.prose address { font-style: normal; margin: 0 0 1.15em; }
.prose address a {
    position: relative;
    background-image: linear-gradient(var(--line-2), var(--line-2));
    background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
    padding-bottom: 1px;
}
.prose address a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: currentColor; pointer-events: none;
    transform: scaleX(0); transform-origin: left center;
    transition: transform var(--dur-2) var(--e);
}
.prose address a:hover::after, .prose address a:focus-visible::after { transform: scaleX(1); }

/* ---- Inline code (cookie names) ---- */
.prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .86em; color: var(--ink);
    padding: 1px 6px; border-radius: 6px; background: var(--bg-2);
}

/* ---- Placeholders still to fill in (scripts/legal/build-legal-pages.js) ---- */
.todo {
    font-size: .86em; font-weight: 600; color: var(--honey-ink);
    padding: 1px 6px; border-radius: 6px; background: var(--honey-soft);
}

@media (prefers-reduced-motion: reduce) {
    .prose address a::after { transition-duration: .01ms !important; }
}
