/* ==========================================================================
   Estate Mahal — Legal / Compliance pages shared stylesheet
   Design system: Cinzel (display) + Josefin Sans (body), navy + gold brand.
   Built with UI/UX Pro Max guidance: hierarchy, contrast (AA), focus states,
   reduced-motion, responsive spacing.
   ========================================================================== */

:root {
  --bg:        #08081a;
  --surface:   #12122a;
  --surface-2: #0f0f24;
  --gold:      #c5ab6e;
  --gold-soft: #d8bd85;
  --text:      #e8e8ee;
  --muted:     #a2a2b6;
  --border:    rgba(197, 171, 110, 0.18);
  --border-soft: rgba(255, 255, 255, 0.06);
  --maxw:      820px;
  --radius:    16px;
  --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body:    'Josefin Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(197,171,110,0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16.5px;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  padding: 0 clamp(16px, 5vw, 40px) 64px;
}

/* ---- Top bar: wordmark + back link (consistent nav / escape route) ---- */
.legal-header {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
}
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: var(--gold);
  text-decoration: none;
}
.legal-brand img { width: 26px; height: 26px; }
.legal-back {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  transition: color 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease);
  white-space: nowrap;
}
.legal-back:hover { color: var(--gold); border-color: var(--border); background: rgba(197,171,110,0.06); }

/* ---- Content card ---- */
.legal {
  max-width: var(--maxw);
  margin: 0 auto;
  background: linear-gradient(180deg, var(--surface), #101026);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 52px) clamp(22px, 5vw, 46px);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: 0.3px;
  color: #fff;
  margin-bottom: 10px;
}
.updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; }

.rule { height: 1px; background: var(--border); margin: 28px 0; border: 0; }

h2 {
  font-family: var(--font-display);
  color: var(--gold);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: 0.2px;
  margin: 36px 0 12px;
}

p  { margin-bottom: 16px; color: var(--text); }
ul { margin: 0 0 18px 22px; }
li { margin-bottom: 8px; }
strong { color: #fff; font-weight: 600; }

a { color: var(--gold); text-decoration: none; transition: color 180ms var(--ease); }
a:hover { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }

/* Highlighted info cards (address, contact, etc.) */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 18px;
}
.card h2 { margin-top: 0; }
.card :last-child { margin-bottom: 0; }

/* ---- Shared page footer ---- */
.legal-footer {
  max-width: var(--maxw);
  margin: 40px auto 0;
  text-align: center;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.9;
}
.legal-footer .name { color: var(--text); font-weight: 600; letter-spacing: 0.3px; }
.legal-footer nav { margin: 8px 0; }
.legal-footer nav a { margin: 0 8px; }

/* ---- Accessibility: visible focus for keyboard users ---- */
a:focus-visible, .legal-back:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---- Small screens ---- */
@media (max-width: 520px) {
  .legal-header { flex-direction: row; padding: 18px 2px; }
  .legal-brand { font-size: 1.05rem; }
}
