/* =========================================================
   24ST – Rechtsseiten (Impressum, Datenschutz, AGB, Widerruf,
   Versand & Zahlung, Rückgabe, Vertrag widerrufen)
   ========================================================= */

body.s24-legal-page {
    --l-accent: #ff5a00;
    --l-accent-dark: #d94b00;
    background: #f7f5f0 !important;
    color: #222 !important;
}

body.s24-legal-page #primary,
body.s24-legal-page #main,
body.s24-legal-page .site-content,
body.s24-legal-page .content-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    background: transparent !important;
}

body.s24-legal-page article.page {
    width: min(880px, calc(100% - 40px));
    margin: 56px auto 80px !important;
    padding: 48px 56px !important;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 40px rgba(0, 0, 0, .05);
}

body.s24-legal-page .entry-header {
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
}

body.s24-legal-page .entry-title {
    margin: 0 !important;
    padding-bottom: 18px;
    border-bottom: 3px solid var(--l-accent);
    color: #111 !important;
    font-size: clamp(30px, 4vw, 44px) !important;
    font-weight: 800 !important;
    letter-spacing: -.03em;
    line-height: 1.1;
}

body.s24-legal-page .entry-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: auto !important;
    background: none !important;
    color: #2b2b2b !important;
    font-size: 16px;
    line-height: 1.75 !important;
    overflow-wrap: anywhere;
}

body.s24-legal-page .entry-content h1,
body.s24-legal-page .entry-content h2,
body.s24-legal-page .entry-content h3 {
    margin: 40px 0 12px;
    color: #111 !important;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.3;
}

body.s24-legal-page .entry-content h2 { font-size: 21px; }
body.s24-legal-page .entry-content h3 { font-size: 17px; }

body.s24-legal-page .entry-content p,
body.s24-legal-page .entry-content li {
    color: #2b2b2b !important;
}

body.s24-legal-page .entry-content a:not(.s24-btn) {
    color: var(--l-accent-dark) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.s24-legal-page .s24-lead {
    margin: 22px 0 28px;
    color: #555 !important;
    font-size: 18px;
}

body.s24-legal-page .s24-small {
    margin-top: 32px;
    color: #777 !important;
    font-size: 13px;
}

body.s24-legal-page .s24-box {
    margin: 16px 0;
    padding: 24px 28px;
    background: #faf8f4;
    border: 1px solid #ece7de;
    border-radius: 12px;
}

/* Tabelle Versandkosten */
body.s24-legal-page .s24-table {
    width: 100%;
    margin: 12px 0 18px;
    border-collapse: collapse;
    font-size: 15px;
}

body.s24-legal-page .s24-table th,
body.s24-legal-page .s24-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
    background: none;
}

body.s24-legal-page .s24-table th {
    color: #111;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Button */
.s24-btn,
body.s24-legal-page .entry-content .s24-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    background: #111 !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .2s ease;
}

.s24-btn:hover,
body.s24-legal-page .entry-content .s24-btn:hover {
    background: var(--l-accent) !important;
}

/* Widerrufsformular */
body.s24-legal-page .s24-form {
    display: grid;
    gap: 18px;
    margin: 24px 0;
}

body.s24-legal-page .s24-form label {
    display: grid;
    gap: 6px;
    color: #111;
    font-size: 14px;
    font-weight: 600;
}

body.s24-legal-page .s24-form label span {
    color: #777;
    font-weight: 400;
}

body.s24-legal-page .s24-form input,
body.s24-legal-page .s24-form select,
body.s24-legal-page .s24-form textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #d9d4cb;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    color: #111;
    font-size: 16px;
    font-weight: 400;
}

body.s24-legal-page .s24-form input:focus,
body.s24-legal-page .s24-form select:focus,
body.s24-legal-page .s24-form textarea:focus {
    border-color: var(--l-accent);
    outline: 2px solid rgba(255, 90, 0, .18);
}

body.s24-legal-page .s24-form .s24-btn {
    justify-self: start;
    margin-top: 6px;
}

body.s24-legal-page .s24-hp {
    position: absolute !important;
    left: -9999px !important;
}

body.s24-legal-page .s24-notice {
    margin: 20px 0;
    padding: 18px 22px;
    border-radius: 12px;
    font-size: 15px;
}

body.s24-legal-page .s24-notice--ok  { background: #ecf7ef; border: 1px solid #bfe3c9; color: #1d5b2f; }
body.s24-legal-page .s24-notice--err { background: #fdeeee; border: 1px solid #f2c4c4; color: #8a1f1f; }

/* Handy */
@media (max-width: 640px) {
    body.s24-legal-page article.page {
        width: calc(100% - 24px);
        margin: 24px auto 48px !important;
        padding: 28px 22px !important;
    }
}
