/* CODE Founders — reading pages (privacy, terms, contact): words on plain paper, no photograph behind any of them */
html[lang='ar'] .l-en, html[lang='en'] .l-ar { display: none; }
.legal { position: relative; z-index: 3; padding: 150px var(--gut) 96px; min-height: 78svh; }
.legal__doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; max-width: 1180px; }
.legal__head h1 { font-size: clamp(34px, 4vw, 58px); font-weight: 700; line-height: 1.35; color: var(--ink); text-wrap: balance; }
html[lang='en'] .legal__head h1 { line-height: 1.12; letter-spacing: -.022em; }
.legal__head .eyebrow { margin-bottom: 14px; }
.legal__date { margin-top: 14px; font-size: 15px; color: var(--ink-soft); }
.legal__body .legal__intro { margin: 0 0 30px; font-size: clamp(18px, 1.4vw, 21px); color: var(--ink); max-width: 30em; text-wrap: pretty; }
.legal__toc { margin-top: 30px; display: none; gap: 2px; font-size: 16px; }
.legal__toc a { display: flex; align-items: center; min-height: 40px; color: var(--ink-soft); border-inline-start: 2px solid var(--hair); padding-inline-start: 16px; transition: color .3s, border-color .3s; }
.legal__toc a:hover, .legal__toc a:focus-visible { color: var(--violet-text, var(--violet)); border-color: var(--violet); }
.legal__body { max-width: 40em; }
.legal__body section { padding-block: 26px; border-top: 1px solid var(--hair); scroll-margin-top: 110px; }
.legal__body section:first-child { border-top: 0; padding-top: 0; }
.legal__body h2 { font-size: clamp(21px, 1.7vw, 25px); font-weight: 700; line-height: 1.6; color: var(--violet-text, var(--violet-deep)); }
html[lang='en'] .legal__body h2 { line-height: 1.3; letter-spacing: -.012em; }
.legal__body p { margin-top: 8px; text-wrap: pretty; }
.legal__body ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.legal__body ul li { position: relative; padding-inline-start: 24px; }
.legal__body ul li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .95em; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--brass-hi), var(--brass) 45%, var(--brass-lo)); }
html[lang='en'] .legal__body ul li::before { top: .62em; }
.legal a.mail, .legal__body a { color: var(--violet-text, var(--violet-deep)); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; overflow-wrap: anywhere; }
.legal a.mail { font-family: var(--font-en); direction: ltr; unicode-bidi: isolate; display: inline-block; }
/* numbered clauses (terms) */
.legal__clauses { margin: 0; padding: 0; list-style: none; counter-reset: c; }
.legal__clauses > li { counter-increment: c; display: grid; grid-template-columns: 2.6em minmax(0, 1fr); gap: 0 10px; padding-block: 22px; border-top: 1px solid var(--hair); scroll-margin-top: 110px; }
.legal__clauses > li:first-child { border-top: 0; padding-top: 0; }
.legal__clauses > li::before { content: counter(c, decimal); font-family: var(--font-en); font-weight: 600; font-size: 22px; line-height: 1.55; color: var(--brass-lo); direction: ltr; }
html[data-theme='night'] .legal__clauses > li::before { color: var(--brass-hi); }
.legal__clauses h2 { grid-column: 2; }
.legal__clauses p { grid-column: 2; }
.legal__end { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hair); }
/* contact */
.legal--contact .legal__body p { font-size: clamp(18px, 1.4vw, 21px); }
.legal__mail { margin-top: 26px; }
.legal__mail a { font-size: clamp(26px, 3.2vw, 44px); font-weight: 600; line-height: 1.3; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.legal .acts { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
/* the three pages name each other */
.legal__pages { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 26px; font-size: 16px; }
.legal__pages a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); }
.legal__pages a[aria-current='page'] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--violet); }
.legal__pages a:hover { color: var(--ink); }
@media (min-width: 1000px) {
  .legal__doc { grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 110px); align-items: start; }
  .legal__head { position: sticky; top: 124px; }
  .legal__toc { display: grid; }
}
@media (min-width: 1000px) and (max-height: 700px) { .legal__head { position: static; } .legal__toc { display: none; } }
@media (max-width: 860px) { .legal { padding: 112px 22px 64px; } .legal__clauses > li { grid-template-columns: 2.1em minmax(0, 1fr); } }
@media (max-height: 560px) and (min-width: 861px) { .legal { padding-top: 104px; } }
