body.legal-page {
    margin: 0;
    background: linear-gradient(180deg, #edf5f1 0%, #f5f7f8 100%);
    color: #1a2d2c;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.legal-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #ffffff;
    border-bottom: 1px solid #dfe6e2;
}

.legal-header-inner {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 14px clamp(20px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.legal-brand {
    display: flex;
    align-items: center;
    gap: 0;
    color: #0b8060;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.legal-brand img {
    width: 38px;
    height: 38px;
    display: block;
}

.legal-brand sup {
    font-size: 10px;
    vertical-align: top;
    margin-left: 2px;
    letter-spacing: 0;
}

.legal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-btn {
    min-height: 40px;
    border: 1px solid #b7dcca;
    background: #eaf5ef;
    color: #086b50;
    border-radius: 6px;
    padding: 0 18px;
    font: 600 15px "Segoe UI", sans-serif;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s, border-color 0.15s;
    box-shadow: none;
}

.legal-btn:hover {
    background: #dcefe5;
    border-color: #0b8060;
    transform: none;
}

.legal-shell {
    max-width: 1200px;
    margin: 32px auto 48px;
    padding: 0 24px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 92px;
    background: #ffffff;
    border: 1px solid #e1ece4;
    border-radius: 18px;
    padding: 18px 16px;
    box-shadow: 0 12px 30px rgba(18, 38, 31, 0.06);
}

.legal-sidebar h3 {
    margin: 0 0 14px;
    color: #1d3d34;
    font-size: 1.05rem;
    font-weight: 700;
}

.legal-linklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-linklist a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: #355a4f;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: #f8fbfa;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.legal-linklist a:hover,
.legal-linklist a.is-current {
    background: #edf9f2;
    border-color: #bfe7ce;
    color: #0e613e;
}

.legal-card {
    background: #ffffff;
    border: 1px solid #e1ece4;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(18, 38, 31, 0.06);
}

.legal-card-header {
    padding: 26px 28px 20px;
    background: linear-gradient(135deg, #f0fbf5 0%, #ffffff 100%);
    border-bottom: 1px solid #e4efe8;
}

.legal-card-header .eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #1e865a;
    text-transform: uppercase;
}

.legal-card-header h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    line-height: 1.2;
    color: #18332d;
}

.legal-card-header p {
    margin: 10px 0 0;
    color: #58716d;
    font-size: 0.9rem;
}

.legal-content {
    padding: 28px;
    color: #233c39;
    font-size: 1rem;
    line-height: 1.8;
}

.legal-content p,
.legal-content ul,
.legal-content li {
    margin-top: 0;
    margin-bottom: 1rem;
}

.legal-content b {
    color: #18332d;
}

.legal-content ul {
    padding-left: 1.25rem;
}

.legal-content a {
    color: #176d4a;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.register-footer {
    padding: 20px;
    border-top: 1px solid #dfe6e2;
    color: #55625b;
    font-size: 13px;
    text-align: center;
}

.contact-box {
    display: grid;
    gap: 1.25rem;
    padding: 0.75rem 0;
}

.contact-block {
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: #f5faf7;
    border: 1px solid #dfeae3;
}

.contact-block h3 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    color: #18332d;
}

.contact-block p {
    margin: 0.5rem 0;
    color: #34544d;
}

.contact-block a {
    color: #166d48;
    font-weight: 600;
}

.footer-bottom {
    background: #0f1720;
    color: #edf5ef;
    text-align: center;
    font-size: 0.8rem;
    padding: 14px 20px;
}

@media (max-width: 860px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: static;
    }

    .legal-header-inner {
        padding: 14px 16px;
    }

    .legal-shell {
        padding: 0 16px;
    }

    .legal-content {
        padding: 20px 18px;
    }
}

@media (max-width: 560px) {
    .legal-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-actions {
        width: 100%;
    }

    .legal-btn {
        flex: 1;
    }
}
