/**
 * Public info pages — uses design tokens from theme.css
 */
html[dir="rtl"] body.public-info-page {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] body.public-info-page {
    direction: ltr;
    text-align: left;
}

.public-info-page {
    color: var(--eman-text-dark);
    line-height: var(--line-height-body);
    background-color: var(--eman-bg);
}

/* Fixed site header — reserve space so hero/content is not hidden */
.public-info-page .main-content:has(> .header.-type-4) > .content-wrapper {
    padding-top: var(--eman-site-header-h, 80px);
}

.public-info-page h1,
.public-info-page h2,
.public-info-page h3,
.public-info-page h4 {
    font-weight: var(--font-weight-bold);
    color: var(--eman-purple);
}

.public-info-page .rtl-text,
.public-info-page .rtl-text-center {
    font-family: inherit;
    direction: inherit;
    text-align: inherit;
}

.public-info-page .lucide-icon {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 3px;
}

/* Preloader */
.public-info-page .preloader.js-preloader .preloader__bg {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--eman-purple);
}

.public-info-page .logo-loading-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-info-page .loading-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: var(--space-2) solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: eman-spin 1.5s linear infinite;
}

@keyframes eman-spin { to { transform: rotate(360deg); } }

.public-info-page .platform-logo { max-width: 80px; height: auto; }

/* Hero */
.lesson-hero-section {
    background-color: var(--eman-bg-light);
    border-bottom: 1px solid var(--eman-border-light);
    position: relative;
    overflow: hidden;
}

.lesson-breadcrumbs { font-size: 0.9rem; color: var(--eman-text-light); }
.lesson-breadcrumbs a { color: var(--eman-purple-light); }
.lesson-breadcrumbs span { color: var(--eman-text-dark); }

/* Content */
.lesson-content-section { padding: var(--space-section-y) 0; }
.lesson-content-section h2 {
    border-bottom: 2px solid var(--eman-purple-light);
    padding-bottom: 10px;
    display: inline-block;
}

.lesson-content-box { margin-bottom: var(--space-6); }
.lesson-content-box .text-content { font-size: 1.05rem; line-height: 1.8; }
.lesson-content-box .text-content.rtl p,
.lesson-content-box .text-content.rtl li { direction: rtl; text-align: right; }
.lesson-content-box .text-content.ltr p,
.lesson-content-box .text-content.ltr li { direction: ltr; text-align: left; }

.about-image-text-block img {
    width: 100%;
    height: 450px;
    object-fit: contain;
}

.lesson-feature-list {
    list-style: none;
    padding: 0;
    margin-top: var(--space-4);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.lesson-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    background: var(--eman-bg-light);
    padding: var(--space-3);
    border-radius: var(--radius-sm);
}

/* Accordion */
.accordion.-type-3 {
    border: 1px solid var(--eman-border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.accordion.-type-3 .accordion__item { border-bottom: 1px solid var(--eman-border-light); }
.accordion.-type-3 .accordion__item:last-child { border-bottom: none; }

.accordion.-type-3 .accordion__button {
    padding: var(--space-3) var(--space-4);
    background: var(--eman-bg);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.accordion.-type-3 .accordion__button:hover {
    background: var(--eman-bg-light);
}

.accordion.-type-3 .accordion__button:focus-visible {
    outline: none;
    box-shadow: inset var(--focus-ring);
}

.accordion.-type-3 .accordion__title {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--eman-purple);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-align: start;
}

.accordion-title-icon {
    flex-shrink: 0;
    margin-inline-end: var(--space-1);
}

.accordion-title-icon--danger {
    color: var(--eman-error);
}

.accordion.-type-3 .accordion__icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--eman-purple);
}

.accordion.-type-3 .accordion__icon .icon-plus,
.accordion.-type-3 .accordion__icon .icon-minus {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.accordion.-type-3 .accordion__icon .icon-plus::before,
.accordion.-type-3 .accordion__icon .icon-minus::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 2px;
    box-sizing: border-box;
}

.accordion.-type-3 .accordion__icon .icon-minus::before {
    height: 2px;
    border: none;
    background: currentColor;
    border-radius: 1px;
}

.accordion.-type-3 .accordion__icon .icon-minus {
    opacity: 0;
}

.accordion.-type-3 .accordion__item.is-active .accordion__icon .icon-plus {
    opacity: 0;
}

.accordion.-type-3 .accordion__item.is-active .accordion__icon .icon-minus {
    opacity: 1;
}

.lesson-content-section h2.no-border::after,
.features-section h2.no-border::after {
    display: none;
}

.faq-section-heading {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--eman-purple);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.faq-section-heading .lucide-icon {
    color: var(--eman-purple-light);
    width: 28px;
    height: 28px;
}

.info-page-content {
    width: 100%;
}

.info-hero--centered {
    text-align: center;
}

.info-hero--centered .lesson-breadcrumbs {
    justify-content: center;
}

.quick-links-section {
    padding-top: var(--space-section-y-sm);
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-2);
    text-decoration: none;
    color: inherit;
}

.quick-link-card .lucide-icon {
    width: 40px;
    height: 40px;
    color: var(--eman-purple);
    margin-bottom: var(--space-1);
}

.quick-link-card h4 {
    color: var(--eman-purple);
    font-weight: var(--font-weight-semibold);
    margin: 0;
}

.contact-card-v2 {
    text-align: center;
    padding: var(--space-5) var(--space-4);
    border-radius: var(--radius-md);
    background: var(--eman-bg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--eman-border-light);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-card-v2:hover {
    border-color: var(--eman-purple-light);
}

.accordion.-type-3 .accordion__content {
    background: var(--eman-bg-light);
    padding: var(--space-4) var(--space-5);
}

.privacy-summary-box {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.08), rgba(0, 188, 212, 0.08));
    border: 1px solid var(--eman-border-light);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-5);
}

/* Features */
.features-section {
    padding: var(--space-section-y) 0;
    background: var(--eman-bg-light);
}

.feature-card {
    text-align: center;
    padding: var(--space-4) var(--space-3);
    border-radius: var(--radius-md);
    background: var(--eman-bg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--eman-border-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(calc(-1 * var(--space-2)));
    box-shadow: var(--shadow-elevated);
}

.feature-card-button {
    margin-top: auto;
    padding-top: var(--space-3);
}

.feature-title {
    color: var(--eman-purple);
    margin-bottom: var(--space-2);
    font-weight: var(--font-weight-semibold);
}

.feature-text {
    font-size: 0.95rem;
    color: var(--eman-text-light);
}

.feature-icon {
    color: var(--eman-purple);
    background: rgba(106, 27, 154, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.feature-icon .lucide-icon {
    width: 36px;
    height: 36px;
}

/* Contact form — extends tokenized form pattern */
.contact-form-container {
    background-color: var(--eman-bg);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevated);
    border: 1px solid var(--eman-border-light);
}

.contact-form .form-group { margin-bottom: var(--space-3); }

.contact-form .form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: var(--font-weight-semibold);
    color: var(--eman-text-dark);
}

.contact-form .form-input,
.contact-form .form-textarea {
    width: 100%;
    padding: var(--space-3) var(--input-padding-x);
    border: 1px solid var(--eman-border-light);
    border-radius: var(--input-radius);
    background-color: var(--eman-bg-light);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    font-family: inherit;
}

.contact-form .form-input {
    height: var(--input-height);
}

.contact-form .form-textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form .form-input:focus,
.contact-form .form-textarea:focus {
    background-color: var(--eman-bg);
    border-color: var(--input-focus);
    box-shadow: var(--focus-ring);
    outline: none;
}

.contact-form .form-input:disabled,
.contact-form .form-textarea:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.map-section {
    padding: 0;
    overflow: hidden;
}

.map-iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-block: 1px solid var(--eman-border-light);
}

.eman-ltr-value {
    direction: ltr;
    unicode-bidi: isolate;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--eman-text-dark);
}

.quick-link-card {
    display: block;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    background: var(--eman-bg);
    border: 1px solid var(--eman-border-light);
    height: 100%;
    transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.quick-link-card:hover {
    border-color: var(--eman-purple-light);
    transform: translateY(calc(-1 * var(--space-1)));
    box-shadow: var(--shadow-elevated);
}

.developer-card {
    text-align: center;
    padding: var(--space-5) var(--space-4);
    border-radius: var(--radius-md);
    background: var(--eman-bg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--eman-border-light);
    border-top: 4px solid var(--eman-purple);
}

.developer-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
    background: rgba(106, 27, 154, 0.1);
    color: var(--eman-purple);
}

@media (max-width: 991px) {
    .lesson-feature-list { grid-template-columns: 1fr; }
    .about-image-text-block img { height: 350px; margin-bottom: var(--space-4); }
}

@media (max-width: 767px) {
    .lesson-content-section,
    .features-section { padding: var(--space-section-y-sm) 0; }
    .lesson-hero-section {
        padding-top: clamp(20px, 5vw, 40px);
        padding-bottom: clamp(20px, 4vw, 32px);
    }
    .developer-buttons-container { flex-direction: column; align-items: stretch; }
    .developer-buttons-container .button { width: 100%; justify-content: center; }
    .contact-form-container { padding: var(--space-4) var(--space-3); }
    .quick-link-card { padding: var(--space-3); }
    .faq-section-heading { font-size: 1.25rem; }
    .accordion.-type-3 .accordion__button { padding: var(--space-3); }
    .info-page-toc-col { display: none; }
    .info-page-toc-mobile { display: block; margin-bottom: var(--space-4); }
}

.info-page-toc-mobile { display: none; }

.info-page-toc-mobile__label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--eman-text-muted);
}

.info-page-toc-mobile__select {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--eman-border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--eman-bg);
    color: inherit;
}

.info-page-toc-mobile__select:focus {
    outline: none;
    border-color: var(--eman-purple);
    box-shadow: var(--focus-ring);
}

/* FAQ search — help center */
.help-faq-search {
    margin-bottom: var(--space-4);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.help-faq-search__label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--eman-text-muted);
}

.help-faq-search__wrap {
    position: relative;
}

.help-faq-search__wrap .lucide-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--eman-text-muted);
    pointer-events: none;
}

html[dir="ltr"] .help-faq-search__wrap .lucide-icon { left: 14px; }
html[dir="rtl"] .help-faq-search__wrap .lucide-icon { right: 14px; }

.help-faq-search__input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--eman-border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--eman-bg);
}

html[dir="rtl"] .help-faq-search__input {
    padding: 12px 44px 12px 16px;
}

.help-faq-search__input:focus {
    outline: none;
    border-color: var(--eman-purple);
    box-shadow: var(--focus-ring);
}

.help-faq-search__empty {
    margin: var(--space-2) 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--eman-error);
}

.help-faq-search__empty.hidden { display: none; }

/* Sticky TOC — terms / privacy */
.info-page-with-toc {
    align-items: flex-start;
}

.info-page-toc {
    position: sticky;
    top: 100px;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    background: var(--eman-bg-subtle, #f1f1f7);
    border: 1px solid var(--eman-border-light);
}

.info-page-toc__title {
    margin: 0 0 var(--space-2);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--eman-purple);
}

.info-page-toc__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-page-toc__list a {
    display: block;
    padding: 6px 0;
    font-size: 0.88rem;
    color: var(--eman-text-dark);
    text-decoration: none;
    line-height: 1.4;
}

.info-page-toc__list a:hover {
    color: var(--eman-purple);
}

.help-guide-steps ol {
    text-align: start;
    padding-inline-start: 1.25rem;
    margin: 0;
    color: var(--eman-text-muted, #64748b);
}

.help-guide-steps li {
    margin-bottom: 0.35rem;
    line-height: 1.55;
}

.help-guide-card .help-guide-steps a {
    color: var(--eman-purple);
}

/* ── Legal pages (terms / privacy) ─────────────────── */
.legal-hero {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.06) 0%, rgba(0, 188, 212, 0.05) 55%, #fff 100%);
    border-bottom: 1px solid var(--eman-border-light);
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(106, 27, 154, 0.08), transparent 55%);
    pointer-events: none;
}

.legal-hero h1 {
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    line-height: 1.25;
    margin-top: 12px !important;
}

.legal-hero .lesson-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
}

.legal-hero .lesson-breadcrumbs__sep {
    opacity: 0.45;
}

.legal-hero .text-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px !important;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem !important;
    font-weight: 600;
    color: var(--eman-purple) !important;
    background: rgba(106, 27, 154, 0.08);
    border: 1px solid rgba(106, 27, 154, 0.12);
}

.legal-content-section {
    padding-top: clamp(28px, 4vw, 48px);
    padding-bottom: clamp(32px, 5vw, 56px);
}

.legal-content-section .privacy-summary-box {
    position: relative;
    padding: 20px 22px;
    margin-bottom: 24px;
    border-radius: 14px;
    border: 1px solid rgba(106, 27, 154, 0.12);
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.07), rgba(0, 188, 212, 0.05));
    box-shadow: 0 8px 24px rgba(106, 27, 154, 0.06);
}

.legal-content-section .privacy-summary-box h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--eman-purple);
}

.legal-content-section .privacy-summary-box p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--eman-text-dark);
}

.legal-content-section .accordion.-type-3 {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-content-section .accordion.-type-3 .accordion__item {
    scroll-margin-top: calc(var(--eman-site-header-h, 80px) + 16px);
    border: 1px solid var(--eman-border-light);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.legal-content-section .accordion.-type-3 .accordion__item.is-active {
    border-color: rgba(106, 27, 154, 0.22);
    box-shadow: 0 8px 24px rgba(106, 27, 154, 0.08);
}

.legal-content-section .accordion.-type-3 .accordion__button {
    padding: 14px 18px;
    background: #fff;
}

.legal-content-section .accordion.-type-3 .accordion__button:hover {
    background: rgba(106, 27, 154, 0.03);
}

.legal-content-section .accordion.-type-3 .accordion__title {
    font-size: 1rem;
    line-height: 1.45;
    gap: 10px;
}

.legal-content-section .accordion.-type-3 .accordion__content {
    padding: 0 18px 18px;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.legal-content-section .accordion.-type-3 .accordion__content p,
.legal-content-section .accordion.-type-3 .accordion__content li {
    font-size: 0.94rem;
    line-height: 1.75;
    color: var(--eman-text-dark);
}

.legal-content-section .accordion.-type-3 .accordion__content ul {
    padding-inline-start: 1.2rem;
    margin: 10px 0;
}

.legal-content-section .accordion.-type-3 .accordion__content b,
.legal-content-section .accordion.-type-3 .accordion__content strong {
    color: var(--eman-purple);
}

.legal-content-section .info-page-toc {
    top: calc(var(--eman-site-header-h, 80px) + 16px);
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--eman-border-light);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.legal-content-section .info-page-toc__title {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--eman-border-light);
}

.legal-content-section .info-page-toc__list a {
    padding: 8px 10px;
    margin: 0 -10px;
    border-radius: 8px;
    font-size: 0.86rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.legal-content-section .info-page-toc__list a:hover {
    background: rgba(106, 27, 154, 0.06);
    color: var(--eman-purple);
}

.legal-content-section .info-page-toc-mobile {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--eman-border-light);
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

@media (max-width: 767px) {
    .legal-hero {
        padding-top: clamp(16px, 4vw, 28px) !important;
        padding-bottom: clamp(14px, 3vw, 22px) !important;
    }

    .legal-hero h1 {
        font-size: 1.5rem;
    }

    .legal-content-section .accordion.-type-3 .accordion__button {
        padding: 12px 14px;
    }

    .legal-content-section .accordion.-type-3 .accordion__title {
        font-size: 0.95rem;
    }

    .legal-content-section .accordion.-type-3 .accordion__content {
        padding: 0 14px 14px;
    }
}

html.-dark-mode .legal-hero {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.14) 0%, #1a2230 100%);
}

html.-dark-mode .legal-content-section .accordion.-type-3 .accordion__item,
html.-dark-mode .legal-content-section .accordion.-type-3 .accordion__button,
html.-dark-mode .legal-content-section .accordion.-type-3 .accordion__content,
html.-dark-mode .legal-content-section .info-page-toc,
html.-dark-mode .legal-content-section .info-page-toc-mobile {
    background: #1a2230;
    border-color: #334155;
}

html.-dark-mode .legal-content-section .privacy-summary-box {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.16), rgba(0, 188, 212, 0.08));
    border-color: #334155;
}

html.-dark-mode .legal-content-section .privacy-summary-box p,
html.-dark-mode .legal-content-section .accordion.-type-3 .accordion__content p,
html.-dark-mode .legal-content-section .accordion.-type-3 .accordion__content li {
    color: rgba(255, 255, 255, 0.88);
}
