/* =========================================================================
   LEGAL — personvernside + selvdempende cookie-banner (butikk-tema).
   Mobil-først. Bruker temaets token-variabler, så det følger valgt tema.
   ========================================================================= */

/* ---------- Personvernside ---------- */
.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
    color: var(--text);
    line-height: 1.65;
}
.legal h1 { font-family: var(--font-head); font-size: 1.9rem; margin: 0 0 .3rem; }
.legal h2 { font-family: var(--font-head); font-size: 1.3rem; margin: 2rem 0 .6rem; }
.legal h3 { font-size: 1.05rem; margin: 1.3rem 0 .4rem; }
.legal p { margin: .6rem 0; }
.legal a { color: var(--accent); }
.legal-updated { color: var(--muted); font-size: .92rem; margin-top: 0; }
.legal-facts { margin: .5rem 0; padding-left: 1.2rem; }
.legal-facts li { margin: .2rem 0; }
.legal code {
    background: color-mix(in srgb, var(--line) 60%, transparent);
    padding: .1em .4em; border-radius: 6px; font-size: .92em;
}

.legal-table-wrap { overflow-x: auto; margin: .6rem 0 1rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.legal-table th, .legal-table td {
    text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.legal-table th { font-weight: 600; color: var(--muted); }

/* ---------- Cookie-banner (fast nederst) ---------- */
.cookie-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: flex; flex-direction: column; gap: .7rem;
    padding: 1rem 1.1rem;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 30px -14px rgb(20 40 25 / .22);
    color: var(--text);
}
.cookie-bar-text { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.cookie-bar-text a { color: var(--accent); }
.cookie-bar-ok {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 1.4rem; align-self: flex-start;
    background: var(--primary); color: var(--primary-ink);
    border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.cookie-bar-ok:hover { filter: brightness(1.05); }

@media (min-width: 640px) {
    .cookie-bar {
        flex-direction: row; align-items: center; justify-content: space-between;
        gap: 1.2rem; padding: .9rem 1.4rem;
    }
    .cookie-bar-ok { align-self: auto; flex: none; }
}
