@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/tajawal/ArbFONTS-Tajawal-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/tajawal/ArbFONTS-Tajawal-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/tajawal/ArbFONTS-Tajawal-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --color-primary: #009688;
    --color-primary-deep: #0b6b64;
    --color-primary-soft: #d7f3ef;
    --color-accent: #f4efe4;
    --color-surface: rgba(255, 255, 255, 0.94);
    --color-surface-strong: #ffffff;
    --color-border: rgba(11, 107, 100, 0.16);
    --color-text-primary: #17313e;
    --color-text-secondary: #49606d;
    --color-shadow: 0 24px 60px rgba(10, 51, 58, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --max-width: 1024px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-text-primary);
    font-family: 'Roboto', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0, 150, 136, 0.16), transparent 34%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.7), transparent 30%),
        linear-gradient(180deg, #f5fbfa 0%, #eef5f3 45%, #f7f3eb 100%);
}

body.lang-ar {
    font-family: 'Tajawal', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

a {
    color: inherit;
}

.page-shell {
    position: relative;
    overflow: hidden;
    padding: 32px 20px 56px;
}

.ambient {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.8;
    pointer-events: none;
}

.ambient-one {
    top: -80px;
    inset-inline-start: -70px;
    width: 220px;
    height: 220px;
    background: rgba(0, 150, 136, 0.18);
}

.ambient-two {
    top: 260px;
    inset-inline-end: -90px;
    width: 280px;
    height: 280px;
    background: rgba(244, 239, 228, 0.9);
}

.ambient-three {
    bottom: -100px;
    inset-inline-start: 18%;
    width: 300px;
    height: 300px;
    background: rgba(0, 150, 136, 0.1);
}

.legal-layout {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.card {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: var(--radius-xl);
    box-shadow: var(--color-shadow);
    backdrop-filter: blur(10px);
}

.hero-card {
    padding: 26px;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-link img {
    width: 58px;
    height: auto;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(0, 150, 136, 0.1);
    border: 1px solid rgba(0, 150, 136, 0.14);
}

.lang-button {
    border: 0;
    border-radius: 999px;
    padding: 9px 16px;
    background: transparent;
    color: var(--color-text-secondary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lang-button:hover {
    transform: translateY(-1px);
}

.lang-button.active {
    background: var(--color-primary);
    color: #ffffff;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--color-primary-soft);
    color: var(--color-primary-deep);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-title {
    margin: 16px 0 12px;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    line-height: 1.08;
    color: #123f3b;
}

.hero-summary {
    margin: 0;
    max-width: 720px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-size: 1.04rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.meta-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    font-size: 0.95rem;
}

.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button-link:hover {
    transform: translateY(-1px);
}

.button-link.primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 150, 136, 0.22);
}

.button-link.secondary {
    background: rgba(255, 255, 255, 0.88);
    color: var(--color-primary-deep);
    border: 1px solid var(--color-border);
}

.snapshot-card,
.content-card,
.footer-card {
    padding: 26px;
}

.snapshot-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.snapshot-item {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(236, 248, 246, 0.96) 100%);
    border: 1px solid rgba(0, 150, 136, 0.1);
}

.snapshot-label {
    margin: 0 0 10px;
    color: var(--color-primary-deep);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.snapshot-value {
    margin: 0;
    color: var(--color-text-primary);
    line-height: 1.7;
}

.content-card {
    display: grid;
    gap: 22px;
}

.legal-section {
    padding-top: 20px;
    border-top: 1px solid rgba(11, 107, 100, 0.12);
}

.legal-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.legal-section h2 {
    margin: 0 0 10px;
    color: var(--color-primary-deep);
    font-size: 1.32rem;
}

.legal-section p,
.legal-section li {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.85;
    font-size: 1rem;
}

.legal-section ul {
    margin: 14px 0 0;
    padding-inline-start: 22px;
    display: grid;
    gap: 10px;
}

.footer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-copy {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    color: var(--color-primary-deep);
    font-weight: 700;
}

.localized[hidden] {
    display: none !important;
}

body.lang-ar .brand-link {
    letter-spacing: normal;
    text-transform: none;
}

body.lang-ar .snapshot-label {
    letter-spacing: normal;
}

body.lang-ar .legal-section ul {
    padding-inline-start: 0;
    padding-inline-end: 22px;
}

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

    .footer-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 18px 14px 34px;
    }

    .hero-card,
    .snapshot-card,
    .content-card,
    .footer-card {
        padding: 20px;
        border-radius: 22px;
    }

    .brand-row {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 22px;
    }

    .brand-link {
        justify-content: center;
    }

    .lang-switcher {
        align-self: center;
    }

    .actions-row,
    .footer-links {
        width: 100%;
    }

    .button-link,
    .footer-link {
        flex: 1 1 100%;
    }
}
