:root {
  --deep-purple: #1a0033;
  --mid-purple: #2d0057;
  --bright-purple: #4b0082;
  --dark-navy: #0a0a1a;
  --dark-navy2: #0d0d2b;
  --gold-violet: #c084fc;
  --violet: #7c3aed;
  --gold: #f5c842;
  --gold-light: #fde68a;
  --white: #ffffff;
  --text-muted: #a78bca;
  --card-bg: rgba(45, 0, 87, 0.45);
  --border-glow: rgba(192, 132, 252, 0.35);
  --max-width: 1400px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--dark-navy);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-width: 280px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(75,0,130,0.55) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(124,58,237,0.18) 0%, transparent 60%),
    repeating-linear-gradient(60deg, transparent, transparent 60px, rgba(192,132,252,0.025) 60px, rgba(192,132,252,0.025) 61px),
    repeating-linear-gradient(-60deg, transparent, transparent 60px, rgba(192,132,252,0.025) 60px, rgba(192,132,252,0.025) 61px);
  pointer-events: none;
  z-index: 0;
}

.page-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 48px);
}

h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  line-height: 1.2;
  letter-spacing: 0.03em;
  word-wrap: break-word;
}

h1 { font-size: clamp(1.5rem, 5vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.35rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: clamp(0.9rem, 2vw, 1.2rem); font-weight: 600; }
p  { font-size: clamp(0.875rem, 1.8vw, 1.05rem); color: #d1b8f0; }

.text-glow {
  background: linear-gradient(135deg, #f5c842 0%, #c084fc 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px clamp(16px, 4vw, 36px);
  min-height: 52px;
  max-width: 100%;
  background: linear-gradient(135deg, #7c3aed 0%, #4b0082 100%);
  border: 1.5px solid rgba(192,132,252,0.6);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 4px;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 20px rgba(124,58,237,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(192,132,252,0.7), 0 0 80px rgba(124,58,237,0.35);
  border-color: rgba(192,132,252,0.9);
}

.btn-lg { padding: 16px clamp(20px, 5vw, 52px); min-height: 56px; font-size: clamp(0.85rem, 1.8vw, 1.15rem); }
.btn-sm { padding: 10px 18px; min-height: 42px; font-size: clamp(0.65rem, 1.2vw, 0.85rem); }
.btn-ghost { background: transparent; border-color: rgba(192,132,252,0.5); box-shadow: none; }
.btn-ghost:hover { background: rgba(124,58,237,0.2); }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10, 10, 26, 0.92);
  border-bottom: 1px solid rgba(192,132,252,0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 clamp(12px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.site-logo img { height: clamp(28px, 8vw, 36px); width: auto; max-width: 120px; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 32px);
}

.site-nav-list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.8vw, 28px);
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav-list a {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.6rem, 1.1vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav-list a:hover,
.site-nav-list a:focus-visible { color: var(--gold-light); }

.site-header-ctas { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid rgba(192,132,252,0.35);
  border-radius: 4px;
  background: rgba(45, 0, 87, 0.5);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--gold-violet);
  transition: transform 0.25s, opacity 0.25s;
}
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(192,132,252,0.2);
  background: linear-gradient(180deg, rgba(13,13,43,0.95) 0%, rgba(10,10,26,1) 100%);
}

.site-footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(12px, 3vw, 48px) clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.footer-brand p {
  font-size: clamp(0.85rem, 1.4vw, 0.95rem);
  margin-top: 16px;
  max-width: 320px;
  color: var(--text-muted);
}

.footer-social { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.footer-social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(192,132,252,0.25);
  border-radius: 4px;
  color: var(--gold-violet);
  text-decoration: none;
  font-size: 0.75rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
}

.footer-col h4 {
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: clamp(0.8rem, 1.3vw, 0.9rem);
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); }

.footer-payments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.footer-pay-tag {
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #d1b8f0;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(192,132,252,0.2);
  border-radius: 2px;
}

.site-footer-bottom {
  border-top: 1px solid rgba(192,132,252,0.12);
  padding: 20px clamp(12px, 3vw, 48px);
}

.site-footer-bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  color: var(--text-muted);
}
.footer-legal a { color: var(--text-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--gold-violet); }

.footer-badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 8px;
  border: 2px solid rgba(245,200,66,0.5);
  border-radius: 4px;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--gold);
  flex-shrink: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cinzel', serif;
  font-size: clamp(0.6rem, 1.2vw, 0.75rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-violet);
  margin-bottom: 12px;
}

/* Legal / subpages */
.legal-main {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 32px) 0 clamp(48px, 6vw, 80px);
  min-height: 60vh;
}

.legal-hero {
  text-align: center;
  padding-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid rgba(192,132,252,0.15);
  margin-bottom: clamp(32px, 5vw, 48px);
}

.legal-hero p {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--text-muted);
}

.legal-content { max-width: 820px; margin: 0 auto; }

.legal-content h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin: 32px 0 12px;
  color: var(--gold-light);
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content p,
.legal-content li {
  font-size: clamp(0.875rem, 1.6vw, 1rem);
  color: #d1b8f0;
  margin-bottom: 12px;
}

.legal-content ul {
  margin: 0 0 16px 1.25rem;
  padding: 0;
}

.legal-content li { margin-bottom: 8px; }

.legal-card {
  background: var(--card-bg);
  border: 1px solid var(--border-glow);
  border-radius: 4px;
  padding: clamp(20px, 4vw, 32px);
  margin: 24px 0;
  backdrop-filter: blur(8px);
}

/* Scrollable tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border: 1px solid rgba(192,132,252,0.15);
  border-radius: 4px;
  background: rgba(13,13,43,0.4);
}

.legal-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: clamp(0.75rem, 1.4vw, 0.9rem);
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(192,132,252,0.1);
  color: #d1b8f0;
  vertical-align: top;
}

.legal-table th {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-violet);
  background: rgba(124,58,237,0.15);
  white-space: nowrap;
}

.legal-table td:first-child { color: var(--white); font-weight: 700; }
.legal-table tr:last-child td { border-bottom: none; }

@media (max-width: 992px) {
  .site-footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .site-header-inner { gap: 8px; }
  .site-nav-list a { font-size: 0.6rem; letter-spacing: 0.05em; }
  .site-header-ctas .btn-sm { padding: 8px 12px; min-height: 38px; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .nav-toggle { display: flex; }
  .site-nav-list { display: none; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 20px clamp(12px, 3vw, 24px) 32px;
    gap: 20px;
    background: rgba(10, 10, 26, 0.98);
    border-top: 1px solid rgba(192,132,252,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .site-header.is-open .site-nav { transform: translateX(0); }
  .site-nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .site-nav-list li { border-bottom: 1px solid rgba(192,132,252,0.1); }
  .site-nav-list a {
    display: block;
    padding: 14px 0;
    font-size: 0.85rem;
  }
  .site-header-ctas { flex-direction: column; width: 100%; }
  .site-header-ctas .btn { width: 100%; }
}

@media (max-width: 480px) {
  .site-footer-top { grid-template-columns: 1fr; }
  .site-footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-legal {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-legal > span:not(.footer-badge-18) {
    max-width: 280px;
  }
}

@media (max-width: 360px) {
  .site-logo img { max-width: 100px; }
}
