body.legal-body {
    margin: 0;
    color: #3b352d;
    background: #f4efe6;
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.75;
}

.legal-body #main {
    position: relative;
    top: auto;
    left: auto;
    height: auto;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.legal-body #main.legal-page-ready {
    opacity: 1;
}

.legal-body .loader-wrap {
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.legal-body .loader-wrap.legal-loader-finished {
    opacity: 0;
    visibility: hidden;
}

.legal-header {
    position: relative;
    z-index: 5;
    min-height: 96px;
    padding: 0;
    background: #171717;
    border-bottom: 1px solid rgba(196, 154, 84, 0.55);
}

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

.legal-header-inner {
    display: flex;
    min-height: 96px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.legal-logo {
    display: block;
    width: min(330px, 55vw);
}

.legal-logo img {
    display: block;
    width: 100%;
    height: auto;
    filter: invert(1) brightness(2);
}

.legal-back {
    position: relative;
    flex: 0 0 auto;
    padding: 10px 0 10px 28px;
    color: #fff;
    font-family: 'Vollkorn', Georgia, serif;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.legal-back::before {
    content: '\2190';
    position: absolute;
    left: 0;
    color: #c49a54;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.legal-back:hover,
.legal-back:focus {
    color: #d7b16e;
}

.legal-back:hover::before,
.legal-back:focus::before {
    transform: translateX(-4px);
}

.legal-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0 74px;
    color: #fff;
    background: #25211c url('../images/sl.webp') center 44% / cover no-repeat;
    text-align: center;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 15, 13, 0.76), rgba(16, 15, 13, 0.9));
}

.legal-hero .legal-container {
    position: relative;
    z-index: 1;
}

.legal-kicker {
    margin: 0 0 12px;
    color: #d7b16e;
    font-family: 'Vollkorn', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.legal-intro h1 {
    margin: 0;
    color: #fff;
    font-family: 'Vollkorn', Georgia, serif;
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 400;
    line-height: 1.08;
}

.legal-updated {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin: 30px 0 0;
}

.legal-nav a {
    padding: 10px 15px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(215, 177, 110, 0.58);
    border-radius: 2px;
    font-family: 'Vollkorn', Georgia, serif;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.legal-nav a:hover,
.legal-nav a:focus {
    color: #171717;
    background: #d7b16e;
}

.legal-main {
    padding: 56px 0 76px;
    background-image: radial-gradient(circle at 15% 10%, rgba(196, 154, 84, 0.09), transparent 34%);
    text-align: left;
}

.legal-section {
    position: relative;
    margin: 0 0 24px;
    padding: 38px 42px;
    overflow: hidden;
    background: #fffdf9;
    border: 1px solid #e0d4c2;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(46, 38, 27, 0.07);
    scroll-margin-top: 24px;
}

.legal-section::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: #c49a54;
}

.legal-section h2 {
    margin: 0 0 20px;
    color: #6c4c20;
    font-family: 'Vollkorn', Georgia, serif;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 400;
    line-height: 1.2;
}

.legal-section h3 {
    margin: 28px 0 9px;
    color: #30291f;
    font-family: 'Vollkorn', Georgia, serif;
    font-size: 20px;
    line-height: 1.3;
}

.legal-section p,
.legal-section ul {
    margin: 0 0 15px;
}

.legal-section ul {
    padding-left: 22px;
}

.legal-section li {
    margin-bottom: 7px;
}

.legal-section a {
    color: #805817;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-details {
    padding: 22px 24px;
    color: #3d3428;
    background: #f4ecde;
    border-left: 3px solid #c49a54;
}

.legal-cookie-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    font-size: 14px;
}

.legal-cookie-table th,
.legal-cookie-table td {
    padding: 14px;
    border: 1px solid #d9cdb9;
    text-align: left;
    vertical-align: top;
}

.legal-cookie-table th {
    color: #3d3020;
    background: #eadfcf;
    font-family: 'Vollkorn', Georgia, serif;
}

.legal-body .legal-site-footer {
    position: relative;
    z-index: 2;
    padding: 58px 20px 0;
}

.legal-body .legal-site-footer::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: #222;
}

.legal-body .custom-footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 25px;
    text-align: center;
}

.legal-body .custom-footer-brand {
    float: none;
    width: 100%;
    margin-bottom: 15px;
}

.legal-body .custom-footer-logo {
    display: inline-block;
    float: none;
}

.legal-body .custom-footer-logo img {
    max-width: 150px;
    height: auto;
    border-radius: 50%;
}

.legal-body .custom-footer-social {
    display: inline-block;
    float: none;
    margin: 0 auto;
}

.legal-body .custom-footer-social-title {
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

.legal-body .custom-footer-social ul {
    display: inline-block;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.legal-body .custom-footer-social li {
    display: inline-block;
    float: none;
}

.legal-body .custom-footer-social li.ml-10 {
    margin-left: 10px;
}

.legal-body .legal-site-footer .copyright {
    max-width: calc(100% - 130px);
}

@media (max-width: 768px) {
    .legal-header,
    .legal-header-inner {
        min-height: 78px;
    }

    .legal-logo {
        width: min(240px, 54vw);
    }

    .legal-back {
        padding-left: 23px;
        font-size: 12px;
    }

    .legal-hero {
        padding: 62px 0 58px;
    }

    .legal-main {
        padding: 38px 0 52px;
    }

    .legal-section {
        padding: 28px 24px;
    }

    .legal-body .legal-site-footer .copyright {
        float: none;
        max-width: none;
        top: 14px;
        text-align: center;
    }

    .legal-body .legal-site-footer .footer-legal-links {
        justify-content: center;
        margin: 8px 0 0;
    }

    .legal-body .legal-site-footer .footer-bottom {
        height: auto;
        min-height: 132px;
        padding-bottom: 22px;
    }

    .legal-body .legal-site-footer .to-top {
        float: none;
        display: inline-block;
        top: 20px;
    }
}

@media (max-width: 640px) {
    .legal-container {
        width: min(100% - 26px, 1040px);
    }

    .legal-back {
        max-width: 105px;
        line-height: 1.3;
        text-align: right;
    }

    .legal-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .legal-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .legal-cookie-table,
    .legal-cookie-table tbody,
    .legal-cookie-table tr,
    .legal-cookie-table th,
    .legal-cookie-table td {
        display: block;
        width: 100%;
    }

    .legal-cookie-table thead {
        display: none;
    }

    .legal-cookie-table tr {
        margin-bottom: 12px;
        border: 1px solid #d9cdb9;
    }

    .legal-cookie-table td {
        border: 0;
        border-bottom: 1px solid #e4dacb;
    }

    .legal-body .footer-widget-wrap {
        padding-bottom: 38px;
    }

}
