/* Policy + contact pages (loaded after style.css, reuses its tokens). */
.hdr .back { margin-inline-start: auto; text-decoration: none; }
.doc { width: 100%; max-width: 820px; margin: 0 auto; padding: 24px 16px 40px; flex: 1; }
.doc h1 { font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: clamp(28px, 5vw, 40px); line-height: 1.1; margin: 8px 0 6px; letter-spacing: -.02em; }
.doc h2 { font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: 22px; margin: 32px 0 8px; }
.doc h3 { font-size: 16px; margin: 20px 0 6px; }
.doc p, .doc li { line-height: 1.65; }
.doc ul { padding-inline-start: 20px; }
.doc .updated { color: var(--ink-2); font-size: 14px; margin: 0 0 18px; }
.doc a { color: var(--brand); }
.summary { background: var(--brand-soft); border-radius: 16px; padding: 16px 18px; margin: 18px 0; }
.summary ul { margin: 6px 0 0; }
.tbl-wrap { overflow-x: auto; margin: 10px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.doc th, .doc td { text-align: start; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--surface-2); font-weight: 600; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; margin: 0 0 8px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); margin: 14px 0; }
.panel h2 { margin-top: 0; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.out { white-space: pre-wrap; font: 13px/1.5 ui-monospace, monospace; background: var(--surface-2); border-radius: 12px; padding: 12px; max-height: 320px; overflow: auto; margin-top: 10px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form textarea { min-height: 120px; resize: vertical; }
.note { font-size: 13px; color: var(--ink-2); }
.ok { color: var(--good); font-weight: 600; }
.err { color: var(--bad); font-weight: 600; }

/* complaints bot */
.bot { display: flex; flex-direction: column; height: min(640px, 78dvh); padding: 0; overflow: hidden; }
.bot-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.bot-av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #14b8a6, #0f766e); display: grid; place-items: center; color: #fff; font-size: 18px; flex: none; }
.bot-head b { display: block; }
.bot-head small { color: var(--ink-2); }
.bot-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.b-msg { max-width: 85%; padding: 10px 13px; border-radius: 16px; line-height: 1.5; white-space: pre-wrap; }
.b-msg.bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 5px; }
.b-msg.me { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 5px; }
.b-msg.alert { background: #fee2e2; color: #7f1d1d; }
.b-msg a { color: inherit; font-weight: 600; }
.b-opts { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.b-opt { border: 1px solid var(--brand); color: var(--brand); background: var(--surface); border-radius: 99px; padding: 7px 13px; cursor: pointer; font-weight: 600; font-size: 14px; }
.b-opt:hover { background: var(--brand-soft); }
.bot-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.bot-form textarea { min-height: 44px; max-height: 140px; resize: none; }
.b-typing { align-self: flex-start; color: var(--ink-2); font-size: 13px; }
html[dir="rtl"] .b-msg.bot { border-radius: 16px 16px 5px 16px; }
html[dir="rtl"] .b-msg.me { border-radius: 16px 16px 16px 5px; }
