/* Monarchy Labs — shared styles for legal pages (Terms, Privacy) */
:root {
  --bg: #0a0a0c;
  --bg-2: #101015;
  --panel: #131319;
  --panel-2: #17171f;
  --line: rgba(168, 152, 80, 0.14);
  --line-strong: rgba(168, 152, 80, 0.32);
  --gold: #a89850;
  --gold-bright: #d4c073;
  --gold-soft: #c9b76a;
  --text: #f4f2ea;
  --muted: #9a978c;
  --muted-2: #6f6d66;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Sora', system-ui, sans-serif; letter-spacing: -0.02em; line-height: 1.14; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: #0a0a0c; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.gold { color: var(--gold-soft); }
.gold-grad {
  background: linear-gradient(120deg, var(--gold-bright), var(--gold) 55%, #8a7a3c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold-soft); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: 0.7; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 100px; cursor: pointer;
  border: 1px solid transparent; transition: all .3s var(--ease); white-space: nowrap;
}
.btn-primary { background: linear-gradient(120deg, var(--gold-bright), var(--gold)); color: #0a0a0c; box-shadow: 0 8px 30px rgba(168,152,80,0.22); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(168,152,80,0.4); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(168,152,80,0.06); }
.btn svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.btn-ghost:hover svg { transform: translateX(-3px); }

/* nav */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: all .4s var(--ease);
  border-bottom: 1px solid transparent;
}
header.nav.scrolled { background: rgba(10,10,12,0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.nav-logo img { height: 30px; display: block; }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* hero header */
.legal-hero { position: relative; padding: 150px 0 60px; overflow: hidden; border-bottom: 1px solid var(--line); }
.legal-hero .orb { position: absolute; width: 520px; height: 520px; top: -220px; right: -120px; border-radius: 50%; filter: blur(90px); opacity: 0.45; background: radial-gradient(circle, rgba(168,152,80,0.28), transparent 70%); pointer-events: none; }
.legal-hero .grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 0%, #000 20%, transparent 70%);
  opacity: 0.5; pointer-events: none;
}
.legal-hero .inner { position: relative; z-index: 1; }
.legal-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; margin-bottom: 16px; }
.legal-hero .updated { font-size: 14px; color: var(--muted); }
.legal-hero .updated b { color: var(--gold-soft); font-weight: 600; }

/* layout: sticky TOC + content */
.legal-body { padding: 60px 0 90px; }
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 110px; }
.toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted-2); margin-bottom: 16px; }
.toc a { display: block; font-size: 14px; color: var(--muted); padding: 7px 0 7px 14px; border-left: 1px solid var(--line); transition: all .2s; }
.toc a:hover, .toc a.active { color: var(--gold-soft); border-left-color: var(--gold); }

/* prose */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 600; margin: 46px 0 16px; scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h2 .idx { color: var(--gold-soft); font-weight: 700; margin-right: 10px; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 28px 0 10px; color: var(--text); }
.prose p { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.prose ul { list-style: none; margin: 0 0 18px; padding: 0; }
.prose li { color: var(--muted); font-size: 16px; padding-left: 24px; margin-bottom: 10px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.prose a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .callout { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; padding: 20px 22px; margin: 24px 0; }
.prose .callout p { margin: 0; font-size: 15px; }

/* footer */
footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 60px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 46px; }
.foot-brand img { height: 30px; margin-bottom: 18px; }
.foot-brand p { font-size: 14px; color: var(--muted); max-width: 320px; margin-bottom: 16px; }
.foot-brand .legal-meta { font-size: 13px; color: var(--muted-2); line-height: 1.6; }
.foot-brand .legal-meta b { color: var(--muted); font-weight: 600; }
.foot-col h5 { font-family: 'Sora', sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-2); margin-bottom: 18px; }
.foot-col a { display: block; font-size: 14.5px; color: var(--muted); margin-bottom: 12px; transition: color .2s; }
.foot-col a:hover { color: var(--gold-soft); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.foot-bottom p { font-size: 13.5px; color: var(--muted-2); }
.foot-bottom .links { display: flex; gap: 22px; }
.foot-bottom .links a { font-size: 13.5px; color: var(--muted); transition: color .2s; }
.foot-bottom .links a:hover { color: var(--gold-soft); }

@media (max-width: 860px) {
  .legal-grid { grid-template-columns: 1fr; gap: 34px; }
  .toc { position: static; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .toc a { display: inline-block; border-left: none; padding: 6px 12px; margin: 0 6px 6px 0; border: 1px solid var(--line); border-radius: 100px; }
  .toc a:hover, .toc a.active { border-color: var(--gold); }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .nav-cta .btn-primary { display: none; }
  .legal-body { padding: 40px 0 70px; }
}
