/* Content pages: guides, privacy, terms, delete-account, 404. Shared parts are in base.css. */
body {
  display: flex; flex-direction: column; min-height: 100vh; font-size: 16px; line-height: 1.8;
  background: radial-gradient(ellipse at 85% 0%, #dce1eb 0%, transparent 40%), radial-gradient(ellipse at 0% 20%, #f4dce0 0%, transparent 35%), var(--paper);
  background-repeat: no-repeat;
}
.page { flex: 1; width: min(820px, 100%); margin: 0 auto; padding: 56px 6vw 90px; }
.page h1 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 56px); line-height: 1.15; letter-spacing: -.04em; font-weight: 600; }
[dir=rtl] .page h1 { letter-spacing: 0; line-height: 1.5; }
.page a { color: var(--red); border-bottom: 1px solid #c5223555; }
.page a:hover { border-bottom-color: var(--red); }
.lead { margin: 0 0 32px; font-size: 18px; line-height: 1.9; color: #4d5665; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; font-size: 13px; color: var(--muted); }
.page .breadcrumb a { color: inherit; border: 0; }
.page .breadcrumb a:hover { color: var(--red); }

/* guides */
.guide-body {
  padding: 8px 36px 30px; border: 1px solid #fff; border-radius: 28px;
  background: #ffffffb8; box-shadow: 0 12px 40px #2a35410c;
}
.guide-body h2 { margin: 32px 0 10px; font-size: 23px; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
.guide-body p { margin: 0; color: #3a4250; }
[dir=rtl] .guide-body h2 { letter-spacing: 0; }
.guide-cta {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin: 26px 0 0; padding: 28px 32px; border-radius: 28px; color: #f3f5f8;
  background: radial-gradient(ellipse at 100% 100%, #46212a, transparent 65%), #191e27;
}
.guide-cta p { margin: 0; max-width: 430px; color: #c7cdd7; }
.page .btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 15px 24px; border: 0; border-radius: 99px;
  background: #f0f2f7; color: #212734; font-size: 14px; font-weight: 700; transition: transform .2s, background .2s;
}
.page .btn:hover { background: #fff; transform: translateY(-2px); }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.page .btn.ghost { background: transparent; color: #f3f5f8; box-shadow: inset 0 0 0 1px #ffffff55; }
.page .btn.ghost:hover { background: #ffffff14; }
.related { margin-top: 44px; }
.related h2 { margin: 0 0 12px; font-size: 20px; font-weight: 600; }
.related a { display: table; margin: 6px 0; }

/* legal pages (English and Persian in one file; legal.js sets html[data-lang]) */
.doc .updated { margin: 0 0 28px; font-size: 14px; color: var(--muted); }
.doc .note { margin: 0 0 28px; padding: 10px 16px; border-inline-start: 3px solid var(--red); border-radius: 8px; background: #faedf0; font-size: 14px; color: #5a3540; }
.doc h2 { margin: 38px 0 12px; font-size: 22px; line-height: 1.4; font-weight: 600; }
.doc p { margin: 0 0 14px; color: #3a4250; }
.doc ul, .doc ol { margin: 0 0 16px; padding-inline-start: 22px; color: #3a4250; }
.doc li { margin-bottom: 8px; }
.doc[lang=fa] ol { list-style-type: persian; }
html[data-lang=fa] .doc[lang=en], html[data-lang=en] .doc[lang=fa] { display: none; }

/* 404 */
.not-found { text-align: center; padding-top: 90px; }
.not-found .code { font-family: Arial, Helvetica, sans-serif; font-size: clamp(90px, 18vw, 180px); font-weight: 800; letter-spacing: -.07em; line-height: 1; color: #dfe3ea; }
.not-found ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; }
.not-found li a:lang(fa), .not-found li a:lang(ar), .not-found p:lang(fa) { font-family: Estedad, Tahoma, Arial, sans-serif; }

@media (max-width: 800px) {
  .page { padding: 36px 6vw 70px; }
  .lead { font-size: 17px; }
  .guide-body { padding: 4px 22px 24px; border-radius: 22px; }
  .guide-body h2 { font-size: 21px; }
  .guide-cta { padding: 24px; border-radius: 22px; }
}
