/* Páginas legales (aviso legal y privacidad): mismo aspecto que la web, con scroll */
:root {
  --bg: #000;
  --fg: #f3ece1;
  --muted: rgba(243, 236, 225, 0.66);
  --faint: rgba(243, 236, 225, 0.14);
  --gold: #c9a04a;
  --gold-hi: #e9c87a;
  --gold-metal: linear-gradient(115deg, #7a5520 0%, #b88a35 22%, #f3dc94 46%, #c9a04a 62%, #8a6424 82%, #d9b569 100%);
  --gutter: clamp(16px, 5vw, 80px);
  --font: 'Inter Tight', system-ui, -apple-system, sans-serif;
}
[dir='rtl'] { --font: 'Noto Naskh Arabic', 'Inter Tight', system-ui, serif; }

@font-face {
  font-family: 'Libre Baskerville';
  src: url('../assets/fonts/LibreBaskerville.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); }
body {
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
a { color: inherit; }
[dir='ltr'] { unicode-bidi: isolate; }
.doc a[dir='ltr'], .doc bdi, .doc span[dir='ltr'] { overflow-wrap: anywhere; }

/* Cabecera: logo bilingüe y selector de idioma */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px var(--gutter);
}
.brand { display: flex; align-items: center; gap: calc(var(--z) * 0.3); direction: ltr; text-decoration: none; --z: 40px; }
.brand__latin { display: flex; flex-direction: column; align-items: center; }
.brand__sep { width: 1px; align-self: stretch; margin: calc(var(--z) * 0.12) 0; background: linear-gradient(transparent, var(--gold), transparent); }
.brand__ar { display: flex; flex-direction: column; align-items: center; justify-content: space-between; align-self: stretch; font-family: 'Noto Naskh Arabic', serif; white-space: nowrap; }
.brand__ziqa, .brand__intl, .brand__ar-main, .brand__ar-sub {
  background: var(--gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.brand__ziqa { font-family: 'Libre Baskerville', Baskerville, serif; font-size: var(--z); letter-spacing: 0.107em; padding: 0 0 0.1em 0.107em; line-height: 1.15; }
.brand__intl { font-family: 'Libre Baskerville', Baskerville, serif; font-size: calc(var(--z) * 0.2526); letter-spacing: 0.24em; padding-left: 0.24em; line-height: 1.2; }
.brand__ar-main { font-weight: 700; font-size: calc(var(--z) * 1.08); line-height: 1; margin-top: calc(var(--z) * -0.04); }
.brand__ar-sub { font-weight: 500; font-size: calc(var(--z) * 0.42); line-height: 1.1; }

.langs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--faint); border-radius: 999px; }
.langs { direction: ltr; }
.langs a {
  min-width: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.3s;
}
.langs a[lang='ar'] { font-family: 'Noto Naskh Arabic', serif; font-size: 14px; line-height: 1.2; }
.langs a:hover { color: var(--fg); }
.langs a.is-active { background: var(--gold-metal); color: #1a1206; }

/* Texto */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(24px, 6vh, 64px) var(--gutter) 80px; }
.back { display: inline-block; margin-bottom: 36px; font-size: 13px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--gold-hi); }
h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.updated { margin: 12px 0 44px; font-size: 13px; color: var(--muted); }
section { padding: 26px 0; border-top: 1px solid var(--faint); }
h2 { margin-bottom: 12px; font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
p { font-size: 15.5px; color: rgba(243, 236, 225, 0.85); }
p + p { margin-top: 12px; }
.doc p a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(233, 200, 122, 0.4); }

[dir='rtl'] h1 { letter-spacing: 0; line-height: 1.4; }
[dir='rtl'] h2 { font-size: 17px; letter-spacing: 0; text-transform: none; }
[dir='rtl'] p { font-size: 17px; line-height: 1.9; }
[dir='rtl'] .back { font-size: 15px; }

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--faint);
  font-size: 11.5px;
  color: var(--muted);
}
[dir='rtl'] .foot { font-size: 14px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--gold-hi); }

@media (max-width: 768px) {
  .brand { --z: 30px; }
  p { font-size: 15px; }
}
@media (max-width: 360px) {
  .brand { --z: 24px; }
}
