/* ============================================================
   KN-Office-Visualizer V2 – Editorial Bold
   Handgeschriebenes CSS. Direkt editierbar. Kein Build.
   ============================================================ */

/* Gidole – lokal gehostet, identisch zur K+N-Hauptseite. */
@font-face {
    font-family: 'Gidole';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/Gidole-Regular.woff2') format('woff2'),
         url('fonts/Gidole-Regular.woff') format('woff');
}

/* ---------- Design-Tokens ---------- */
:root {
    /* Brand */
    --ink:        #0A0A0A;
    --ink-soft:   #18181B;
    --paper:      #FAFAF9;
    --paper-pure: #FFFFFF;
    --line:       #E7E5E4;
    --muted:      #57534E;

    --accent:        #E84E03;      /* K+N orange, exact */
    --accent-hover:  #C13E02;
    --accent-soft:   rgba(232,78,3,0.10);

    /* Glass */
    --glass-bg:      rgba(255,255,255,0.7);
    --glass-bg-dark: rgba(10,10,10,0.55);
    --glass-blur:    blur(20px);

    /* Sizing */
    --radius-sm: 6px;
    --radius:    14px;
    --radius-lg: 24px;
    --radius-xl: 36px;

    --shadow-1: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-2: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-3: 0 30px 80px rgba(0,0,0,0.18);
    --shadow-glow: 0 30px 80px rgba(226,88,34,0.25);

    --max:        1200px;
    --max-narrow: 760px;

    --sans:  'Gidole', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Container ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .container { padding: 0 28px; } }
.container--narrow { max-width: var(--max-narrow); }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 999px;
    padding: 8px 8px 8px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-2);
    width: calc(100% - 32px);
    max-width: 720px;
    justify-content: space-between;
}
@media (min-width: 720px) {
    .site-header { top: 20px; padding: 10px 12px 10px 24px; gap: 20px; width: calc(100% - 40px); }
}
.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: var(--ink);
    text-decoration: none;
}
.site-header__brand img { width: 32px; height: 32px; display: block; border-radius: 6px; }
.site-header__cta {
    background: var(--ink);
    color: var(--paper-pure);
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease;
}
.site-header__cta:hover { background: var(--accent); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
    background: var(--ink);
    color: var(--paper);
    position: relative;
    overflow: hidden;
    padding: 80px 0 70px;
    isolation: isolate;
}
@media (min-width: 720px) {
    .hero { padding: 110px 0 90px; }
}
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    aspect-ratio: 1;
    background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
    opacity: 0.45;
    z-index: -1;
    filter: blur(60px);
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 50%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(226,88,34,0.4) 0%, transparent 70%);
    opacity: 0.6;
    z-index: -1;
    filter: blur(80px);
}
.hero__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: left;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 24px;
}
.eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.hero__headline {
    font-family: var(--sans);
    font-weight: 400;
    font-size: clamp(36px, 5.5vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin: 0;
}
.hero__headline em {
    font-style: normal;
    color: var(--accent);
    font-weight: 400;
}
.hero__sub {
    margin: 32px 0 40px;
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.6;
    color: rgba(247,244,236,0.78);
    max-width: 52ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.trust {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    font-size: 13px;
    color: rgba(247,244,236,0.62);
}
.trust__item { display: inline-flex; align-items: center; gap: 8px; }
.trust__check {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ink);
    flex-shrink: 0;
}
.trust__check svg { width: 10px; height: 10px; }

/* Hero teaser visualization */
.hero__visual {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ink-soft);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-3);
    margin-top: 48px;
}
.hero__visual .compare { border-radius: var(--radius-lg); aspect-ratio: auto; height: 100%; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 400;
    font-family: var(--sans);
    letter-spacing: 0.01em;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
    min-height: 52px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn svg { transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.btn:hover:not(:disabled) svg { transform: translateX(3px); }

.btn--accent {
    background: var(--accent);
    color: var(--paper-pure);
    box-shadow: var(--shadow-glow);
}
.btn--accent:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(232,78,3,0.35);
}

.btn--ink { background: var(--ink); color: var(--paper-pure); }
.btn--ink:hover:not(:disabled) { background: var(--accent); transform: translateY(-2px); }

.btn--ghost {
    background: transparent;
    color: var(--paper);
    border-color: rgba(247,244,236,0.25);
}
.btn--ghost:hover:not(:disabled) { background: rgba(247,244,236,0.08); border-color: rgba(247,244,236,0.5); }

.btn--ghost-light {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn--ghost-light:hover:not(:disabled) { background: var(--paper-pure); border-color: var(--ink); }

.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; filter: saturate(0.6); }
.btn:disabled svg { transform: none; }

.btn--lg { padding: 20px 36px; font-size: 16px; min-height: 60px; }
.btn--block { width: 100%; }

/* ---------- Typography Bookends ---------- */
.section-title {
    font-family: var(--sans);
    font-weight: 400;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.025em;
    margin: 0;
}
.section-title em { font-style: normal; color: var(--accent); font-weight: 400; }

/* ---------- Funnel Sections ---------- */
.funnel { padding: 90px 0 120px; }
@media (max-width: 720px) { .funnel { padding: 60px 0 90px; } }

.step { display: none; animation: stepIn 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.step.is-active { display: block; }

@keyframes stepIn {
    from { opacity: 0; transform: translateY(24px); filter: blur(4px); }
    to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

.step__progress-fill { width: 0; transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.step.is-active .step__progress-fill { animation: progressFill 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes progressFill { to { width: var(--progress, 50%); } }

.step__progress {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.04em;
}
.step__progress-bar {
    flex: 1;
    height: 2px;
    background: var(--line);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.step__progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--accent);
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Upload (Step 1) ---------- */
.upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 32px;
    background: var(--paper-pure);
    border: 2px dashed var(--line);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.upload:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 12px 36px rgba(232,78,3,0.10);
}
.upload.is-dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: scale(1.01);
    box-shadow: 0 20px 48px rgba(232,78,3,0.18);
}
.upload__icon {
    width: 56px; height: 56px;
    color: var(--accent);
    margin-bottom: 22px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.upload:hover .upload__icon { transform: translateY(-4px); }
.upload__title {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--ink);
    max-width: 22ch;
    margin: 0;
}
.upload__title em { font-style: normal; color: var(--accent); }
.upload__hint { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.upload__preview { max-height: 360px; width: auto; border-radius: var(--radius); margin: 0 auto; }
.upload__error { color: #B91C1C; font-size: 14px; margin-top: 14px; text-align: center; }

.step__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }

/* ---------- Form Fields (Step 2) ---------- */
.fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 28px;
}
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } }

.field { display: block; position: relative; }
.field__label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 8px;
}
.field__input {
    display: block;
    width: 100%;
    background: var(--paper-pure);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 15px 18px;
    font: inherit;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field__input::placeholder { color: rgba(107,107,104,0.45); font-style: italic; }
.field__input:hover { border-color: rgba(87,83,78,0.4); }
.field__input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
    background: #FFFFFF;
}

/* ---------- Loading (Step 3) ---------- */
.loading {
    background: var(--paper-pure);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 56px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
    transform: translateX(-100%);
    animation: shimmer 2.5s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50%      { transform: translateX(100%); }
}
.loading > * { position: relative; z-index: 1; }
.loading__pulse {
    margin: 0 auto 28px;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--accent);
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}
.loading__pulse::before,
.loading__pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: ripple 2s ease-in-out infinite;
}
.loading__pulse::after { animation-delay: 1s; }
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(0.88); opacity: 0.85; }
}
@keyframes ripple {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.2); opacity: 0; }
}
.loading__title {
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.015em;
    margin: 0 0 8px;
}
.loading__step { color: var(--muted); font-size: 15px; margin: 0; min-height: 1.6em; }
.loading__hint { color: var(--muted); font-size: 12px; margin-top: 24px; opacity: 0.8; }

/* ---------- Vorher/Nachher-Slider ---------- */
.compare {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
    background: var(--ink-soft);
    aspect-ratio: 16 / 10;
    user-select: none;
    -webkit-user-select: none;
    cursor: ew-resize;
    touch-action: none;
    box-shadow: var(--shadow-2);
}
.compare > * { pointer-events: none; }
.compare__layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    user-drag: none;
}
.compare__top { position: absolute; inset: 0; overflow: hidden; }
.compare__label {
    position: absolute;
    top: 16px;
    padding: 8px 16px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.compare__label--before { left: 16px; background: rgba(10,10,10,0.7); color: var(--paper); }
.compare__label--after  { right: 16px; background: rgba(226,88,34,0.92); color: var(--paper-pure); }
.compare__divider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--paper-pure);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.compare__handle {
    position: absolute;
    top: 50%;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%);
    background: var(--paper-pure);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 0 4px rgba(255,255,255,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.compare:hover .compare__handle { box-shadow: 0 10px 32px rgba(0,0,0,0.35), 0 0 0 6px rgba(232,78,3,0.18); }
.compare:active .compare__handle { transform: translate(-50%, -50%) scale(0.95); }
.compare__handle svg { width: 22px; height: 22px; color: var(--ink); }

/* ---------- Result View (Step 4) ---------- */
.result { display: flex; flex-direction: column; gap: 64px; }
.result__header { text-align: left; display: flex; flex-direction: column; gap: 28px; }
.result__header > .section-title { margin: 0; }
.result__header > p { margin: 0; }
.result__count {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}
.result__hi-res {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--paper-pure);
    box-shadow: var(--shadow-2);
    cursor: zoom-in;
    transition: box-shadow 0.2s;
    display: block;
}
.result__hi-res img { width: 100%; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.result__hi-res:hover { box-shadow: var(--shadow-3); }
.result__hi-res:hover img { transform: scale(1.015); }
.result__fullscreen-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--paper-pure);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-1);
}
.result__fullscreen-badge svg { width: 14px; height: 14px; }

.result__disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--paper-pure);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 26px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--muted);
}
.result__disclaimer::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 3px;
    align-self: stretch;
    background: var(--accent);
    border-radius: 4px;
}

.result__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Inner-Block für „Vollauflösung"-Bild + Eyebrow */
.result__hi-res-block { display: flex; flex-direction: column; gap: 18px; }

/* ---------- CTA-Karte ---------- */
.cta {
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    display: grid;
    isolation: isolate;
}
.cta::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50%;
    aspect-ratio: 1;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.35;
    z-index: -1;
    filter: blur(50px);
}
@media (min-width: 720px) { .cta { grid-template-columns: 1.3fr 1fr; } }
.cta__body { padding: 44px; }
.cta__eyebrow { color: var(--accent); margin: 0 0 16px; }
.cta__title { font-family: var(--sans); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.02em; }
.cta__title em { font-style: normal; color: var(--accent); font-weight: 400; }
.cta__text { font-size: 15px; line-height: 1.7; color: rgba(247,244,236,0.85); }
.cta__text strong { color: var(--paper-pure); font-weight: 500; }
.cta__small { font-size: 13px; color: rgba(247,244,236,0.6); margin-top: 18px; }

.cta__actions {
    background: rgba(255,255,255,0.04);
    padding: 44px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    border-left: 1px solid rgba(255,255,255,0.06);
}
.cta__leadid { text-align: center; margin: 8px 0 0; font-size: 11px; color: rgba(247,244,236,0.4); letter-spacing: 0.06em; }

/* ---------- Error-Box ---------- */
.error-box {
    background: rgba(185,28,28,0.06);
    border: 1px solid rgba(185,28,28,0.2);
    color: #7F1D1D;
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 20px;
}
.error-box__title { font-weight: 500; margin: 0; }
.error-box__hint { margin: 4px 0 12px; color: #991B1B; font-size: 14px; }
.error-box__btn {
    background: #7F1D1D;
    color: var(--paper-pure);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.error-box__btn:hover { background: #991B1B; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(10,10,10,0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.25s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius);
    box-shadow: 0 30px 100px rgba(0,0,0,0.6);
    cursor: default;
}
.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--paper-pure);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--shadow-2);
}
.lightbox__close:hover { background: var(--accent); color: var(--paper-pure); }
.lightbox__hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(247,244,236,0.6);
    letter-spacing: 0.04em;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); }
.site-footer__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.04em;
}
@media (min-width: 720px) {
    .site-footer__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.site-footer__nav { display: flex; gap: 24px; }
.site-footer__nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.site-footer__nav a:hover { color: var(--ink); }

/* ---------- Legal Pages (Impressum / Datenschutz) ---------- */
.legal-page { padding: 140px 0 100px; max-width: var(--max-narrow); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.legal-page h1 { font-family: var(--sans); font-weight: 500; font-size: clamp(36px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.02em; margin: 24px 0 12px; }
.legal-page h2 { font-family: var(--sans); font-weight: 500; font-size: 22px; margin: 36px 0 12px; }
.legal-page p, .legal-page li { line-height: 1.7; }
.legal-page ul, .legal-page ol { padding-left: 22px; }
.legal-page .toc-box {
    background: var(--paper-pure);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin: 32px 0;
    font-size: 14px;
}
.legal-page .toc-box a { color: var(--muted); text-decoration: none; }
.legal-page .toc-box a:hover { color: var(--accent); }
.legal-page .dl-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px 16px;
    margin: 16px 0 0;
}
@media (min-width: 640px) { .legal-page .dl-grid { grid-template-columns: 200px 1fr; } }
.legal-page .dl-grid dt { color: var(--muted); }
.legal-page .dl-grid dd { margin: 0; }
.legal-page .back-link { font-size: 13px; color: var(--muted); text-decoration: none; letter-spacing: 0.04em; }
.legal-page .back-link:hover { color: var(--accent); }
.legal-page .muted { color: var(--muted); }
.legal-page .small { font-size: 13px; }

/* ---------- Utils ---------- */
.hidden { display: none !important; }

.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--ink);
    color: var(--paper-pure);
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 0 0 var(--radius) 0;
    font-size: 14px;
    z-index: 200;
    transform: translateY(-100%);
    transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
