/* صفحات ثابت لوما: لایهٔ مستقل و پیشونددار تا با استایل فروشگاه،
   سبد خرید و پنل مدیریت تداخل نداشته باشد. رنگ‌ها از توکن‌های
   storefront-glass می‌آیند و حالت شب به‌صورت خودکار پوشش داده می‌شود. */
.static-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(26px, 4vw, 52px) clamp(30px, 4vw, 46px);
    border-bottom: 1px solid var(--sg-border, rgb(107 113 101 / 12%));
    background:
        radial-gradient(circle at 88% 8%, rgb(217 160 63 / 18%), transparent 26rem),
        linear-gradient(135deg, rgb(255 255 255 / 76%), rgb(255 255 255 / 34%));
}

html[data-theme=night] .static-hero {
    background:
        radial-gradient(circle at 88% 8%, rgb(232 187 96 / 12%), transparent 26rem),
        linear-gradient(135deg, rgb(46 49 42 / 88%), rgb(34 36 31 / 72%));
}

.static-hero::after {
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: min(220px, 34vw);
    height: 4px;
    border-radius: 0 4px 0 0;
    background: linear-gradient(90deg, var(--sg-accent, #1f5f4b), #d9a03f);
    content: '';
}

.static-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: clamp(18px, 3vw, 28px);
    color: var(--sg-muted, #6b7165);
    font-size: 13px;
    line-height: 1.8;
}

.static-breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: var(--sg-accent, #1f5f4b);
    font-weight: 800;
    text-decoration: none;
}

.static-breadcrumb a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.static-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(22px, 4vw, 52px);
}

.static-kicker,
.static-section-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 12px;
    border: 1px solid rgb(31 95 75 / 16%);
    border-radius: 999px;
    background: rgb(31 95 75 / 9%);
    color: var(--sg-accent, #1f5f4b);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.7;
}

html[data-theme=night] .static-kicker,
html[data-theme=night] .static-section-kicker {
    border-color: rgb(130 184 154 / 24%);
    background: rgb(130 184 154 / 12%);
}

.static-hero h1 {
    margin: 13px 0 0;
    color: var(--sg-ink, #272b25);
    font-family: var(--font-display, Estedad, Vazirmatn, sans-serif);
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -.02em;
}

.static-hero p {
    max-width: 72ch;
    margin: 14px 0 0;
    color: var(--sg-muted, #6b7165);
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 2.05;
}

.static-hero-mark {
    display: grid;
    place-items: center;
    width: clamp(92px, 12vw, 136px);
    aspect-ratio: 1;
    border: 1px solid rgb(31 95 75 / 18%);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgb(217 160 63 / 20%) 0 34%, transparent 35%),
        radial-gradient(circle, rgb(255 255 255 / 72%), rgb(255 255 255 / 18%));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 85%), 0 18px 40px rgb(39 43 37 / 12%);
    color: var(--sg-accent, #1f5f4b);
}

html[data-theme=night] .static-hero-mark {
    border-color: rgb(130 184 154 / 26%);
    background:
        radial-gradient(circle, rgb(232 187 96 / 16%) 0 34%, transparent 35%),
        radial-gradient(circle, rgb(56 58 50 / 92%), rgb(46 49 42 / 70%));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%), 0 18px 40px rgb(0 0 0 / 30%);
}

.static-hero-mark svg {
    width: 54%;
    height: 54%;
}

.static-page {
    display: grid;
    gap: clamp(24px, 4vw, 44px);
    padding-block: clamp(28px, 4vw, 46px) clamp(56px, 7vw, 90px);
}

.static-panel {
    min-width: 0;
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid var(--sg-border, rgb(107 113 101 / 12%));
    border-radius: var(--sg-radius-lg, 20px);
    background: var(--sg-surface, rgb(255 255 255 / 78%));
    box-shadow: var(--sg-inset, inset 0 1px 0 rgb(255 255 255 / 88%)), var(--sg-shadow, 0 12px 32px rgb(39 43 37 / 10%));
    -webkit-backdrop-filter: blur(var(--sg-blur, 12px)) saturate(150%);
    backdrop-filter: blur(var(--sg-blur, 12px)) saturate(150%);
}

.static-panel h2,
.static-panel h3 {
    color: var(--sg-ink, #272b25);
    font-family: var(--font-display, Estedad, Vazirmatn, sans-serif);
}

.static-panel h2 {
    margin: 12px 0 0;
    font-size: clamp(21px, 2.4vw, 28px);
    line-height: 1.55;
}

.static-section-head {
    display: grid;
    justify-items: start;
    gap: 2px;
}

.static-section-head h2 {
    margin-top: 12px;
}

.static-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    align-items: start;
    gap: clamp(18px, 3vw, 30px);
}

.static-layout--about {
    align-items: stretch;
}

.static-prose {
    font-size: 15px;
    line-height: 2.1;
}

.static-prose p {
    margin: 14px 0 0;
    color: var(--sg-muted, #6b7165);
}

.static-prose p:first-of-type {
    margin-top: 18px;
    color: var(--sg-ink, #272b25);
    font-size: 16px;
}

.static-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 26px;
}

.static-actions .primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding-inline: 22px;
    border-radius: 12px;
    text-decoration: none;
}

.static-text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    color: var(--sg-accent, #1f5f4b);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.static-text-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.static-figure {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--sg-border, rgb(107 113 101 / 12%));
    border-radius: var(--sg-radius-lg, 20px);
    background: var(--sg-surface, rgb(255 255 255 / 78%));
    box-shadow: var(--sg-inset, inset 0 1px 0 rgb(255 255 255 / 88%)), var(--sg-shadow, 0 12px 32px rgb(39 43 37 / 10%));
}

.static-figure img {
    width: 100%;
    min-height: 240px;
    flex: 1;
    object-fit: cover;
}

.static-figure figcaption {
    display: grid;
    gap: 3px;
    padding: 18px 22px;
    background: var(--sg-surface-strong, rgb(255 255 255 / 88%));
    color: var(--sg-ink, #272b25);
}

.static-figure figcaption strong {
    font-size: 14px;
}

.static-figure figcaption span {
    color: var(--sg-muted, #6b7165);
    font-size: 12px;
}

.static-values {
    display: grid;
    gap: 20px;
}

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

.static-value {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 22px;
    border: 1px solid var(--sg-border, rgb(107 113 101 / 12%));
    border-radius: var(--sg-radius, 16px);
    background: var(--sg-surface-soft, rgb(255 255 255 / 60%));
    box-shadow: var(--sg-inset, inset 0 1px 0 rgb(255 255 255 / 88%));
}

.static-value-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 4px;
    border-radius: 12px;
    background: rgb(31 95 75 / 10%);
    color: var(--sg-accent, #1f5f4b);
}

html[data-theme=night] .static-value-icon {
    background: rgb(130 184 154 / 12%);
}

.static-value-icon svg {
    width: 23px;
    height: 23px;
}

.static-value h3 {
    margin: 0;
    font-size: 16px;
}

.static-value p {
    margin: 0;
    color: var(--sg-muted, #6b7165);
    font-size: 13px;
    line-height: 1.95;
}

.static-cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: clamp(22px, 3.5vw, 34px);
    border-radius: var(--sg-radius-lg, 20px);
    background:
        radial-gradient(circle at 12% 0%, rgb(255 255 255 / 14%), transparent 24rem),
        linear-gradient(135deg, #14362b, #1f5f4b 64%, #2b6d57);
    box-shadow: 0 18px 42px rgb(20 46 37 / 26%);
    color: #f7f4ea;
}

.static-cta-band h2 {
    margin: 0;
    color: #fff;
    font-family: var(--font-display, Estedad, Vazirmatn, sans-serif);
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.5;
}

.static-cta-band p {
    margin: 7px 0 0;
    color: #cfe0d5;
    font-size: 13px;
    line-height: 1.95;
}

.static-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding-inline: 24px;
    border-radius: 12px;
    background: #f7f4ea;
    color: #1c3b2f;
    font-weight: 900;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease;
}

.static-cta-button:hover {
    transform: translateY(-2px);
    background: #fff;
}

/* فرم تماس و اطلاعات کنار آن */
.static-alert {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 14px 18px;
    border: 1px solid var(--sg-border, rgb(107 113 101 / 12%));
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.9;
}

.static-alert strong {
    font-weight: 900;
}

.static-alert--error {
    border-color: rgb(173 63 77 / 28%);
    background: rgb(173 63 77 / 8%);
    color: #8f2f3d;
}

html[data-theme=night] .static-alert--error {
    border-color: rgb(241 154 163 / 30%);
    background: rgb(241 154 163 / 9%);
    color: #f3b2ba;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr);
    align-items: start;
    gap: clamp(18px, 3vw, 30px);
}

.contact-form-panel h2 {
    font-size: clamp(22px, 2.5vw, 30px);
}

.contact-form-lead {
    margin: 8px 0 0;
    color: var(--sg-muted, #6b7165);
    font-size: 13px;
    line-height: 1.95;
}

.static-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.static-form label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: var(--sg-ink, #272b25);
    font-size: 13px;
    font-weight: 800;
}

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

.static-form :where(input, select, textarea) {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid rgb(107 113 101 / 22%);
    border-radius: 12px;
    background: var(--sg-surface-strong, rgb(255 255 255 / 88%));
    color: var(--sg-ink, #272b25);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.8;
    outline: 0;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

html[data-theme=night] .static-form :where(input, select, textarea) {
    border-color: rgb(255 245 238 / 18%);
}

.static-form textarea {
    min-height: 160px;
    resize: vertical;
}

.static-form :where(input, select, textarea)::placeholder {
    color: var(--sg-muted, #6b7165);
    opacity: .8;
}

.static-form :where(input, select, textarea):focus {
    border-color: var(--sg-accent, #1f5f4b);
    background: var(--sg-surface-strong, rgb(255 255 255 / 92%));
    box-shadow: 0 0 0 4px rgb(31 95 75 / 13%);
}

html[data-theme=night] .static-form :where(input, select, textarea):focus {
    box-shadow: 0 0 0 4px rgb(130 184 154 / 18%);
}

.static-form :where(input, select, textarea)[aria-invalid=true] {
    border-color: var(--sg-flame, #ad3f4d);
}

.static-hint {
    color: var(--sg-muted, #6b7165);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.8;
}

.static-error {
    display: block;
    color: var(--sg-flame, #ad3f4d);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.8;
}

html[data-theme=night] .static-error {
    color: #f19aa3;
}

.static-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 2px;
}

.static-form-actions .primary-button {
    min-height: 48px;
    padding-inline: 26px;
    border-radius: 12px;
}

.static-form-actions > span {
    color: var(--sg-muted, #6b7165);
    font-size: 11px;
    line-height: 1.8;
}

.contact-aside {
    display: grid;
    gap: 16px;
    min-width: 0;
}

@media (min-width: 981px) {
    .contact-aside {
        position: sticky;
        top: 24px;
    }
}

.contact-info-card {
    padding: 24px;
}

.contact-info-card h2 {
    margin-top: 10px;
    font-size: 20px;
}

.contact-list {
    display: grid;
    gap: 0;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-block: 12px;
    border-bottom: 1px solid var(--sg-border-soft, rgb(107 113 101 / 9%));
}

.contact-list li:last-child {
    border-bottom: 0;
}

.contact-list-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 11px;
    background: rgb(31 95 75 / 9%);
    color: var(--sg-accent, #1f5f4b);
}

html[data-theme=night] .contact-list-icon {
    background: rgb(130 184 154 / 12%);
}

.contact-list-icon svg {
    width: 21px;
    height: 21px;
}

.contact-list li > span:last-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.contact-list small {
    color: var(--sg-muted, #6b7165);
    font-size: 11px;
    line-height: 1.7;
}

.contact-list a {
    overflow-wrap: anywhere;
    color: var(--sg-ink, #272b25);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.contact-list a:hover {
    color: var(--sg-accent, #1f5f4b);
}

.contact-hours {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgb(217 160 63 / 11%);
}

html[data-theme=night] .contact-hours {
    background: rgb(232 187 96 / 10%);
}

.contact-hours strong {
    display: block;
    color: var(--sg-ink, #272b25);
    font-size: 12px;
}

.contact-hours p {
    margin: 4px 0 0;
    color: var(--sg-muted, #6b7165);
    font-size: 12px;
    line-height: 1.9;
}

.contact-location {
    display: grid;
    gap: 5px;
    padding-block: 14px;
    border-top: 1px solid var(--sg-border-soft, rgb(107 113 101 / 9%));
}

.contact-location:first-of-type {
    margin-top: 14px;
}

.contact-location strong {
    color: var(--sg-ink, #272b25);
    font-size: 13px;
}

.contact-location address {
    margin: 0;
    color: var(--sg-muted, #6b7165);
    font-size: 12px;
    font-style: normal;
    line-height: 1.95;
}

.contact-location a {
    width: fit-content;
    color: var(--sg-accent, #1f5f4b);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.contact-location a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.contact-socials a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--sg-border, rgb(107 113 101 / 12%));
    border-radius: 999px;
    background: var(--sg-surface-soft, rgb(255 255 255 / 60%));
    color: var(--sg-ink, #272b25);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.contact-socials a:hover {
    transform: translateY(-1px);
    border-color: rgb(31 95 75 / 30%);
    background: var(--sg-surface-strong, rgb(255 255 255 / 88%));
    color: var(--sg-accent, #1f5f4b);
}

.contact-aside-note {
    margin: 14px 0 0;
    color: var(--sg-muted, #6b7165);
    font-size: 11px;
    line-height: 1.9;
}

/* سوالات متداول */
.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: clamp(18px, 3vw, 30px);
}

.faq-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.faq-item {
    overflow: hidden;
    border: 1px solid var(--sg-border, rgb(107 113 101 / 12%));
    border-radius: 14px;
    background: var(--sg-surface-soft, rgb(255 255 255 / 60%));
    transition: border-color .18s ease, background-color .18s ease;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 58px;
    padding: 14px 18px;
    color: var(--sg-ink, #272b25);
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.85;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    background: rgb(31 95 75 / 5%);
}

.faq-item[open] {
    border-color: rgb(31 95 75 / 26%);
    background: var(--sg-surface-strong, rgb(255 255 255 / 88%));
}

.faq-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    background: rgb(31 95 75 / 9%);
    color: var(--sg-accent, #1f5f4b);
}

html[data-theme=night] .faq-toggle {
    background: rgb(130 184 154 / 12%);
}

.faq-toggle::before,
.faq-toggle::after {
    position: absolute;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: '';
    transition: transform .2s ease;
}

.faq-toggle::after {
    transform: rotate(90deg);
}

.faq-item[open] .faq-toggle::after {
    transform: rotate(0deg);
}

.faq-answer {
    padding: 0 18px 18px;
    border-top: 1px solid var(--sg-border-soft, rgb(107 113 101 / 9%));
}

.faq-answer p {
    margin: 14px 0 0;
    color: var(--sg-muted, #6b7165);
    font-size: 13px;
    line-height: 2.05;
}

.faq-aside {
    display: grid;
    gap: 16px;
}

@media (min-width: 981px) {
    .faq-aside {
        position: sticky;
        top: 24px;
    }
}

.faq-help {
    display: grid;
    justify-items: start;
}

.faq-help h2 {
    font-size: 20px;
}

.faq-help p {
    margin: 10px 0 18px;
    color: var(--sg-muted, #6b7165);
    font-size: 13px;
    line-height: 1.95;
}

.faq-help .primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding-inline: 20px;
    border-radius: 12px;
    text-decoration: none;
}

.faq-help .static-text-link {
    margin-top: 8px;
}

.faq-shortcuts {
    padding: 22px;
}

.faq-shortcuts h2 {
    margin: 0;
    font-size: 17px;
}

.faq-shortcuts ul {
    display: grid;
    gap: 2px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.faq-shortcuts a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--sg-muted, #6b7165);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.faq-shortcuts a:hover {
    color: var(--sg-accent, #1f5f4b);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* قوانین و حریم خصوصی */
.static-page--legal {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
}

.legal-document {
    font-size: 14px;
}

.legal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--sg-border, rgb(107 113 101 / 12%));
    color: var(--sg-muted, #6b7165);
    font-size: 11px;
    line-height: 1.8;
}

.legal-section {
    padding-block: 22px;
    border-bottom: 1px solid var(--sg-border-soft, rgb(107 113 101 / 9%));
    scroll-margin-top: 120px;
}

.legal-section:last-of-type {
    padding-bottom: 0;
    border-bottom: 0;
}

.legal-section h2 {
    margin: 0;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.6;
}

.legal-section p {
    margin: 10px 0 0;
    color: var(--sg-muted, #6b7165);
    font-size: 13px;
    line-height: 2.1;
}

.legal-section p:first-of-type {
    margin-top: 12px;
}

.legal-section ul {
    display: grid;
    gap: 7px;
    margin: 12px 0 0;
    padding-inline-start: 20px;
    color: var(--sg-muted, #6b7165);
    font-size: 13px;
    line-height: 2.05;
}

.legal-section li::marker {
    color: var(--sg-accent, #1f5f4b);
}

.legal-section a,
.legal-meta a {
    color: var(--sg-accent, #1f5f4b);
    font-weight: 800;
    text-decoration: none;
}

.legal-section a:hover,
.legal-meta a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

@media (min-width: 981px) {
    .legal-toc {
        position: sticky;
        top: 24px;
    }
}

.legal-toc details {
    padding: 18px 20px;
    border: 1px solid var(--sg-border, rgb(107 113 101 / 12%));
    border-radius: var(--sg-radius, 16px);
    background: var(--sg-surface, rgb(255 255 255 / 78%));
    box-shadow: var(--sg-inset, inset 0 1px 0 rgb(255 255 255 / 88%)), var(--sg-shadow, 0 12px 32px rgb(39 43 37 / 10%));
}

.legal-toc summary {
    color: var(--sg-ink, #272b25);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.8;
    list-style: none;
}

.legal-toc summary::-webkit-details-marker {
    display: none;
}

.legal-toc ol {
    display: grid;
    gap: 1px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: legal-toc;
}

.legal-toc li {
    counter-increment: legal-toc;
}

.legal-toc a {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-height: 38px;
    padding: 6px 0;
    color: var(--sg-muted, #6b7165);
    font-size: 12px;
    line-height: 1.8;
    text-decoration: none;
}

.legal-toc a::before {
    flex: none;
    color: var(--sg-accent, #1f5f4b);
    font-size: 10px;
    font-weight: 900;
    content: counter(legal-toc, persian);
}

.legal-toc a:hover {
    color: var(--sg-ink, #272b25);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* پاسخ‌گویی به تنظیمات دسترس‌پذیری و مرورگرهای بدون blur */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .static-panel,
    .legal-toc details {
        background: var(--sg-surface-strong, rgb(255 255 255 / 92%));
    }
}

@media (prefers-reduced-transparency: reduce) {
    .static-panel,
    .legal-toc details,
    .static-figure {
        background: var(--sg-surface-strong, rgb(255 255 255 / 92%));
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .static-cta-button,
    .contact-socials a,
    .faq-toggle::before,
    .faq-toggle::after {
        transition: none;
    }
}

@media (max-width: 1120px) {
    .static-value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .static-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .static-hero-mark {
        display: none;
    }

    .static-layout,
    .contact-grid,
    .faq-layout,
    .static-page--legal {
        grid-template-columns: minmax(0, 1fr);
    }

    .static-figure img {
        min-height: 220px;
        max-height: 380px;
    }

    .faq-aside,
    .contact-aside {
        position: static;
    }

    .legal-toc {
        position: static;
        order: -1;
    }
}

@media (max-width: 640px) {
    .static-hero {
        padding-block: 22px 30px;
    }

    .static-hero h1 {
        font-size: clamp(27px, 8vw, 38px);
    }

    .static-breadcrumb {
        margin-bottom: 16px;
        font-size: 12px;
    }

    .static-panel {
        padding: 18px;
        border-radius: 16px;
    }

    .static-form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .static-value-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .static-cta-band {
        align-items: flex-start;
        flex-direction: column;
    }

    .static-cta-button {
        width: 100%;
    }

    .static-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .static-actions .primary-button {
        width: 100%;
    }

    .faq-item summary {
        padding: 13px 14px;
        font-size: 13px;
    }

    .faq-answer {
        padding: 0 14px 15px;
    }

    .legal-section {
        scroll-margin-top: 90px;
    }
}

@media print {
    .static-hero,
    .legal-toc,
    .static-cta-band,
    .faq-aside {
        display: none;
    }

    .static-page--legal {
        display: block;
        padding: 0;
    }

    .legal-document {
        padding: 0;
        border: 0;
        background: #fff;
        box-shadow: none;
    }

    .legal-section {
        break-inside: avoid;
    }
}
