
/* FA_LEGAL_ENGLISH_DESIGN_PARITY_V2 */
/* Scoped to the four local Persian legal documents. */

* { box-sizing: border-box; }

body.fa-legal-page {
    margin: 0;
    background: #050d09;
    color: #e9f3ed;
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.75;
}

/* Same restrained navigation as the English legal pages. */
.fa-legal-header {
    min-height: 58px;
    padding: 12px max(24px, calc((100vw - 1120px)/2));
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #07130d;
    border-bottom: 1px solid #1a3025;
}

.fa-legal-brand,
.fa-legal-footbrand {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #edf7f0;
    font: 700 13px Arial, sans-serif;
    direction: ltr;
    unicode-bidi: isolate;
    text-decoration: none;
    white-space: nowrap;
}

.fa-legal-brand span,
.fa-legal-footbrand span {
    color: #38e889;
}

.fa-legal-back {
    display: inline-flex;
    padding: 9px 13px;
    border: 1px solid #1b3025;
    border-radius: 9px;
    background: #0b1710;
    color: #c1d2c6;
    font-size: 12px;
    text-decoration: none;
}

/* English policy document proportions, mirrored RTL. */
.fa-legal-wrap {
    width: min(100% - 48px, 1000px);
    margin: 70px auto 95px;
    padding: 0;
}

.fa-legal-kicker {
    color: #36e58b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
}

.fa-legal-wrap h1 {
    margin: 18px 0 12px;
    color: #eff8f1;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.4;
    letter-spacing: 0;
}

.fa-legal-date {
    margin: 0 0 32px;
    color: #91ac9b;
    font-size: 12px;
    line-height: 1.8;
}

/* Remove Persian cards and reproduce English text sections. */
.fa-legal-section {
    display: block;
    padding: 0;
    margin: 0 0 30px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.fa-legal-section:first-of-type {
    border-top: 1px solid #1a3025;
    padding-top: 28px;
}

.fa-legal-section h2 {
    margin: 0 0 9px;
    color: #eff8f1;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.65;
    letter-spacing: 0;
}

.fa-legal-section p,
.fa-legal-section li {
    margin: 0;
    color: #a8c0b0;
    font-size: 13px;
    line-height: 1.95;
    font-weight: 400;
    overflow-wrap: anywhere;
    unicode-bidi: plaintext;
}

/* English-style two-column footer, RTL mirrored. */
.fa-legal-footer {
    border-top: 1px solid #1a3025;
    padding: 36px max(24px, calc((100vw - 1120px)/2)) 24px;
    background: transparent;
    text-align: right;
}

.fa-legal-footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
    gap: 30px;
    align-items: start;
    padding-bottom: 26px;
}

.fa-legal-footer-brand p {
    margin: 18px 0 0;
    color: #93ae9b;
    font-size: 12px;
    line-height: 1.9;
}

.fa-legal-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

.fa-legal-nav a {
    color: #a8c0b0;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.6;
}

.fa-legal-nav a:hover,
.fa-legal-nav a:focus-visible,
.fa-legal-back:hover,
.fa-legal-back:focus-visible {
    color: #42e992;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.fa-legal-footnote {
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid #1a3025;
    color: #819a89;
    font-size: 11px;
    line-height: 1.9;
}

@media (max-width: 650px) {
    .fa-legal-header {
        padding: 12px 16px;
        gap: 10px;
    }
    .fa-legal-brand { font-size: 11px; }
    .fa-legal-back { font-size: 11px; padding: 8px; }

    .fa-legal-wrap {
        width: calc(100% - 32px);
        margin: 36px auto 56px;
    }
    .fa-legal-wrap h1 { font-size: 28px; }
    .fa-legal-section { margin-bottom: 25px; }
    .fa-legal-section h2 { font-size: 15px; }

    .fa-legal-footer { padding: 28px 16px 22px; }
    .fa-legal-footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
