.legal-page {
    background: transparent;
    min-height: 50vh;
    overflow-x: clip;
}

.legal-page--slim .legal-page__container {
    max-width: 640px;
}

.legal-page--contact,
.legal-page--about {
    background: transparent;
}

.legal-page--contact .legal-page__container {
    max-width: 760px;
}

.legal-page--about .legal-page__container {
    max-width: 880px;
}

.legal-page-header--contact,
.legal-page-header--about,
.legal-page-header--platform {
    margin-bottom: 0.25rem;
    text-align: center;
}

.legal-page-header__badge {
    background: linear-gradient(135deg, #0089bf 0%, #00a8e8 100%);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding: 0.45rem 1rem;
}

.legal-page--contact .legal-page-header__title,
.legal-page--about .legal-page-header__title {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.legal-page--contact .legal-page-header__subtitle,
.legal-page--about .legal-page-header__subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.legal-page--compliance .legal-page__container {
}

.legal-page__container {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
}

.legal-page__breadcrumb .breadcrumb-item {
    font-size: 0.85rem;
    max-width: 100%;
}

.legal-page__breadcrumb .breadcrumb-item.active {
    overflow-wrap: anywhere;
}

.legal-page__breadcrumb .breadcrumb-item a {
    color: #0089bf;
    text-decoration: none;
}

.legal-page__breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}

.legal-page-header__title {
    color: #01305f;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.legal-page-header__subtitle {
    color: #78829d;
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.legal-page-meta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0 0 0.5rem;
}

.legal-page-meta-inline > div {
    display: flex;
    font-size: 0.8rem;
    gap: 0.35rem;
    line-height: 1.4;
}

.legal-page-meta-inline dt {
    color: #78829d;
    font-weight: 600;
    margin: 0;
}

.legal-page-meta-inline dd {
    color: #01305f;
    font-weight: 700;
    margin: 0;
}

.legal-page-meta-note {
    color: #78829d;
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 0 0 0.85rem;
}

.legal-page-body {
    margin-bottom: 0.75rem;
}

.legal-doc {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
    padding: 0.9rem 1rem;
    word-break: break-word;
}

.legal-doc h2,
.legal-doc h3,
.legal-doc h4 {
    color: #01305f;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 0.5rem;
    margin-top: 1.25rem;
    overflow-wrap: anywhere;
    scroll-margin-top: 5.5rem;
}

.legal-doc h2 {
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
    padding-bottom: 0.35rem;
}

.legal-doc h3 {
    font-size: 0.92rem;
}

.legal-doc h4 {
    font-size: 0.9rem;
}

.legal-doc p {
    margin-bottom: 0.75rem;
}

.legal-doc ul,
.legal-doc ol {
    margin-bottom: 0.75rem;
    padding-right: 1.1rem;
}

.legal-doc li {
    margin-bottom: 0.3rem;
}

.legal-doc a {
    color: #0089bf;
    overflow-wrap: anywhere;
    word-break: break-word;
}

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

.legal-callout {
    background: #f8fafb;
    border-right: 3px solid #0089bf;
    border-radius: 6px;
    font-size: 0.84rem;
    margin: 0.85rem 0;
    padding: 0.7rem 0.8rem;
}

.legal-callout strong {
    color: #01305f;
}

.legal-table-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin: 0.85rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.legal-table-wrap::before {
    color: #78829d;
    content: 'اسحب يميناً أو يساراً لعرض الجدول كاملاً';
    display: block;
    font-size: 0.72rem;
    padding: 0.4rem 0.6rem;
    text-align: center;
}

.legal-table {
    border-collapse: collapse;
    font-size: 0.82rem;
    min-width: 480px;
    width: 100%;
}

.legal-table th,
.legal-table td {
    border: 1px solid #e5e7eb;
    line-height: 1.5;
    padding: 0.55rem 0.65rem;
    text-align: right;
    vertical-align: top;
}

.legal-table thead th,
.legal-table tr:first-child td strong {
    background: #f8fafb;
    color: #01305f;
}

.legal-page__footer-note {
    color: #78829d;
    font-size: 0.82rem;
    line-height: 1.6;
    margin-top: 1rem;
    padding-bottom: env(safe-area-inset-bottom);
    text-align: center;
}

.legal-page__footer-note p {
    margin: 0 0 0.35rem;
}

.legal-page__footer-note p:last-child {
    margin-bottom: 0;
}

.legal-page__footer-note a {
    color: #0089bf;
    text-decoration: none;
}

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

.legal-page__footer-emails a {
    font-size: 0.8rem;
}

.legal-page__footer-sep {
    margin: 0 0.3rem;
}

.contact-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr;
}

.contact-card {
    background: #fff;
    border: 1px solid rgba(0, 137, 191, 0.12);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(1, 48, 95, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
}

.contact-card--address {
    grid-column: 1 / -1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 253, 0.98));
    border-color: rgba(0, 137, 191, 0.14);
}

.contact-card__head {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
}

.contact-card__icon {
    align-items: center;
    background: linear-gradient(135deg, #0089bf 0%, #00a8e8 100%);
    border-radius: 12px;
    color: #fff;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1.05rem;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.contact-card__icon--privacy {
    background: linear-gradient(135deg, #01305f 0%, #1a4f8a 100%);
}

.contact-card__icon--support {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
}

.contact-card__icon--address {
    background: linear-gradient(135deg, #0089bf 0%, #01305f 100%);
}

.contact-card--address .contact-card__intro {
    flex: 1;
    min-width: 0;
}

.contact-card--address .contact-card__title {
    color: #01305f;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    margin: 0 0 0.35rem;
}

.contact-address-oneline {
    background: rgba(1, 48, 95, 0.035);
    border: 1px solid rgba(1, 48, 95, 0.06);
    border-radius: 10px;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.7;
    margin: 0;
    padding: 0.65rem 0.85rem;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

@media (max-width: 767.98px) {
    .contact-address-oneline {
        white-space: normal;
        overflow-x: visible;
    }
}

.contact-card__intro {
    min-width: 0;
}

.contact-card__title {
    color: #01305f;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.2rem;
}

.contact-card__desc {
    color: #78829d;
    font-size: 0.82rem;
    line-height: 1.55;
    margin: 0;
}

.contact-card__actions {
    display: grid;
    gap: 0.5rem;
}

.contact-card__action {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 700;
    gap: 0.45rem;
    justify-content: center;
    line-height: 1.2;
    min-height: 2.5rem;
    padding: 0.55rem 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.contact-card__action--primary {
    background: linear-gradient(135deg, #0089bf 0%, #00a8e8 100%);
    border: 1px solid transparent;
    color: #fff;
}

.contact-card__action--primary:hover {
    color: #fff;
    transform: translateY(-1px);
}

.contact-card__action--outline {
    background: #fff;
    border: 1px solid rgba(0, 137, 191, 0.35);
    color: #0089bf;
}

.contact-card__action--outline:hover {
    background: #f0f9ff;
    border-color: #0089bf;
    color: #01305f;
}

.contact-callout {
    align-items: flex-start;
    background: #f0f9ff;
    border: 1px solid rgba(0, 137, 191, 0.18);
    border-radius: 12px;
    color: #475569;
    display: flex;
    font-size: 0.84rem;
    gap: 0.6rem;
    line-height: 1.6;
    margin: 1rem 0 0;
    padding: 0.8rem 0.9rem;
}

.contact-callout > i {
    color: #0089bf;
    flex-shrink: 0;
    font-size: 1.05rem;
    margin-top: 0.1rem;
}

.contact-callout p {
    margin: 0;
}

.contact-callout strong {
    color: #01305f;
}

.contact-page__related {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
    margin-top: 0.25rem;
}

.contact-page__related-btn {
    background: #fff;
    border: 1px solid rgba(0, 137, 191, 0.28);
    border-radius: 999px;
    color: #0089bf;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.5rem 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact-page__related-btn:hover {
    background: #f0f9ff;
    border-color: #0089bf;
    color: #01305f;
}

.contact-note {
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 0.85rem 0 0;
}

.contact-note--muted {
    color: #78829d;
    font-size: 0.8rem;
}

/* —— صفحة من نحن —— */
.about-intro {
    background: #fff;
    border: 1px solid rgba(0, 137, 191, 0.12);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(1, 48, 95, 0.06);
    margin-bottom: 1rem;
    overflow: hidden;
    padding: 1.15rem 1.1rem 1rem;
    position: relative;
}

.about-intro::before {
    background: linear-gradient(90deg, #01305f 0%, #0089bf 55%, #00a8e8 100%);
    content: '';
    display: block;
    height: 3px;
    inset-inline: 0;
    position: absolute;
    top: 0;
}

.about-intro__lead {
    color: #01305f;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.75;
    margin: 0 0 0.75rem;
}

.about-intro__body {
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.75;
    margin: 0 0 1rem;
}

.about-intro__body strong {
    color: #01305f;
}

.about-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.about-credentials__item {
    align-items: center;
    background: #f8fafb;
    border: 1px solid #e8eef3;
    border-radius: 12px;
    display: flex;
    flex: 1 1 12rem;
    gap: 0.7rem;
    min-width: min(100%, 12rem);
    padding: 0.7rem 0.8rem;
}

.about-credentials__icon {
    align-items: center;
    background: linear-gradient(135deg, #0089bf 0%, #00a8e8 100%);
    border-radius: 10px;
    color: #fff;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.95rem;
    height: 2.2rem;
    justify-content: center;
    width: 2.2rem;
}

.about-credentials__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.about-credentials__label {
    color: #78829d;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
}

.about-credentials__value {
    color: #01305f;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.about-pillars {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr;
    margin-bottom: 1.15rem;
}

.about-pillar {
    background: #fff;
    border: 1px solid rgba(0, 137, 191, 0.12);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(1, 48, 95, 0.05);
    padding: 1.05rem 1rem;
}

.about-pillar__icon {
    align-items: center;
    background: linear-gradient(135deg, #01305f 0%, #1a4f8a 100%);
    border-radius: 12px;
    color: #fff;
    display: inline-flex;
    font-size: 1.1rem;
    height: 2.55rem;
    justify-content: center;
    margin-bottom: 0.75rem;
    width: 2.55rem;
}

.about-pillar__icon--mission {
    background: linear-gradient(135deg, #0089bf 0%, #00a8e8 100%);
}

.about-pillar__title {
    color: #01305f;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.45rem;
}

.about-pillar__text {
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.7;
    margin: 0;
}

.about-section {
    margin-bottom: 1.15rem;
}

.about-section__head {
    margin-bottom: 0.75rem;
    text-align: center;
}

.about-section__title {
    color: #01305f;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.25rem;
}

.about-section__subtitle {
    color: #78829d;
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0;
}

.about-offerings,
.about-values {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

.about-offering,
.about-value {
    background: #fff;
    border: 1px solid rgba(0, 137, 191, 0.1);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(1, 48, 95, 0.04);
    padding: 0.95rem 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.about-offering:hover,
.about-value:hover {
    border-color: rgba(0, 137, 191, 0.28);
    box-shadow: 0 8px 22px rgba(1, 48, 95, 0.08);
    transform: translateY(-1px);
}

.about-offering__icon {
    align-items: center;
    background: #f0f9ff;
    border-radius: 11px;
    color: #0089bf;
    display: inline-flex;
    font-size: 1.05rem;
    height: 2.35rem;
    justify-content: center;
    margin-bottom: 0.65rem;
    width: 2.35rem;
}

.about-offering__title,
.about-value__title {
    color: #01305f;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.35rem;
}

.about-value__title {
    align-items: center;
    display: flex;
    gap: 0.4rem;
}

.about-value__title > i {
    color: #0089bf;
    font-size: 1rem;
}

.about-offering__text,
.about-value__text {
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.65;
    margin: 0;
}

.about-callout {
    align-items: flex-start;
    background: #f0f9ff;
    border: 1px solid rgba(0, 137, 191, 0.18);
    border-radius: 12px;
    color: #475569;
    display: flex;
    font-size: 0.84rem;
    gap: 0.6rem;
    line-height: 1.65;
    margin: 0 0 1rem;
    padding: 0.85rem 0.95rem;
}

.about-callout > i {
    color: #0089bf;
    flex-shrink: 0;
    font-size: 1.05rem;
    margin-top: 0.1rem;
}

.about-callout p {
    margin: 0;
}

.about-callout strong {
    color: #01305f;
}

.about-compliance {
    align-items: flex-start;
    background: #fff;
    border: 1px solid rgba(1, 48, 95, 0.12);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(1, 48, 95, 0.05);
    display: flex;
    gap: 0.85rem;
    padding: 1.05rem 1rem;
}

.about-compliance__icon {
    align-items: center;
    background: linear-gradient(135deg, #01305f 0%, #1a4f8a 100%);
    border-radius: 12px;
    color: #fff;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1.15rem;
    height: 2.55rem;
    justify-content: center;
    width: 2.55rem;
}

.about-compliance__title {
    color: #01305f;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.4rem;
}

.about-compliance__text {
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.7;
    margin: 0;
}

.about-compliance__text a {
    color: #0089bf;
    font-weight: 600;
    text-decoration: none;
}

.about-compliance__text a:hover {
    text-decoration: underline;
}

@media (min-width: 640px) {
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-pillars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-offerings,
    .about-values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .about-intro {
        padding: 1.35rem 1.35rem 1.15rem;
    }

    .about-offerings {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .legal-table-wrap::before {
        display: none;
    }
}

@media print {
    .legal-page {
        background: #fff;
    }

    .legal-doc {
        border: 0;
        padding: 0;
    }

    .legal-table-wrap::before {
        display: none;
    }

    .legal-table-wrap {
        overflow: visible;
    }

    .legal-table {
        min-width: 0;
    }
}
