/* Legal pages and the legal footer block (also used on the landing page). Fonts and brand variables come from styles.css. */
.legal-page { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: hsl(var(--brand-espresso)); background: hsl(var(--brand-cream)); font: 16px/1.7 Raleway, sans-serif; }
.legal-header { border-bottom: 1px solid hsl(var(--brand-parchment)); background: hsl(var(--brand-mist)); }
.legal-header a { display: flex; align-items: center; gap: .6rem; max-width: 46rem; margin: 0 auto; padding: 18px 20px; color: inherit; text-decoration: none; font: italic 22px/1.2 'Cormorant Garamond', serif; }
.legal-main { flex: 1; width: 100%; max-width: 46rem; margin: 0 auto; padding: 40px 20px 64px; box-sizing: border-box; }
.legal-main h1 { margin: 0 0 6px; font: 500 40px/1.15 'Cormorant Garamond', serif; }
.legal-main h2 { margin: 44px 0 10px; font: 600 26px/1.25 'Cormorant Garamond', serif; scroll-margin-top: 16px; }
.legal-main h3 { margin: 24px 0 6px; font-size: 16px; font-weight: 600; }
.legal-main p, .legal-main li { margin: 0 0 12px; }
.legal-main ul, .legal-main ol { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.legal-main ol { list-style: decimal; }
.legal-main a { color: hsl(var(--brand-bark)); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal-main strong { font-weight: 600; }
.legal-version { margin-bottom: 28px; color: hsl(var(--brand-clay)); font-size: 14px; }
.legal-toc { margin: 0 0 8px; padding: 16px 20px; border: 1px solid hsl(var(--brand-parchment)); border-radius: 12px; background: hsl(var(--brand-mist)); }
.legal-toc ol { margin: 0; }
.legal-toc li { margin: 0 0 4px; }
.legal-note { padding: 14px 18px; border-left: 3px solid hsl(var(--brand-sand)); background: hsl(var(--brand-linen)); }
.legal-table { width: 100%; margin: 0 0 18px; overflow-x: auto; }
.legal-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal-table th, .legal-table td { padding: 9px 10px; border-bottom: 1px solid hsl(var(--brand-parchment)); text-align: left; vertical-align: top; }
.legal-table th { font-weight: 600; background: hsl(var(--brand-mist)); }
.legal-table code, .legal-main code { font-size: 13px; overflow-wrap: anywhere; }
.legal-form { display: grid; gap: 16px; margin: 20px 0; padding: 22px; border: 1px solid hsl(var(--brand-parchment)); border-radius: 14px; background: #fff; }
.legal-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.legal-form label span { font-weight: 400; font-size: 13px; color: hsl(var(--brand-clay)); }
.legal-form input, .legal-form textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid hsl(var(--brand-taupe)); border-radius: 8px; background: #fff; color: inherit; font: 16px Raleway, sans-serif; }
.legal-form textarea { min-height: 90px; resize: vertical; }
.legal-form input:focus-visible, .legal-form textarea:focus-visible, .legal-form button:focus-visible, .legal-button:focus-visible { outline: 2px solid hsl(var(--brand-bark)); outline-offset: 2px; }
.legal-form .legal-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.legal-form button, .legal-main .legal-button { justify-self: start; padding: 12px 22px; border: 0; border-radius: 999px; background: hsl(var(--brand-espresso)); color: hsl(var(--brand-cream)); font: 600 15px Raleway, sans-serif; cursor: pointer; text-decoration: none; display: inline-block; }
.legal-form button[disabled] { opacity: .6; cursor: wait; }
.legal-result { padding: 16px 18px; border-radius: 12px; background: hsl(var(--brand-linen)); }
.legal-result[hidden] { display: none; }
.legal-result.is-error { background: #f6e3dc; }

/* Shared legal footer block. */
.site-legal { margin-top: 28px; color: hsl(var(--brand-parchment) / .75); font: 12px/1.7 Raleway, sans-serif; letter-spacing: .02em; }
.site-legal nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-bottom: 10px; }
.site-legal a { color: hsl(var(--brand-parchment)); text-decoration: underline; text-underline-offset: 2px; }
.site-legal p { margin: 0 auto 14px; max-width: 40rem; }
/* The official ANPC file (anpc.ro/download/sal/SAL-PICTOGRAMA.png) is 201×50 and shown as is, without an extra frame. */
.site-legal .anpc-sal { display: inline-block; line-height: 0; }
.site-legal .anpc-sal img { display: block; width: 201px; height: 50px; }
.legal-footer { padding: 32px 20px 40px; text-align: center; background: hsl(var(--brand-espresso)); }
.legal-footer .site-legal { margin-top: 0; }
.legal-footer .legal-copyright { color: hsl(var(--brand-parchment) / .5); margin: 14px 0 0; }
@media (max-width: 480px) { .legal-main h1 { font-size: 32px; } .legal-main h2 { font-size: 23px; } .legal-form { padding: 16px; } }
