.legal-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    color: #1a1a1a;
}

.legal-header {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px max(24px,calc((100vw - 1080px)/2));
    border-bottom: 1px solid #e2e8ed;
    background: #fff;
}

.legal-header>a:last-child,
.legal-content a,
.legal-footer a {
    color: #b94300;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.legal-brand img {
    display: block;
    width: 180px;
    height: auto;
}

.legal-content {
    width: min(100% - 36px,800px);
    flex: 1;
    margin: 54px auto 64px;
    padding: clamp(24px,5vw,48px);
    border: 1px solid #e2e8ed;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(20,30,20,.04);
}

.legal-content>.section-label {
    margin-bottom: 10px;
}

.legal-content h1 {
    margin: 0 0 16px;
    color: #111;
    font-size: clamp(30px,5vw,42px);
    line-height: 1.15;
}

.legal-content>p,
.legal-content section {
    color: #404840;
    font-size: 15px;
    line-height: 1.75;
}

.legal-content section {
    margin-top: 30px;
}

.legal-content h2 {
    margin: 0 0 9px;
    color: #1a1a1a;
    font-size: 20px;
    line-height: 1.35;
}

.legal-content p,
.legal-content ol,
.legal-content ul {
    margin-top: 0;
    margin-bottom: 12px;
}

.legal-content li+li {
    margin-top: 8px;
}

.legal-updated {
    margin-top: 36px !important;
    padding: 14px 16px;
    border-left: 3px solid #ff5a00;
    background: #fff4ed;
    color: #4a403a !important;
    font-size: 13px !important;
}

.legal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    padding: 22px 18px;
    background: #414846;
    color: #f5f6f3;
    font-size: 12px;
    text-align: center;
}

.legal-footer a {
    color: #ffb088;
}

.cookie-notice {
    position: fixed;
    z-index: 1000;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 18px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,.16);
}

.cookie-notice[hidden] {
    display: none;
}

.cookie-notice p {
    margin: 0;
    color: #343a37;
    font-size: 13px;
    line-height: 1.5;
}

.cookie-notice a {
    color: #b94300;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-notice button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 18px;
    border: 0;
    border-radius: 5px;
    background: #ff5a00;
    color: #111;
    font: 700 13px Arial,Helvetica,sans-serif;
    cursor: pointer;
}

@media (max-width:600px) {
    .legal-header {
        padding-right: 18px;
        padding-left: 18px;
    }

    .legal-content {
        margin-top: 24px;
        margin-bottom: 30px;
        padding: 24px 20px;
    }

    .legal-content>p,
    .legal-content section {
        font-size: 14px;
    }

    .cookie-notice {
        right: 10px;
        bottom: 10px;
        left: 10px;
        align-items: flex-start;
        gap: 12px;
        padding: 13px;
    }

    .cookie-notice p {
        font-size: 12px;
    }
}
