/* صفحه‌های متنی: سوالات متداول، قوانین، بازگشت کالا، حریم خصوصی و خطاها
   (همراه app.css بارگذاری می‌شود) */

.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.container.page { max-width: 860px; padding-top: 28px; }

.page__crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.page__crumbs a:hover { color: var(--accent); }

.page__head { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.page__head h1 { margin-bottom: 6px; font-size: 28px; }
.page__head p { margin: 0; font-size: 15.5px; }

/* ============ متن قوانین ============ */
.legal h2 { margin: 28px 0 8px; font-size: 18px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 10px; color: #3f3c38; font-size: 15px; }
.legal ul, .legal ol { margin: 0 0 10px; padding-inline-start: 22px; color: #3f3c38; font-size: 15px; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: 4px; }
.legal a, .faq-item a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ============ سوالات متداول ============ */
.faq-group { margin-bottom: 30px; }
.faq-group h2 { margin-bottom: 12px; font-size: 18px; }

.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq-item + .faq-item { margin-top: 10px; }
.faq-item summary {
    position: relative;
    padding: 14px 18px;
    padding-inline-end: 44px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    inset-inline-end: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 400;
    color: var(--accent);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] { border-color: #dcd5cb; background: var(--bg-soft); }
.faq-item p { margin: 0; padding: 0 18px 16px; color: #4a4742; font-size: 14.5px; }

/* ============ کادر کمک ============ */
.page__help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-soft);
}
.page__help strong { display: block; font-size: 15.5px; }
.page__help .muted { font-size: 13.5px; }
.page__help-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============ صفحه‌های خطا (۴۰۴، ۴۱۹) ============ */
.notice { padding-block: 80px; text-align: center; max-width: 560px; }
.notice__code { display: block; margin-bottom: 8px; font-size: 64px; font-weight: 800; line-height: 1.2; color: var(--accent); }
.notice h1 { margin-bottom: 10px; font-size: 24px; }
.notice p { margin: 0 0 26px; }
.notice__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

@media (max-width: 520px) {
    .page__head h1 { font-size: 23px; }
    .notice { padding-block: 56px; }
    .notice__code { font-size: 52px; }
}
