/* Legal pages (privacy, terms, account deletion): static, bilingual, no script. Same palette as the app. */
:root {
  --velvet: #4B1426; --velvet-deep: #2A0B15; --velvet-hi: #6A1E36; --brass: #C9A24D; --brass-hi: #E8CB7E;
  --ivory: #F8F1E3; --text: #F6E9DC; --muted: #C9ABA9; --line: rgba(201, 162, 77, .28);
  --display: 'Gloock', Georgia, serif; --ui: 'Figtree', 'Cairo', system-ui, sans-serif; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--ui); color: var(--text); background: radial-gradient(120% 80% at 50% 0%, var(--velvet-hi), var(--velvet-deep) 70%) fixed; min-height: 100dvh; line-height: 1.6; }
main { max-width: 760px; margin: 0 auto; padding: 1.4rem 16px 3rem; }
header.top { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; justify-content: space-between; margin-bottom: 1rem; }
.brand { font-family: var(--display); font-size: 1.25rem; color: var(--brass-hi); text-decoration: none; }
nav.langs { display: flex; gap: .5rem; }
nav.langs a, .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; }
.btn.primary { background: var(--brass); border-color: var(--brass); color: var(--velvet-deep); }
.draft { border: 1px dashed var(--brass); border-radius: 12px; padding: .6rem .9rem; color: var(--brass-hi); font-size: .88rem; margin: 0 0 1.4rem; }
section.lang { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.6rem; }
section.lang:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
h1 { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1.15; margin: 0 0 .3rem; color: var(--brass-hi); }
[dir="rtl"] h1 { font-family: 'Cairo', var(--ui); font-weight: 700; }
h2 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; color: var(--ivory); }
.updated { color: var(--muted); font-size: .85rem; margin: 0 0 1rem; }
p, li { overflow-wrap: anywhere; }
ul, ol { padding-inline-start: 1.3rem; }
li { margin-bottom: .35rem; }
a { color: var(--brass-hi); }
.box { border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; background: rgba(0, 0, 0, .18); margin: 1rem 0; }
.box strong { color: var(--brass-hi); }
footer { color: var(--muted); font-size: .85rem; margin-top: 2.4rem; text-align: center; }
footer a { display: inline-block; padding: .4rem .3rem; }

/* Design review: jump links land below the top edge, Arabic reads in Cairo with a little more air. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section.lang { scroll-margin-top: .8rem; }
section.lang[dir="rtl"] { font-family: 'Cairo', var(--ui); line-height: 1.8; }
section.lang[dir="rtl"] h2 { font-size: 1.2rem; }
nav.langs a:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 2px; }

/* Visible way out (inside the app these pages have no browser chrome). */
.back-btn { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; margin: 0 0 .9rem; border: 1px solid rgba(212, 175, 95, .45); border-radius: 999px; color: var(--brass-hi); text-decoration: none; font-weight: 600; font-size: 1rem; }
.back-btn:active { background: rgba(212, 175, 95, .12); }
@media (hover: hover) { .back-btn:hover { background: rgba(212, 175, 95, .1); } }
header .back-btn + .brand { display: block; }
