@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Kufi+Arabic:wght@400&display=swap");

:root {
    --primary: #0f766e;
    --primary-hover: #115e59;
    --primary-light: rgba(15, 118, 110, 0.08);
    --primary-glow: rgba(15, 118, 110, 0.18);
    --bg: #ffffff;
    --bg-muted: #f5f8f9;
    --text: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: rgba(15, 23, 42, 0.08);
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.1);
    --transition: 0.22s ease;
}

[data-theme="dark"] {
    --bg: #0b1220;
    --bg-muted: #111a2e;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.07);
    --primary-light: rgba(15, 118, 110, 0.16);
    --primary-glow: rgba(15, 118, 110, 0.28);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html[lang="ar"] {
    font-family: "Noto Kufi Arabic", sans-serif;
}

html[lang="en"] {
    font-family: "Inter", sans-serif;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.lang-hide {
    display: none !important;
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(14px);
    transition: var(--transition);
}

.nav.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .nav {
    background: rgba(11, 18, 32, 0.9);
}

.nav-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    white-space: nowrap;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
}

.brand .logo-dark {
    display: none;
}

[data-theme="dark"] .brand .logo-light {
    display: none;
}

[data-theme="dark"] .brand .logo-dark {
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-inline-start: auto;
}

.nav-links a {
    padding: 8px 11px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-btn,
.lang-btn,
.menu-btn {
    height: 38px;
    min-width: 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:hover,
.lang-btn:hover,
.menu-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

.lang-btn.active-lang {
    display: none;
}

.menu-btn {
    display: none;
}

.nav-cta {
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-cta:hover {
    color: #fff;
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-lg {
    min-height: 52px;
    padding: 14px 26px;
}

.btn-primary {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 8px 22px rgba(15, 118, 110, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-secondary {
    color: var(--text);
    background: var(--bg);
    border-color: var(--border);
}

.btn-secondary:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-ghost {
    color: var(--text-secondary);
    background: transparent;
    min-height: 44px;
    padding: 10px 14px;
}

.btn-ghost:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.btn-cta-primary {
    color: #fff;
    background: #25d366;
    border-color: #25d366;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.28);
}

.btn-cta-primary:hover {
    background: #1fb85a;
    border-color: #1fb85a;
    color: #fff;
    transform: translateY(-1px);
}

/* Hero */
.hero {
    position: relative;
    padding: 88px 0 64px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    inset: -20% auto auto 40%;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow), transparent 68%);
    pointer-events: none;
    filter: blur(10px);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--primary-light);
    border: 1px solid rgba(15, 118, 110, 0.14);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    max-width: 720px;
    font-size: clamp(36px, 4.8vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 800;
    margin-bottom: 18px;
}

html[lang="ar"] .hero h1 {
    line-height: 1.18;
    letter-spacing: -0.02em;
    font-weight: 800;
}

html[lang="ar"] .section-head h2,
html[lang="ar"] .cta-panel h2,
html[lang="ar"] .cta-mid-content h2,
html[lang="ar"] .lead-copy h2,
html[lang="ar"] .pricing-head h3 {
    font-weight: 800;
}

.hero-lead {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.85;
    max-width: 560px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.trust-pill i {
    color: var(--primary);
    font-size: 11px;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.proof-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.proof-item strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.proof-item span {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.proof-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

.hero-visual {
    position: relative;
}

.hero-image-wrap {
    display: block;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-muted);
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
}

.hero-image-dark {
    display: none;
}

[data-theme="dark"] .hero-image-light {
    display: none;
}

[data-theme="dark"] .hero-image-dark {
    display: block;
}

.hero-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    min-width: 190px;
    z-index: 2;
}

.hero-float i {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    flex-shrink: 0;
}

.hero-float strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.hero-float span {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
}

.hero-float-1 {
    top: 12%;
    inset-inline-start: -18px;
    animation: floatY 4.5s ease-in-out infinite;
}

.hero-float-2 {
    bottom: 10%;
    inset-inline-end: -12px;
    animation: floatY 5s ease-in-out infinite reverse;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Logo strip */
.logo-strip {
    padding: 0 0 28px;
}

.logo-strip-inner {
    text-align: center;
    padding: 14px 18px;
    border-radius: 999px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

/* Stats */
.stats {
    padding: 12px 0 72px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stat-box {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-muted) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    transition: var(--transition);
}

.stat-box:hover {
    border-color: rgba(15, 118, 110, 0.25);
    transform: translateY(-2px);
}

.stat-box strong {
    display: block;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 6px;
    font-weight: 800;
}

.stat-box span {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
    line-height: 1.5;
}

/* Sections */
.section {
    padding: 84px 0;
}

.section-muted {
    background: var(--bg-muted);
}

.section-head {
    max-width: 700px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
}

.section-label.light {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.section-head h2 {
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.22;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-head p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.section-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

/* Cards shared */
.card,
.module-card,
.scenario-card,
.security-card,
.audience-card,
.benefit-card,
.role-card,
.start-card,
.demo-flow-card,
.pricing-card,
.lead-panel,
.faq-item,
.cta-panel,
.cta-mid {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.card,
.module-card,
.scenario-card,
.security-card,
.audience-card,
.benefit-card,
.role-card,
.start-card {
    padding: 24px;
    transition: var(--transition);
}

.module-card:hover,
.audience-card:hover,
.benefit-card:hover,
.role-card:hover,
.security-card:hover,
.scenario-card:hover,
.demo-flow-card:hover,
.pricing-card:hover,
.start-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(15, 118, 110, 0.2);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-light);
    margin-bottom: 14px;
    font-size: 16px;
}

/* Problem / Solution */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.problem-box,
.solution-box {
    padding: 28px;
    border-radius: var(--radius-lg);
}

.problem-box {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.12);
}

.solution-box {
    background: var(--primary-light);
    border: 1px solid rgba(15, 118, 110, 0.14);
}

.box-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
}

.box-badge.red {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.1);
}

.box-badge.green {
    color: var(--primary);
    background: rgba(15, 118, 110, 0.12);
}

.check-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 500;
    font-size: 14px;
}

.check-list i {
    margin-top: 4px;
    font-size: 13px;
    flex-shrink: 0;
}

.check-list.green i {
    color: var(--primary);
}

.check-list.red i {
    color: #ef4444;
}

/* Benefits */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.benefit-num {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.benefit-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.75;
}

/* Audience */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.audience-card h3,
.module-card h3,
.security-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.audience-card p,
.module-card p,
.security-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 13px;
}

/* Modules tabs */
.module-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 6px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto  auto;
    margin-left: auto;
    margin-right: auto;
}

.module-tab {
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.module-tab:hover {
    color: var(--primary);
}

.module-tab.active {
    background: var(--bg);
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.module-panel {
    display: none;
}

.module-panel.active {
    display: block;
    animation: fadeUp 0.35s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.module-card {
    min-height: 176px;
}

/* Workflow */
.workflow {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    counter-reset: step;
}

.workflow-step {
    position: relative;
    padding: 24px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    transition: var(--transition);
}

.workflow-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.workflow-step::before {
    counter-increment: step;
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 14px;
}

.workflow-step h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.workflow-step p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

/* Roles */
.role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.role-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.role-subtitle {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.role-list {
    list-style: none;
    display: grid;
    gap: 8px;
}

.role-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 13px;
}

.role-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary);
    font-size: 11px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Scenarios */
.scenario-grid,
.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.scenario-time {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
}

.scenario-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.scenario-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.scenario-card ul {
    padding-inline-start: 18px;
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 13px;
}

.scenario-card li {
    margin-bottom: 5px;
}

/* Demo flow */
.demo-flow-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.demo-flow-card {
    position: relative;
    padding: 24px 18px;
    overflow: hidden;
    transition: var(--transition);
}

.demo-flow-card > span {
    position: absolute;
    inset-block-start: 16px;
    inset-inline-end: 18px;
    color: rgba(15, 118, 110, 0.14);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.demo-flow-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 7px;
}

.demo-flow-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

/* Compare */
.compare-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg);
    box-shadow: var(--shadow);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.compare-table th,
.compare-table td {
    padding: 16px 18px;
    text-align: start;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.55;
}

.compare-table th {
    background: var(--bg-muted);
    font-weight: 700;
    font-size: 13px;
}

.compare-table tr:last-child td {
    border-bottom: 0;
}

.compare-table .highlight {
    background: rgba(15, 118, 110, 0.06);
    color: var(--primary);
    font-weight: 600;
}

.compare-table th.highlight {
    background: rgba(15, 118, 110, 0.12);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1060px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    padding: 32px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 20px 60px rgba(15, 118, 110, 0.15);
    transform: translateY(-8px);
}

.pricing-card.featured:hover {
    transform: translateY(-12px);
    box-shadow: 0 0 0 1px var(--primary), 0 28px 70px rgba(15, 118, 110, 0.22);
}

.popular-badge {
    position: absolute;
    inset-block-start: -14px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.3);
    white-space: nowrap;
}

html[dir="rtl"] .popular-badge {
    transform: translateX(50%);
}

.pricing-badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
}

.pricing-badge.muted {
    color: var(--text-secondary);
    background: var(--bg-muted);
}

.pricing-head {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.pricing-head h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.price strong {
    color: var(--text);
    font-size: clamp(36px, 4.5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.plan-currency,
.plan-duration {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.pricing-list {
    list-style: none;
    display: grid;
    gap: 0;
    margin-bottom: auto;
    padding: 4px 0;
}

.pricing-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.pricing-list li:last-child {
    border-bottom: none;
}

.pricing-list i {
    color: var(--primary);
    font-size: 13px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    flex-shrink: 0;
}

.pricing-btn {
    width: 100%;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.pricing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.3);
}

.pricing-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.pricing-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Currency Switcher */
.currency-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 16px;
    background: var(--bg-muted);
    border-radius: 999px;
    width: fit-content;
    margin-inline: auto;
}

.currency-btn {
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.currency-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.currency-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(15, 118, 110, 0.25);
}

/* Duration Toggle */
.duration-toggle {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    background: var(--bg-muted);
    border-radius: 999px;
    padding: 4px;
    border: 1px solid var(--border);
}

.duration-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.duration-btn:hover {
    color: var(--text);
    background: var(--bg);
}

.duration-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(15, 118, 110, 0.3);
}

/* Price Original (strikethrough) */
.price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 500;
    opacity: 0.7;
}

.price-original::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
}

/* Lead form */
.lead-panel {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 34px;
    padding: 36px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.1), transparent 38%),
        var(--bg);
    box-shadow: var(--shadow);
}

.lead-copy h2 {
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 12px;
}

.lead-copy p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

.lead-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.lead-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.lead-form .full {
    grid-column: 1 / -1;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    padding: 12px 14px;
    outline: none;
    transition: var(--transition);
}

.lead-form textarea {
    resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Mid CTA */
.cta-mid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 44px 48px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(15, 118, 110, 0.18);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 42%),
        linear-gradient(135deg, var(--primary-light), var(--bg));
}

.cta-mid-content h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    margin-bottom: 8px;
}

.cta-mid-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
    max-width: 520px;
}

.cta-mid-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

/* Security */
.security-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Start steps */
.start-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.start-num {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    margin-bottom: 14px;
}

.start-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.start-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.75;
}

/* FAQ */
.faq-list {
    display: grid;
    gap: 10px;
    max-width: 820px;
    margin: 0 auto;
}

.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-align: inherit;
}

.faq-question i {
    transition: var(--transition);
    color: var(--text-muted);
    font-size: 12px;
    flex-shrink: 0;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    display: none;
    padding: 0 20px 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 14px;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open {
    border-color: rgba(15, 118, 110, 0.22);
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.06);
}

/* Final CTA */
.cta-panel {
    padding: 64px 48px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 40%),
        linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #115e59 100%);
    color: #fff;
    border: 0;
    text-align: center;
}

.cta-kicker {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

.cta-panel h2 {
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-panel p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto 28px;
}

.cta-panel .hero-actions {
    justify-content: center;
    margin-bottom: 0;
}

.cta-panel .btn-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

.cta-panel .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* Footer */
.footer {
    padding: 48px 0 0;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    background: var(--bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 36px;
}

.footer-brand strong {
    display: block;
    color: var(--text);
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-col h4 {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 12px;
    background: #25d366;
    color: #fff !important;
    font-weight: 600;
}

.footer-cta:hover {
    color: #fff !important;
    filter: brightness(0.95);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 18px 0 28px;
    border-top: 1px solid var(--border);
    font-size: 13px;
}

/* Floats */
.whatsapp-float {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1100;
    min-width: 56px;
    height: 56px;
    padding: 0 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: #25d366;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
    font-size: 24px;
    transition: var(--transition);
}

.whatsapp-float .wa-tip {
    font-size: 13px;
    font-weight: 700;
    display: none;
}

.whatsapp-float:hover {
    color: #fff;
    transform: translateY(-2px);
}

.whatsapp-float:hover .wa-tip {
    display: inline;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1100;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.28);
    font-size: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    color: #fff;
    transform: translateY(-2px);
}

.mobile-sticky-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1200;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .mobile-sticky-cta {
    background: rgba(11, 18, 32, 0.92);
}

.mobile-sticky-cta a {
    min-height: 44px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px) {
    .nav-links a {
        padding: 8px 8px;
        font-size: 12px;
    }

    .hero-grid {
        gap: 36px;
    }

    .hero-float-1 {
        inset-inline-start: 0;
    }

    .hero-float-2 {
        inset-inline-end: 0;
    }
}

@media (max-width: 1024px) {
    .hero-grid,
    .split-section,
    .cta-mid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cta-mid {
        text-align: center;
        flex-direction: column;
    }

    .cta-mid-content p {
        margin-inline: auto;
    }

    .cta-mid-actions {
        justify-content: center;
    }

    .scenario-grid,
    .security-grid,
    .role-grid,
    .benefit-grid,
    .demo-flow-grid,
    .start-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .module-grid,
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .pricing-card.featured {
        grid-column: span 2;
        max-width: 500px;
        margin-inline: auto;
    }

    .workflow {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-float {
        display: none;
    }

    .footer-brand p {
        max-width: none;
    }
}

@media (max-width: 820px) {
    .nav-inner {
        min-height: 62px;
        justify-content: space-between;
        gap: 10px;
    }

    .brand {
        flex: 1 1 auto;
    }

    .nav-actions {
        flex: 0 0 auto;
    }

    .menu-btn {
        display: inline-flex;
    }

    .nav-links {
        position: fixed;
        top: 62px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--bg);
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 80px);
        overflow: auto;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        border-radius: 10px;
        padding: 12px 14px;
        font-size: 14px;
    }

    .hero {
        padding-top: 48px;
    }

    .stats-grid,
    .module-grid,
    .audience-grid,
    .benefit-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .role-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 32px, 1160px);
    }

    .nav-inner {
        min-height: 58px;
        gap: 8px;
    }

    .brand span {
        max-width: clamp(72px, 24vw, 150px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-links {
        top: 58px;
        left: 12px;
        right: 12px;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        padding-top: 36px;
        padding-bottom: 40px;
    }

    .hero h1 {
        font-size: clamp(32px, 10vw, 44px);
    }

    html[lang="ar"] .hero h1 {
        font-size: clamp(34px, 10vw, 46px);
        line-height: 1.18;
    }

    .hero-lead {
        font-size: 15px;
    }

    .scenario-grid,
    .security-grid,
    .module-grid,
    .role-grid,
    .audience-grid,
    .benefit-grid,
    .demo-flow-grid,
    .start-grid,
    .workflow,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-actions,
    .cta-panel .hero-actions,
    .cta-mid-actions,
    .section-cta {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-cta-primary,
    .btn-ghost {
        width: 100%;
    }

    .cta-panel,
    .cta-mid {
        padding: 32px 20px;
    }

    .problem-box,
    .solution-box {
        padding: 22px;
    }

    .module-tabs {
        width: 100%;
        justify-content: stretch;
    }

    .module-tab {
        flex: 1 1 calc(50% - 8px);
        text-align: center;
    }

    .hero-proof {
        gap: 12px;
    }

    .proof-divider {
        display: none;
    }

    .whatsapp-float {
        left: 14px;
        bottom: 14px;
        min-width: 50px;
        height: 50px;
        padding: 0;
        font-size: 22px;
    }

    .whatsapp-float .wa-tip {
        display: none !important;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pricing-grid,
    .lead-panel,
    .lead-form {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 28px 22px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-3px);
    }

    .pricing-head h3 {
        font-size: 22px;
    }

    .price strong {
        font-size: clamp(32px, 6vw, 44px);
    }

    .duration-toggle {
        flex-wrap: wrap;
    }

    .duration-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }

    .currency-switch {
        flex-wrap: wrap;
        gap: 6px;
    }

    .currency-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .lead-panel {
        padding: 24px;
    }

    .mobile-sticky-cta {
        display: grid;
    }

    body {
        padding-bottom: 76px;
    }

    .whatsapp-float,
    .back-to-top {
        bottom: 86px;
    }
}

@media (max-width: 420px) {
    .brand span {
        display: none;
    }

    .brand img {
        width: 34px;
        height: 34px;
    }

    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== Legal Pages ==================== */
.legal-shell {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
    padding: 36px 0 48px;
}

.legal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

[data-theme="dark"] .legal-topbar {
    background: rgba(11, 18, 32, 0.9);
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
}

.legal-brand img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: contain;
}

.language-link {
    padding: 9px 16px;
    border-radius: 10px;
    background: var(--primary-light);
    border: 1px solid rgba(15, 118, 110, 0.14);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}

.language-link:hover {
    background: var(--primary);
    color: #fff;
}

.legal-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 6px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow-x: auto;
    width: fit-content;
    margin-inline: auto;
}

.legal-nav a {
    flex: 0 0 auto;
    padding: 10px 16px;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.legal-nav a:hover {
    color: var(--primary);
}

.legal-nav a.active {
    background: var(--bg);
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .legal-nav a.active {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.legal-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    transition: var(--transition);
}

.legal-card:hover {
    box-shadow: var(--shadow);
}

.legal-hero {
    padding: 48px 40px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    display: none;
}

.legal-hero h1 {
    position: relative;
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

html[lang="ar"] .legal-hero h1 {
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.legal-hero p {
    position: relative;
    max-width: 800px;
    margin: 14px 0 0;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Main hero — first card only */
.legal-hero-main {
    padding: 64px 48px;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: var(--radius-lg);
}

.legal-hero-main::before {
    display: none;
}

.legal-hero-main h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.03em;
    color: var(--text);
}

html[lang="ar"] .legal-hero-main h1 {
    letter-spacing: -0.01em;
}

.legal-hero-main p {
    color: var(--text-secondary);
    font-size: 17px;
}

.legal-content {
    padding: 32px 36px 38px;
}

.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 13px;
    font-weight: 700;
}

.legal-summary,
.legal-note {
    margin-bottom: 22px;
    padding: 18px 20px;
    border-radius: var(--radius);
    line-height: 1.8;
    font-size: 14px;
}

.legal-summary {
    border-inline-start: 4px solid var(--primary);
    background: var(--primary-light);
}

[data-theme="dark"] .legal-summary {
    background: rgba(15, 118, 110, 0.1);
}

.legal-note {
    border: 1px solid rgba(234, 179, 8, 0.2);
    color: #a16207;
    background: rgba(234, 179, 8, 0.06);
}

[data-theme="dark"] .legal-note {
    color: #fbbf24;
    background: rgba(234, 179, 8, 0.08);
}

.legal-section {
    margin-top: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-muted);
    transition: var(--transition);
}

.legal-section:hover {
    border-color: rgba(15, 118, 110, 0.18);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .legal-section:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.legal-section h2 {
    margin: 0 0 10px;
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--text);
}

.legal-section h3 {
    margin: 18px 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.legal-section p,
.legal-section li {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 14px;
}

.legal-section p { margin: 8px 0; }

.legal-section ul {
    margin: 8px 0 0;
    padding-inline-start: 1.35rem;
}

.table-wrap {
    margin-top: 14px;
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg);
}

.legal-section table {
    width: 100%;
    border-collapse: collapse;
}

.legal-section th,
.legal-section td {
    padding: 14px 18px;
    text-align: start;
    vertical-align: top;
    line-height: 1.6;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.legal-section th {
    color: var(--text);
    background: var(--bg-muted);
    font-weight: 700;
    font-size: 13px;
}

.legal-section td {
    color: var(--text-secondary);
}

.legal-section tr:last-child td {
    border-bottom: 0;
}

.legal-divider {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.legal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition);
}

.legal-footer a {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.legal-footer a:hover {
    color: var(--primary-hover);
}

@media (max-width: 820px) {
    .legal-shell {
        width: min(100% - 24px, 1160px);
        padding: 16px 0 32px;
    }

    .legal-topbar {
        padding: 14px 16px;
        border-radius: var(--radius);
    }

    .legal-hero, .legal-content {
        padding: 24px 18px;
    }

    .legal-card {
        border-radius: var(--radius);
    }

    .legal-section {
        padding: 18px 16px;
    }
}

@media (max-width: 620px) {
    .legal-shell {
        width: min(100% - 20px, 1160px);
        padding: 12px 0 24px;
    }

    .legal-nav {
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .legal-nav a {
        padding: 8px 12px;
        font-size: 12px;
    }

    .legal-hero {
        padding: 22px 16px;
    }

    .legal-content {
        padding: 20px 16px 24px;
    }
}


/* Shared RuxMed typography */
html[lang="ar"],html[lang="ar"] body{font-family:"Noto Kufi Arabic",Tahoma,sans-serif;font-weight:400}
html[lang="en"],html[lang="en"] body{font-family:"Inter",Arial,sans-serif}
body :is(button,input,select,textarea){font-family:inherit}
html[lang="ar"] body :is(h1,h2,h3,h4,h5,h6,strong,b){font-weight:400}
html[lang="ar"] body :is(p,a,span,li,label,small,td,th,button,input,textarea,select){font-family:inherit}
