/* OBJECT: corners sharpened by rebrand.py */
/* =====================================================================
   OBJECT — info pages (about, privacy, terms, FAQ)
   Layout: dark title band, then a sticky side menu beside readable prose.
   Both languages live in the HTML: .t-ar / .t-en blocks shown by <html lang>.
   ===================================================================== */

html[lang="en"] .t-ar, html:not([lang="en"]) .t-en { display: none !important; }

/* ---------- title band ---------- */
.ph {
  position: relative;
  padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + clamp(36px, 5vw, 64px));
  padding-bottom: clamp(40px, 5vw, 64px);
  background: radial-gradient(70% 120% at 85% 0%, rgba(226, 98, 31, .16) 0%, rgba(226, 98, 31, 0) 60%), var(--bg);
  overflow: hidden;
  isolation: isolate;
}
[dir="ltr"] .ph { background: radial-gradient(70% 120% at 15% 0%, rgba(226, 98, 31, .16) 0%, rgba(226, 98, 31, 0) 60%), var(--bg); }
.ph__img { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .32; -webkit-mask-image: linear-gradient(var(--to-end), #000 0%, transparent 85%); mask-image: linear-gradient(var(--to-end), #000 0%, transparent 85%); }
.ph__inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 13px; color: var(--text-2); }
.crumbs a:hover { color: var(--orange); }
.crumbs .i { width: 14px; height: 14px; opacity: .6; }
.crumbs [aria-current] { color: var(--text); }
.ph h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; line-height: 1.15; }
.ph__lead { max-width: 60ch; margin-top: 14px; font-size: clamp(16px, 1.5vw, 19px); color: var(--text-2); }
.ph__badge { display: grid; place-items: center; width: clamp(72px, 9vw, 112px); aspect-ratio: 1; border-radius: 7px; border: 1px solid rgba(226, 98, 31, .4); background: rgba(226, 98, 31, .08); color: var(--orange); box-shadow: 0 0 22px rgba(226, 98, 31, .08); }
.ph__badge .i { width: 46%; height: 46%; stroke-width: 1.4; }
.ph__meta { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ---------- body layout ---------- */
.pg { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding-block: clamp(32px, 4vw, 56px); }
.side { position: sticky; top: calc(var(--hdr-h) + 20px); display: grid; gap: 16px; }
.side__nav { display: grid; gap: 4px; margin: 0; padding: 8px; list-style: none; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.side__nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: var(--r-sm); font-size: 15px; color: var(--text-2); transition: background .2s, color .2s; }
.side__nav a .i { width: 20px; height: 20px; }
.side__nav a:hover { background: var(--surface-2); color: var(--text); }
.side__nav a[aria-current="page"] { background: var(--orange-soft); color: var(--ink); font-weight: 600; }
.side__help { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.side__help h2 { font-size: 16px; font-weight: 600; }
.side__help p { font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.side__help .btn { --h: 42px; font-size: 14px; }
.side__help a.mail { font-size: 13.5px; color: var(--text-2); text-align: center; }
.side__help a.mail:hover { color: var(--ink); }

/* ---------- prose ---------- */
.prose { max-width: 74ch; }
.prose > * + * { margin-top: 14px; }
.prose h2 { display: flex; align-items: center; gap: 12px; margin-top: 40px; font-size: clamp(20px, 2vw, 24px); font-weight: 700; scroll-margin-top: calc(var(--hdr-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h2 .n { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 2px; background: var(--orange-soft); color: var(--ink); font-family: var(--f-logo); font-size: 15px; font-weight: 700; }
.prose h3 { margin-top: 24px; font-size: 17px; font-weight: 600; }
.prose p, .prose li { font-size: 16px; line-height: 1.85; color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.prose ul li { position: relative; padding-inline-start: 22px; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .8em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.prose p a, .prose li a, .qa__a a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.note { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid rgba(226, 98, 31, .35); border-radius: var(--r-md); background: var(--orange-soft); }
.note .i { flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--orange); }
.note p { margin: 0; color: var(--text); font-size: 15px; }
.tbl { width: 100%; border-collapse: collapse; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md); font-size: 14.5px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--surface-2); color: var(--text); font-weight: 600; }
.tbl td { color: var(--text-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; }

/* ---------- about ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.stat { padding: 18px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.stat b { display: block; font-family: var(--f-logo); font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; color: var(--ink); line-height: 1.1; }
.stat span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--text-2); }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.value { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.value .ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 3px; background: var(--orange-soft); color: var(--orange); }
.value .ic .i { width: 22px; height: 22px; }
.value h3 { margin: 0; font-size: 16px; color: var(--text); }
.value p { margin-top: 4px; font-size: 14.5px; line-height: 1.7; }
.colls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.coll { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: 18px; border-radius: var(--r-md); overflow: hidden; isolation: isolate; color: #E6DACC; }
.coll img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.coll::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(to top, rgba(6, 5, 4, .92) 10%, rgba(6, 5, 4, .1) 70%); }
.coll:hover img { transform: scale(1.05); }
.coll b { font-family: var(--f-en); font-size: 28px; font-weight: 600; letter-spacing: .02em; line-height: 1; }
.coll span { margin-top: 6px; font-size: 14px; color: #D8D0C7; line-height: 1.6; }
.coll .link-arrow { margin-top: 10px; color: var(--orange); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 40px; padding: 26px; border-radius: var(--r-lg); background: radial-gradient(80% 140% at 90% 50%, rgba(226, 98, 31, .25), rgba(226, 98, 31, 0) 60%), #0E0C0B; color: #E6DACC; }
.cta-band h2 { margin: 0; font-size: 22px; color: #E6DACC; }
.cta-band p { margin: 4px 0 0; color: #CFC4B6; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-tools { display: grid; gap: 14px; margin-bottom: 20px; }
.faq-search { position: relative; }
.faq-search .i { position: absolute; top: 50%; inset-inline-start: 16px; width: 20px; height: 20px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.faq-search input { width: 100%; height: 52px; padding-inline: 48px 16px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--text); font-size: 15px; }
.faq-search input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-cats .chip { font-family: var(--f-ar); font-size: 13.5px; letter-spacing: 0; }
.faq-group + .faq-group { margin-top: 30px; }
.faq-group h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 19px; font-weight: 700; }
.faq-group h2 .i { width: 22px; height: 22px; color: var(--orange); }
.qa { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.qa + .qa { margin-top: 10px; }
.qa[open] { border-color: rgba(226, 98, 31, .45); box-shadow: 0 0 0 4px var(--orange-soft); }
.qa summary { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 18px; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-inline-start: auto; border: solid var(--text-2); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.qa[open] summary::after { transform: rotate(225deg) translateY(-3px); border-color: var(--orange); }
.qa summary:hover { color: var(--ink); }
.qa__a { padding: 0 18px 18px; font-size: 15px; line-height: 1.85; color: var(--text-2); }
.qa__a p + p { margin-top: 8px; }
.qa.is-hidden, .faq-group.is-hidden { display: none; }
.faq-empty { padding: 30px; text-align: center; color: var(--text-2); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .pg { grid-template-columns: 1fr; }
  .side { position: static; }
  /* phones: the four pages as a 2×2 grid — all of them in view, none cut at the edge */
  .side__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  .side__nav li { min-width: 0; }
  .side__nav a { min-height: 42px; gap: 8px; padding: 0 10px; font-size: 14px; white-space: nowrap; justify-content: center; }
  .side__help { display: none; }
  .ph__inner { grid-template-columns: 1fr; }
  .ph__badge { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .colls { grid-template-columns: 1fr; }
  .coll { min-height: 240px; }
}
@media (max-width: 600px) {
  .values { grid-template-columns: 1fr; }
  .prose p, .prose li { font-size: 15.5px; }
}
