:root {
  --green-dark: #0a3c0f;
  --green-brand: #0f5c16;
  --gold: #d9b44a;
  --gold-soft: #f0d17e;
  --gold-muted: #e8dac0;
  --text-on-dark: #d9e2da;
  --card-bg: rgba(8, 14, 10, 0.58);
  --card-border: rgba(215, 180, 90, 0.45);
  --footer-bg: rgba(6, 10, 7, 0.75);
  --splash-url: url("/assets/goldenegg_splash.png");
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background-color: #060a07;
  background-image: var(--splash-url);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Noto Sans Arabic", "Tajawal", Tahoma, Arial, sans-serif;
  color: var(--text-on-dark);
  background: transparent;
}

a {
  color: var(--gold-soft);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Full-screen splash artwork (reliable across mobile browsers) */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.site-bg__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.site-bg__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  flex-wrap: wrap;
}

.site-header__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.site-header__end {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.site-header .legal-back {
  display: inline-block;
  margin: 0;
  padding: 2px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-soft);
  text-align: left;
}

.site-header .legal-back:hover {
  text-decoration: none;
  opacity: 0.9;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-soft);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  background: rgba(217, 180, 74, 0.12);
  text-decoration: none;
}

.site-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px 28px;
}

.hero-card {
  width: min(840px, 100%);
  padding: clamp(18px, 4vw, 28px);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  text-align: center;
}

.hero-card h1 {
  margin: 0 0 18px;
  color: var(--gold-soft);
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  line-height: 1.65;
  font-weight: 600;
}

.hero-card p {
  margin: 0 0 28px;
  color: var(--text-on-dark);
  line-height: 1.8;
  font-size: clamp(0.92rem, 2.4vw, 1.05rem);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: min(100%, 280px);
  min-height: 58px;
  padding: 0 20px;
  border: 1.4px solid #e7c36d;
  border-radius: 16px;
  color: #f4dca0;
  font-size: 1rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.2);
  cursor: default;
}

.site-footer {
  padding: 16px 20px 20px;
  background: var(--footer-bg);
  border-top: 1px solid rgba(215, 180, 90, 0.2);
  backdrop-filter: blur(4px);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  text-align: center;
  color: var(--gold-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-sep {
  color: rgba(232, 218, 192, 0.45);
  user-select: none;
}

.site-shell--legal .legal-main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 28px;
}

.legal-title-card {
  text-align: center;
  padding: 1.5rem 1.25rem 1.35rem;
  margin-bottom: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.legal-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.legal-title-card h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-soft);
}

.legal-title-card p {
  margin: 0.55rem 0 0;
  color: var(--gold-muted);
  font-size: 1rem;
}


.legal-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
  color: var(--text-on-dark);
}

.legal-card h2 {
  color: var(--gold-soft);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid rgba(215, 180, 90, 0.25);
}

.legal-card p,
.legal-card li {
  line-height: 1.75;
  font-size: 1rem;
}

.legal-card ul,
.legal-card ol {
  margin: 0.25rem 0 0;
  padding-right: 1.25rem;
}

.legal-card li {
  margin-bottom: 0.5rem;
}

.legal-card a {
  color: var(--gold-soft);
  font-weight: 600;
}

.legal-card strong {
  color: var(--gold-muted);
}

.legal-card code {
  color: var(--gold-soft);
  font-size: 0.92em;
}

.legal-meta {
  color: var(--gold);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.legal-note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-right: 4px solid var(--gold);
  border-radius: 10px;
  color: var(--text-on-dark);
}

.legal-note strong {
  color: var(--gold-soft);
}

.legal-en {
  direction: ltr;
  text-align: left;
  border-top: 1px dashed rgba(215, 180, 90, 0.3);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  font-size: 0.95rem;
  opacity: 0.95;
}

.legal-en h2 {
  text-align: left;
}

@media (max-width: 600px) {
  .site-header {
    justify-content: center;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
  }

  html {
    background-attachment: scroll;
  }
}
