/* صفحه‌های عمومی (درباره / قوانین / حریم خصوصی) — بدون نیاز به ورود. پالت همان پالت محصول است. */
:root {
  --bg: #f5f7fb; --surface: #ffffff; --ink: #1c1c1e; --label: #5f6368; --line: #e5e5ea;
  --blue: #007aff; --blue-ink: #0a58c9; --tint: #e8f2ff; --warn-bg: #fff3b0; --warn-ink: #5c4400;
  --bubble: #e9e9ee; --bubble-ink: #1c1c1e;
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'SF Arabic', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116; --surface: #161a21; --ink: #f2f2f7; --label: #a1a7b3; --line: #2a303a;
    --blue: #4da3ff; --blue-ink: #7dbcff; --tint: #14253a; --warn-bg: #5c4a00; --warn-ink: #ffe9a3;
    --bubble: #262b35; --bubble-ink: #f2f2f7;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16.5px; line-height: 1.95; }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 42rem; margin: 0 auto; padding: 0 20px; }

.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; }
.top .enter { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 14px; background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
@media (prefers-color-scheme: dark) { .top .enter { color: #06121f; } }

main { padding: 44px 0 24px; }
h1 { margin: 0 0 16px; font-size: clamp(27px, 6.2vw, 40px); line-height: 1.5; font-weight: 800; letter-spacing: -.2px; }
h2 { margin: 52px 0 12px; font-size: 21px; line-height: 1.6; font-weight: 800; }
h3 { margin: 28px 0 6px; font-size: 17px; font-weight: 700; }
p { margin: 0 0 14px; max-width: 36em; }
.lead { font-size: 18px; color: var(--label); max-width: 33em; }
.meta { color: var(--label); font-size: 14px; }

/* حباب پیامک: همان پیامی که کاربر واقعاً می‌گیرد */
.sms { margin: 28px 0 8px; max-width: 21rem; }
.sms .from { margin: 0 6px 6px; font-size: 13px; color: var(--label); }
.sms .bubble { background: var(--bubble); color: var(--bubble-ink); border-radius: 22px 22px 22px 6px; padding: 14px 18px; font-size: 16px; line-height: 1.9; white-space: pre-line; }
.sms .bubble b { font-weight: 800; letter-spacing: 3px; direction: ltr; unicode-bidi: isolate; }
.sms-note { max-width: 31em; font-size: 15px; color: var(--label); }

/* فهرست ویژگی‌ها: ردیف‌های جداشده با خط، نه کارت */
.rows { margin: 8px 0 0; padding: 0; }
.rows > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 6px 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 700; }
.rows dd { margin: 0; color: var(--label); }
@media (max-width: 520px) { .rows > div { grid-template-columns: 1fr; } }

/* مراحل ورود: یک ترتیب واقعی است، پس شماره دارد */
.steps { margin: 6px 0 0; padding: 0 22px 0 0; list-style-type: persian; }
.steps li { padding: 6px 8px 6px 0; max-width: 34em; }
.steps li::marker { font-weight: 800; color: var(--blue-ink); }

.fact { margin: 18px 0 0; padding: 14px 18px; background: var(--tint); border-radius: 14px; max-width: 34em; }
.fact p { margin: 0; }

.contact { margin: 10px 0 0; padding: 0; }
.contact > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 4px 20px; padding: 12px 0; border-top: 1px solid var(--line); }
.contact > div:last-child { border-bottom: 1px solid var(--line); }
.contact dt { font-weight: 700; } .contact dd { margin: 0; }
@media (max-width: 520px) { .contact > div { grid-template-columns: 1fr; } }
/* جای خالی که باید پر شود — عمداً زرد و پررنگ تا جا نماند */
mark.todo { background: var(--warn-bg); color: var(--warn-ink); padding: 2px 8px; border-radius: 6px; font-weight: 700; }

.doc h2 { margin-top: 40px; font-size: 19px; }
.doc ul { margin: 0 0 14px; padding: 0 22px 0 0; max-width: 36em; }
.doc li { margin: 4px 0; }

footer { margin-top: 56px; border-top: 1px solid var(--line); background: var(--surface); }
footer .wrap { padding-top: 22px; padding-bottom: 30px; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 15px; }
footer nav a:hover { color: var(--blue-ink); text-decoration: underline; }
footer p { margin: 6px 0 0; font-size: 13px; color: var(--label); }
