.legal-hero {
    padding: 160px 0 56px;
    background: linear-gradient(180deg, rgba(244, 126, 66, 0.08), rgba(244, 126, 66, 0));
}

.legal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #f47e42;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.legal-kicker i {
    font-size: 16px;
}

.legal-title {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 10px;
    color: #10244a;
}

.legal-subtitle {
    max-width: 840px;
    font-size: 16px;
    line-height: 1.7;
    color: #5f6b7a;
    margin: 0;
}

.legal-shell {
    padding-bottom: 90px;
}

.legal-card {
    background: #fff;
    border: 1px solid #e8ebf1;
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(16, 36, 74, 0.08);
    padding: 24px;
    margin-bottom: 16px;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.legal-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    border: 1px solid #e2e8f4;
    background: #f7f9ff;
    color: #3b4a67;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
}

.legal-content {
    margin: 0;
    color: #4b5563;
    line-height: 1.8;
    font-size: 15px;
}

.legal-section {
    margin-top: 22px;
}

.legal-section h3 {
    color: #10244a;
    font-size: 20px;
    margin-bottom: 8px;
}

.legal-section p {
    margin: 0;
    color: #4b5563;
    line-height: 1.8;
    font-size: 15px;
}

.legal-section ul {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.legal-section ul li {
    position: relative;
    padding-inline-start: 24px;
    margin-bottom: 8px;
    color: #4b5563;
    line-height: 1.7;
    font-size: 15px;
}

.legal-section ul li::before {
    content: "";
    position: absolute;
    inset-inline-start: 8px;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f47e42;
}

.legal-side {
    position: sticky;
    top: 120px;
}

.legal-side h4 {
    margin-bottom: 10px;
    color: #10244a;
    font-size: 18px;
}

.legal-nav {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-nav a {
    display: block;
    padding: 8px 10px;
    border-radius: 9px;
    color: #4b5563;
    background: #f8fafc;
    border: 1px solid #edf1f7;
    font-size: 14px;
    line-height: 1.4;
}

.legal-nav a:hover {
    color: #f47e42;
    border-color: rgba(244, 126, 66, 0.3);
}

.legal-link-card {
    margin-top: 14px;
}

.legal-link-card a {
    font-weight: 700;
    color: #f47e42;
}

.theme-dark .legal-hero {
    background: linear-gradient(180deg, rgba(244, 126, 66, 0.14), rgba(244, 126, 66, 0));
}

.theme-dark .legal-title,
.theme-dark .legal-section h3,
.theme-dark .legal-side h4 {
    color: #f3f4f6;
}

.theme-dark .legal-subtitle,
.theme-dark .legal-content,
.theme-dark .legal-section p,
.theme-dark .legal-section ul li {
    color: #cfd7e4;
}

.theme-dark .legal-card {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.theme-dark .legal-chip {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.14);
    color: #e5e7eb;
}

.theme-dark .legal-nav a {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.11);
    color: #d1d5db;
}

.theme-dark .legal-nav a:hover {
    color: #ffb182;
    border-color: rgba(255, 177, 130, 0.35);
}

.rtl .legal-section ul li::before,
[dir="rtl"] .legal-section ul li::before {
    inset-inline-start: auto;
    inset-inline-end: 8px;
}

.rtl .legal-section ul li,
[dir="rtl"] .legal-section ul li {
    padding-inline-start: 0;
    padding-inline-end: 24px;
}

.legal-cms-content[dir="rtl"] {
    text-align: right;
}

.legal-cms-content[dir="rtl"] ul li {
    padding-left: 0 !important;
    padding-right: 24px !important;
    text-align: right;
}

.legal-cms-content[dir="rtl"] ul li::before {
    left: auto !important;
    right: 8px !important;
}

.legal-cms-content[dir="ltr"] {
    text-align: left;
}

.legal-cms-content[dir="ltr"] ul li {
    padding-left: 24px !important;
    padding-right: 0 !important;
    text-align: left;
}

.legal-cms-content[dir="ltr"] ul li::before {
    left: 8px !important;
    right: auto !important;
}

@media only screen and (max-width: 991px) {
    .legal-hero {
        padding: 122px 0 44px;
    }

    .legal-title {
        font-size: 32px;
    }

    .legal-shell {
        padding-bottom: 66px;
    }

    .legal-side {
        position: static;
        top: auto;
    }
}

@media only screen and (max-width: 575px) {
    .legal-title {
        font-size: 27px;
    }

    .legal-card {
        padding: 18px 14px;
        border-radius: 14px;
    }

    .legal-section h3 {
        font-size: 18px;
    }

    .legal-subtitle,
    .legal-content,
    .legal-section p,
    .legal-section ul li {
        font-size: 14px;
    }
}
