/* ==========================================================================
   Legal pages (leg-) — Impressum + Datenschutz, uses the sw- tokens from main.css
   ========================================================================== */

/* ---------- Hero: dark bordered band ---------- */
.leg-hero { padding: 30px 20px 0; }
.leg-hero__container {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 46px 56px 52px;
    overflow: hidden;
    border-radius: var(--sw-r-l);
    background: var(--sw-g-dark-tl);
}
.leg-hero__container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.3px);
    background-size: 16px 16px;
    -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 15%, transparent 70%);
    mask-image: radial-gradient(ellipse at 80% 20%, #000 15%, transparent 70%);
    pointer-events: none;
}
.leg-hero__container::after {
    content: "";
    position: absolute;
    right: 46px;
    bottom: -36px;
    width: 200px;
    height: 200px;
    background: url("/assets/icons/shield-check-w.svg") no-repeat center / contain;
    opacity: 0.07;
    pointer-events: none;
}
.leg-hero__breadcrumb {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    font: 600 12px/1.4 var(--sw-f-body);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sw-line);
}
.leg-hero__breadcrumb a { color: var(--sw-white); transition: color 0.3s ease; }
.leg-hero__breadcrumb a:hover { color: var(--sw-yellow); }
.leg-hero__breadcrumb-sep { color: var(--sw-yellow); }
.leg-hero__content { position: relative; max-width: 760px; }
.leg-hero__title {
    position: relative;
    padding-bottom: 18px;
    font-size: 54px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--sw-white);
}
.leg-hero__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 4px;
    border-radius: 2px;
    background: var(--sw-yellow);
}
.leg-hero__subtitle { margin-top: 20px; font-size: 17px; line-height: 1.6; color: var(--sw-line); }

/* ---------- Layout ---------- */
.leg-main { padding: 60px 0 110px; }
.leg-main__container { max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.leg-content { max-width: 900px; margin: 0 auto; }
.leg-section { margin-bottom: 52px; scroll-margin-top: 120px; }
.leg-section:last-child { margin-bottom: 0; }
.leg-section__title {
    position: relative;
    margin-bottom: 20px;
    padding: 0 0 12px 22px;
    border-bottom: 1px dashed var(--sw-line);
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.leg-section__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    width: 6px;
    height: 0.9em;
    border-radius: 3px;
    background: var(--sw-yellow);
}

/* ---------- Cards ---------- */
.leg-card {
    margin-bottom: 14px;
    padding: 26px 30px;
    border: 1px solid var(--sw-line);
    border-radius: var(--sw-r-l);
    background: var(--sw-white);
}
.leg-card:last-child { margin-bottom: 0; }
.leg-card__title { margin-bottom: 12px; font-size: 20px; line-height: 1.3; }
.leg-card__body { font-size: 16px; line-height: 1.7; }
.leg-card__body p + p,
.leg-card__body p + ul,
.leg-card__body ul + p,
.leg-card__body .leg-contact + p { margin-top: 12px; }
.leg-card__body strong { color: var(--sw-navy); }
.leg-card__body em { color: var(--sw-grey); }

.leg-link {
    color: var(--sw-navy);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--sw-yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s ease;
}
.leg-link:hover { text-decoration-color: var(--sw-navy); }

/* ---------- Contact rows ---------- */
.leg-contact { display: grid; gap: 0; }
.leg-contact__item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px dashed var(--sw-line);
}
.leg-contact__item:first-child { padding-top: 0; }
.leg-contact__item:last-child { padding-bottom: 0; border-bottom: 0; }
.leg-contact__label {
    font: 600 12px/1.4 var(--sw-f-body);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sw-grey);
}
.leg-contact__value { font-size: 16px; color: var(--sw-navy); overflow-wrap: anywhere; }
a.leg-contact__value { font-weight: 600; transition: color 0.3s ease; }
a.leg-contact__value:hover { color: var(--sw-ink); }

/* ---------- Lists ---------- */
.leg-list li { position: relative; padding-left: 28px; margin-bottom: 9px; }
.leg-list li:last-child { margin-bottom: 0; }
.leg-list li::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 0.62em;
    width: 9px;
    height: 9px;
    border: 1px solid var(--sw-navy);
    border-radius: 50%;
    background: var(--sw-yellow);
}
.leg-list--check li { padding-left: 34px; }
.leg-list--check li::before {
    left: 0;
    top: 0.2em;
    width: 22px;
    height: 22px;
    border: 0;
    background: var(--sw-yellow) url("/assets/icons/check.svg") no-repeat center / 13px 13px;
}
.leg-list--numbered { counter-reset: leg-num; }
.leg-list--numbered li { counter-increment: leg-num; padding-left: 38px; margin-bottom: 12px; }
.leg-list--numbered li::before {
    content: counter(leg-num);
    left: 0;
    top: 0.15em;
    width: 26px;
    height: 26px;
    border: 0;
    background: var(--sw-navy);
    font: 700 13px/26px var(--sw-f-head);
    text-align: center;
    color: var(--sw-yellow);
}

/* ---------- Table of contents ---------- */
.leg-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.leg-toc li { min-width: 0; }
.leg-toc .leg-link {
    position: relative;
    display: block;
    padding: 10px 34px 10px 14px;
    border: 1px solid var(--sw-line);
    border-radius: var(--sw-r-m);
    background: var(--sw-cream);
    text-decoration: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.leg-toc .leg-link::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 14px;
    height: 14px;
    background: url("/assets/icons/chevron-right.svg") no-repeat center / contain;
    transform: translateY(-50%);
}
.leg-toc .leg-link:hover { border-color: var(--sw-navy); background: var(--sw-cream-2); }

/* ---------- Highlight boxes ---------- */
.leg-highlight {
    position: relative;
    margin-bottom: 14px;
    padding: 26px 30px;
    border: 1px dashed var(--sw-yellow-2);
    border-radius: var(--sw-r-l);
    background: var(--sw-cream-2);
    font-size: 16px;
    line-height: 1.7;
}
.leg-highlight:last-child { margin-bottom: 0; }
.leg-highlight p + p { margin-top: 10px; }
.leg-highlight__title { margin-bottom: 8px; font: 700 20px/1.3 var(--sw-f-head); color: var(--sw-navy); }
.leg-highlight strong { color: var(--sw-navy); }
.leg-highlight--info {
    border: 0;
    background: var(--sw-g-dark);
    color: var(--sw-line);
}
.leg-highlight--info .leg-highlight__title { color: var(--sw-yellow); }
.leg-highlight--info strong { color: var(--sw-white); }
.leg-highlight--info .leg-link { color: var(--sw-white); }

/* ---------- Notes ---------- */
.leg-note {
    position: relative;
    margin-top: 16px;
    padding: 12px 16px 12px 44px;
    border-radius: var(--sw-r-m);
    background: var(--sw-soft);
    font-size: 14px;
    line-height: 1.6;
    color: var(--sw-ink);
}
.leg-note::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 14px;
    width: 16px;
    height: 16px;
    background: url("/assets/icons/info.svg") no-repeat center / contain;
}
.leg-footer-note {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px dashed var(--sw-line);
    font-size: 14px;
    color: var(--sw-grey);
}
.leg-footer-note p + p { margin-top: 4px; }
.leg-footer-note strong { color: var(--sw-navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .leg-hero__title { font-size: 48px; }
}
@media (max-width: 1024px) {
    .leg-hero__container { padding: 40px 40px 46px; }
    .leg-hero__title { font-size: 42px; }
    .leg-main { padding: 50px 0 80px; }
    .leg-section__title { font-size: 27px; }
}
@media (max-width: 768px) {
    .leg-hero { padding: 20px 12px 0; }
    .leg-hero__container { padding: 32px 24px 36px; }
    .leg-hero__container::after { width: 130px; height: 130px; right: 8px; bottom: -24px; }
    .leg-hero__title { font-size: 36px; }
    .leg-hero__subtitle { font-size: 16px; }
    .leg-main { padding: 40px 0 70px; }
    .leg-main__container { padding: 0 12px; }
    .leg-section { margin-bottom: 40px; }
    .leg-section__title { font-size: 24px; }
    .leg-card,
    .leg-highlight { padding: 22px 20px; }
    .leg-card__body,
    .leg-highlight { font-size: 15px; }
    .leg-card__title { font-size: 18px; }
    .leg-contact__item { grid-template-columns: 1fr; gap: 4px; }
    .leg-toc { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .leg-hero__breadcrumb { margin-bottom: 20px; font-size: 11px; letter-spacing: 1.5px; }
    .leg-hero__title { font-size: 31px; }
    .leg-section__title { font-size: 22px; padding-left: 18px; }
    .leg-card,
    .leg-highlight { padding: 20px 16px; }
    .leg-note { padding-left: 40px; }
}
@media (max-width: 375px) {
    .leg-hero__title { font-size: 28px; }
    .leg-section__title { font-size: 21px; }
}
