/* ===========================
   MB COMERCIO — DESIGN SYSTEM
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Pinyon+Script&display=swap');

:root {
  --primary: #0F1419;
  /* Imperial Midnight — Solid & Deep */
  --primary-light: #1A2027;
  --accent: #C5A059;
  /* Champagne Bronze — Refined Luxury */
  --accent-muted: #A68A64;
  --accent-light: #F9F6F0;
  --bg-main: #FAF9F6;
  --bg-soft: #F2F0E9;
  --text-dark: #1A1A1B;
  --text-mid: #4A5568;
  --text-light: #8E9AAF;
  --border: rgba(15, 20, 25, 0.08);
  --border-gold: rgba(197, 160, 89, 0.25);
  --white: #ffffff;
  --gold-gradient: linear-gradient(135deg, #C5A059 0%, #8E6F3E 100%);

  /* Refined Typography */
  --font-display: 'Playfair Display', serif;
  --font-heading: 'Cairo', sans-serif;
  --font-body: 'Cairo', sans-serif;
  --font-modern: 'Cairo', sans-serif;
  --font-signature: 'Pinyon Script', cursive;

  /* Fluid Typography Tokens */
  --fs-h1: clamp(48px, 9vw, 110px);
  --fs-h2: clamp(32px, 6vw, 72px);
  --fs-h3: clamp(24px, 4vw, 48px);
  --fs-label: clamp(9px, 1vw, 11px);
  --fs-body: clamp(15px, 1.2vw, 18px);

  --spacing-section: clamp(80px, 15vh, 200px);
  --spacing-element: clamp(24px, 4vw, 48px);

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fluid: cubic-bezier(0.2, 0, 0, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* Premium Grain Texture */
.grain-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 10005;
  mix-blend-mode: multiply;
}

/* ===========================
   PREMIUM PRELOADER (شريط التحميل الفاخر - Zen Split)
   =========================== */
.preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10010;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--primary);
  transition: transform 1.4s cubic-bezier(0.85, 0, 0.15, 1);
  z-index: 1;
}

.preloader-panel.top {
  top: 0;
}

.preloader-panel.bottom {
  bottom: 0;
}

.preloader.hidden {
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 1.4s, pointer-events 0s linear 1.4s;
}

.preloader.hidden .preloader-panel.top {
  transform: translateY(-100%);
}

.preloader.hidden .preloader-panel.bottom {
  transform: translateY(100%);
}

.preloader-content {
  position: relative;
  z-index: 2;
  text-align: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.preloader.hidden .preloader-content {
  opacity: 0;
  transform: scale(0.95);
}

.preloader-logo-wrap {
  overflow: hidden;
  margin-bottom: 30px;
}

.preloader-logo {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  color: #fff;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  display: block;
  transform: translateY(100%);
  animation: logoRise 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

.preloader-logo em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.preloader-line {
  width: 0;
  height: 1px;
  background: var(--accent);
  margin: 0 auto;
  box-shadow: 0 0 20px var(--accent);
  animation: lineExpand 1.5s cubic-bezier(0.85, 0, 0.15, 1) forwards 0.5s;
}

@keyframes logoRise {
  to {
    transform: translateY(0);
  }
}

@keyframes lineExpand {
  to {
    width: 300px;
  }
}

/* Page Ready State */
body {
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.page-ready {
  opacity: 1;
}

/* --- BASE & LAYOUT --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.page-ready {
  opacity: 1;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.2;
  /* Increased for better readability on small screens */
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.2;
}

h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
}

p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--text-mid);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

.spotlight {

  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle 400px at var(--x, 50%) var(--y, 50%), rgba(212, 175, 55, 0.03), transparent 80%);
}

/* ===========================
   CUSTOM CURSOR
   =========================== */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s var(--ease-smooth), height 0.3s var(--ease-smooth), opacity 0.3s;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(200, 150, 62, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease-smooth), width 0.3s var(--ease-smooth), height 0.3s var(--ease-smooth), opacity 0.3s;
}

.cursor.hover {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

.cursor-ring.hover {
  width: 52px;
  height: 52px;
  opacity: 0.3;
}

/* ===========================
   NAVBAR
   =========================== */
/* ===========================
   NAVBAR: EXTRAORDINARY GLASS
   =========================== */
.navbar {
  position: fixed;
  top: 24px;
  left: 5%;
  right: 5%;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(15, 20, 25, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 100px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.6s var(--ease-smooth);
}

.navbar.scrolled {
  top: 16px;
  height: 64px;
  background: rgba(15, 20, 25, 0.98);
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-smooth);
}

.nav-logo-main {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-logo-sub {
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.4s var(--ease-smooth);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  box-shadow: 0 0 10px var(--accent);
  transition: all 0.4s var(--ease-smooth);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  opacity: 1;
  width: 100%;
  height: 2px;
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-cta {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent) 0%, #8E6F3E 100%);
  color: #fff;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s var(--ease-smooth);
}

.nav-cta:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.nav-hamburger span {
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: 0.4s;
}

/* ===========================
   FOOTER
   =========================== */
/* ===========================
   FOOTER: BENTO MODERN
   =========================== */
.footer-bento {
  background: var(--primary);
  color: var(--white);
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
}

.footer-bento::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 50%),
    radial-gradient(circle at bottom left, rgba(0, 0, 0, 0.4), transparent 50%);
  pointer-events: none;
}

.footer-bento-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 24px;
  position: relative;
  z-index: 2;
  padding: 0 5%;
}

.footer-box {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 48px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-box:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.footer-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-20deg);
  transition: 0.8s;
}

.footer-box:hover::after {
  left: 150%;
}

.footer-box h4 {
  font-family: var(--font-heading);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 32px;
}

.footer-box p {
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.6;
  color: #999;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 15px;
  opacity: 0.5;
  transition: all 0.3s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
  padding-left: 8px;
}

.footer-brand-large {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-big-text {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(100px, 15vw, 220px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.05em;
}

.footer-bottom-bar {
  max-width: 1300px;
  margin: 60px auto 0;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-bar p {
  font-size: 11px;
  opacity: 0.5;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.4s var(--ease-smooth);
}

.social-circle:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-5px);
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.section-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text-dark);
  letter-spacing: -0.03em;
}

.section-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  text-shadow: 0 0 1px rgba(197, 160, 89, 0.2);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--primary);
  color: var(--bg-soft);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-primary .arrow {
  transition: transform 0.3s;
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--bg-soft);
}

.gold-line {
  width: 40px;
  height: 1px;
  background: var(--accent);
  display: block;
  margin-bottom: 24px;
}

/* ===========================
   SCROLL REVEAL
   =========================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.4s var(--ease-fluid), transform 1.4s var(--ease-fluid), filter 1.4s var(--ease-fluid);
  will-change: opacity, transform, filter;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  filter: blur(10px);
  transition: all 1.2s var(--ease-smooth);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

[data-reveal="left"] {
  transform: translateX(-30px) scale(0.98);
}

[data-reveal="right"] {
  transform: translateX(30px) scale(0.98);
}

[data-reveal="blur"] {
  filter: blur(20px);
  transform: translateY(0) scale(1.05);
}

[data-reveal].revealed {
  transform: translate(0) scale(1);
  filter: blur(0);
}

/* --- STAGGER & SEQUENCING --- */
[data-delay="1"] {
  transition-delay: 0.1s;
}

[data-delay="2"] {
  transition-delay: 0.2s;
}

[data-delay="3"] {
  transition-delay: 0.3s;
}

[data-delay="4"] {
  transition-delay: 0.4s;
}

[data-delay="5"] {
  transition-delay: 0.5s;
}

.stagger-item {
  transition-delay: calc(var(--i, 0) * 0.12s) !important;
}

/* FALLBACK */
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===========================
   LEGAL SYSTEM — ZEN LUXURY (احترافي فخم)
   =========================== */

.legal-page-body {
  background: #FAF9F6;
  color: #1a1a1a;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

/* Breadcrumb: Minimalist & Institutional */
.legal-breadcrumb {
  max-width: 1200px;
  margin: 160px auto -140px;
  padding: 0 5%;
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #999;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 20;
}

.legal-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.legal-breadcrumb a:hover {
  color: var(--accent);
}

.legal-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 1001;
  transition: width 0.1s ease-out;
}

/* Hero: Cinematic & Editorial */
.legal-hero {
  padding: 240px 5% 120px;
  text-align: center;
  background: radial-gradient(circle at center, #fff, #FAF9F6);
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.04;
  pointer-events: none;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 500;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.legal-hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.legal-hero p {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-mid);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0.8;
}

/* Layout: The 'Institutional' Ledger */
.legal-ledger {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5% 200px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 120px;
}

.legal-sidebar {
  position: sticky;
  top: 140px;
  height: fit-content;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 48px 40px;
  border-radius: 32px;
  border: 1px solid rgba(17, 17, 17, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
}

.legal-sidebar-title {
  font-family: var(--font-heading);
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 32px;
  font-weight: 900;
  opacity: 0.3;
}

.legal-index {
  list-style: none;
}

.legal-index a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.4s var(--ease-smooth);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.legal-index li:last-child a {
  border-bottom: none;
}

.legal-index a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.legal-index a.active {
  color: var(--primary);
  font-weight: 700;
  padding-left: 5px;
}

.legal-index a::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-smooth);
}

.legal-index a.active::before {
  width: 20px;
}

/* Clause: Editorial Content */
.legal-content-main {
  max-width: 800px;
}

.legal-clause {
  margin-bottom: 120px;
  position: relative;
  padding-top: 40px;
}

.clause-number {
  font-family: var(--font-display);
  font-size: 80px;
  color: rgba(15, 20, 25, 0.05);
  position: absolute;
  top: 0;
  left: -60px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.legal-clause h2 {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}

.legal-clause p {
  font-size: 18px;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 28px;
}

.legal-clause ul {
  list-style: none;
  margin: 32px 0;
}

.legal-clause li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 18px;
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.7;
}

.legal-clause li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 1px;
  background: var(--accent);
  opacity: 0.8;
}

.legal-highlight {
  background: #fff;
  border-left: 4px solid var(--accent);
  padding: 48px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--primary);
  margin: 60px 0;
  border-radius: 0 24px 24px 0;
  box-shadow: 30px 30px 80px rgba(0, 0, 0, 0.03);
}

/* HUB SPECIFIC: Institutional Cards */
.legal-grid {
  max-width: 1200px;
  margin: -80px auto 160px;
  padding: 0 5%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  position: relative;
  z-index: 10;
}

.legal-card {
  background: #fff;
  border-radius: 32px;
  padding: 64px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.legal-card::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.legal-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 100px rgba(17, 17, 17, 0.08);
  border-color: var(--accent);
}

.legal-card:hover::after {
  opacity: 0.05;
}

.legal-card-inner {
  position: relative;
  z-index: 2;
}

.legal-card h2 {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--primary);
  margin: 24px 0 20px;
  font-weight: 500;
}

.legal-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 40px;
}

.legal-card-footer {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-card-footer span {
  transition: transform 0.4s var(--ease-smooth);
}

.legal-card:hover .legal-card-footer span {
  transform: translateX(8px);
}

/* ===========================
   MOBILE NAVIGATION MENU
   =========================== */
/* ===========================
   MOBILE NAVIGATION MENU: ZEN SPLIT
   =========================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10008;
  display: flex;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.8s;
}

.mobile-menu.open {
  visibility: visible;
  pointer-events: all;
  transition-delay: 0s;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--primary);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-panel.left {
  left: 0;
  transform: translateX(-100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-panel.right {
  right: 0;
  transform: translateX(100%);
}

.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.mobile-menu.open .mobile-menu-inner {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  text-align: center;
}

.mobile-nav-links li {
  margin-bottom: 24px;
  overflow: hidden;
}

.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 64px);
  color: #fff;
  text-decoration: none;
  display: block;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.mobile-nav-links a:hover {
  color: var(--accent);
}

.mobile-menu.open .mobile-nav-links a {
  transform: translateY(0);
}

/* Staggered reveal for mobile links */
.mobile-menu.open .mobile-nav-links li:nth-child(1) a {
  transition-delay: 0.5s;
}

.mobile-menu.open .mobile-nav-links li:nth-child(2) a {
  transition-delay: 0.55s;
}

.mobile-menu.open .mobile-nav-links li:nth-child(3) a {
  transition-delay: 0.6s;
}

.mobile-menu.open .mobile-nav-links li:nth-child(4) a {
  transition-delay: 0.65s;
}

.mobile-menu.open .mobile-nav-links li:nth-child(5) a {
  transition-delay: 0.7s;
}

.mobile-menu.open .mobile-nav-links li:nth-child(6) a {
  transition-delay: 0.75s;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10009;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.nav-hamburger span {
  display: block;
  width: 28px;
  height: 1.5px;
  background: #fff;
  /* Explicitly white for visibility */
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
  background: #fff;
}

.nav-hamburger.active span:nth-child(2) {
  transform: translateY(-5px) rotate(-45deg);
  background: #fff;
}

/* ===========================
   RESPONSIVE: ELITE ADAPTATION
   =========================== */
@media (max-width: 1200px) {
  .footer-bento-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .navbar {
    top: 16px;
    height: 64px;
    padding: 0 24px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .footer-bento-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    margin-top: 40px;
    padding-bottom: 40px;
  }

  .footer-big-text {
    font-size: clamp(60px, 20vw, 100px);
    bottom: -15px;
    opacity: 0.03;
  }

  .section-title {
    font-size: clamp(32px, 10vw, 56px);
  }

  .legal-ledger {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .legal-sidebar {
    position: relative;
    top: 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .footer-box {
    padding: 40px 24px;
  }

  .hero-title {
    font-size: clamp(40px, 12vw, 64px);
  }
}

/* ===========================
   EXTRAORDINARY REVEAL & LUXURY UTILS
   =========================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translate(0, 0);
}

.modern-label {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  position: relative;
  padding-bottom: 8px;
}

/* .modern-label::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 200px;
  width: 40px;
  height: 1px;
  background: var(--accent);
} */

.mobile-menu-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.mobile-menu.open .mobile-menu-close {
  opacity: 1;
  pointer-events: all;
  transition-delay: 0.6s;
}

.mobile-menu-close:hover {
  background: var(--accent);
  transform: rotate(90deg);
}