:root {
    --pk-navy: #0c285d;
    --pk-blue: #387dff;
    --pk-text: #303747;
    --pk-muted: #687181;
    --pk-white: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--pk-text);
    background-color: var(--pk-white);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Verhindert ein übergroßes Telefon-SVG, falls globale Icon-Regeln fehlen. */
.header-call-button svg,
.mobile-call-button svg {
    display: block;
    width: 20px !important;
    min-width: 20px;
    max-width: 20px;
    height: 20px !important;
    flex: 0 0 20px;
}

.legal-page {
    min-height: calc(100vh - var(--header-height, 90px) - 92px);
    padding: clamp(64px, 8vw, 96px) 24px 100px;
}

.legal-container {
    width: min(680px, 100%);
    margin: 0 auto;
}

.legal-content a:focus-visible {
    outline: 3px solid rgba(56, 125, 255, 0.24);
    outline-offset: 4px;
    border-radius: 3px;
}

.legal-header {
    margin-bottom: 52px;
}

.legal-header h1 {
    margin: 0;
    color: var(--pk-navy);
    font-size: clamp(40px, 7vw, 58px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.legal-updated {
    margin: 14px 0 0;
    color: var(--pk-muted);
    font-size: 13px;
    line-height: 1.6;
}

.legal-content {
    display: block;
}

.legal-section {
    margin: 0 0 42px;
    padding: 0;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    margin: 0 0 14px;
    color: var(--pk-navy);
    font-size: 19px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -0.015em;
}

.legal-section h3 {
    margin: 30px 0 10px;
    color: var(--pk-navy);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.45;
}

.legal-section h2 + h3 {
    margin-top: 0;
}

.legal-section p,
.legal-section address {
    margin: 0;
    color: var(--pk-muted);
    font-size: 15px;
    font-style: normal;
    line-height: 1.7;
}

.legal-section p + p {
    margin-top: 6px;
}

.legal-section strong {
    color: var(--pk-text);
    font-weight: 700;
}

.legal-contact-list {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.legal-contact-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
    color: var(--pk-muted);
    font-size: 15px;
    line-height: 1.7;
}

.legal-contact-list span::after {
    content: ":";
}

.legal-contact-list a,
.legal-content a {
    color: var(--pk-blue);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(56, 125, 255, 0.45);
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.legal-contact-list a:hover,
.legal-content a:hover {
    color: var(--pk-navy);
}

.legal-list {
    display: grid;
    gap: 7px;
    margin: 14px 0 18px;
    padding-left: 22px;
    color: var(--pk-muted);
    list-style: disc;
}

.legal-list li {
    padding-left: 3px;
    font-size: 15px;
    line-height: 1.7;
}

.legal-section code {
    padding: 2px 6px;
    color: var(--pk-navy);
    background-color: #f1f5fc;
    border-radius: 5px;
    font-size: 0.9em;
    overflow-wrap: anywhere;
}

.legal-footer {
    color: #ffffff;
    background-color: var(--pk-navy);
}

.legal-footer-container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px 40px;
    min-height: 92px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.legal-footer p {
    margin: 0;
    color: #dce8ff;
    font-size: 13px;
    line-height: 1.6;
}

.legal-footer-center,
.legal-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.legal-footer-center {
    gap: 10px 16px;
}

.legal-footer-links {
    gap: 10px 24px;
}

.legal-footer-links a,
.legal-footer-settings,
.legal-footer-credit a {
    color: #dce8ff;
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.legal-footer-links a:hover,
.legal-footer-links a:focus-visible,
.legal-footer-settings:hover,
.legal-footer-settings:focus-visible,
.legal-footer-credit a:hover,
.legal-footer-credit a:focus-visible,
.legal-footer-links a[aria-current="page"] {
    color: #ffffff;
}

.legal-footer-settings {
    padding: 6px 11px;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(220, 232, 255, 0.35);
    border-radius: 999px;
    font-size: 12px;
}

.legal-footer-settings:hover,
.legal-footer-settings:focus-visible {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.65);
}

.legal-footer-credit {
    text-align: right;
    font-size: 11px !important;
    opacity: 0.82;
}

.legal-footer-credit a {
    color: #aecdff;
    font-size: 11px;
    font-weight: 600;
}

.legal-footer-links a:focus-visible,
.legal-footer-settings:focus-visible,
.legal-footer-credit a:focus-visible {
    outline: 3px solid rgba(174, 205, 255, 0.35);
    outline-offset: 4px;
    border-radius: 3px;
}

@media (max-width: 900px) {
    .legal-footer-container {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 15px;
        padding-top: 28px;
        padding-bottom: 28px;
        text-align: center;
    }

    .legal-footer-credit {
        text-align: center;
    }
}

@media (max-width: 700px) {
    .legal-page {
        padding: 42px 20px 72px;
    }

    .legal-header {
        margin-bottom: 42px;
    }

    .legal-section {
        margin-bottom: 36px;
    }
}

@media (max-width: 420px) {
    .legal-header h1 {
        font-size: 38px;
    }

    .legal-footer-center,
    .legal-footer-links {
        align-items: center;
        flex-direction: column;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .legal-contact-list a,
    .legal-content a,
    .legal-footer-links a,
    .legal-footer-settings,
    .legal-footer-credit a {
        transition: none;
    }
}
