:root {
  --legal-paper: #fffaf1;
  --legal-cream: #f5eadc;
  --legal-ink: #2f2830;
  --legal-soft: #6d6269;
  --legal-plum: #6f285f;
  --legal-custard: #e6a44f;
  --legal-line: rgba(77, 55, 65, 0.15);
}

body {
  background: radial-gradient(circle at 85% 8%, rgba(230, 164, 79, 0.18), transparent 28rem), var(--legal-paper) !important;
  color: var(--legal-ink) !important;
}

body > header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-color: var(--legal-line) !important;
  background: rgba(255, 250, 241, 0.82) !important;
  -webkit-backdrop-filter: blur(22px) saturate(150%) !important;
  backdrop-filter: blur(22px) saturate(150%) !important;
}

.animated-bg { opacity: 0.45; }
.blob-1 { background: var(--legal-custard) !important; }
.blob-2 { background: #d495b9 !important; }

.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.min-h-screen { min-height: 100vh; }
.flex, .inline-flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.pt-8 { padding-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-4xl { font-size: clamp(2.25rem, 7vw, 3.5rem); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 650; }
.font-bold { font-weight: 800; }
.uppercase { text-transform: uppercase; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }
.rounded-full { border-radius: 999px; }
.rounded-lg { border-radius: 0.6rem; }
.rounded-xl { border-radius: 0.9rem; }
.rounded-3xl { border-radius: 1.7rem; }
.w-4, .h-4 { width: 1rem; height: 1rem; }
.w-5, .h-5 { width: 1.25rem; height: 1.25rem; }
.w-7, .h-7 { width: 1.75rem; height: 1.75rem; }
.w-8, .h-8 { width: 2rem; height: 2rem; }
.w-10, .h-10 { width: 2.5rem; height: 2.5rem; }
.border, .border-b, .border-t { border-color: var(--legal-line) !important; }
.border { border: 1px solid var(--legal-line); }
.border-b { border-bottom: 1px solid var(--legal-line); }
.border-t { border-top: 1px solid var(--legal-line); }
.bg-white\/5 { background: rgba(111, 40, 95, 0.05) !important; }
[class*="text-white/"] { color: var(--legal-soft) !important; }
.text-white { color: var(--legal-ink) !important; }
.text-\[\#7c3aed\], .text-\[\#a855f7\], .accent, .accent-soft { color: var(--legal-plum) !important; }

.legal-content,
.terms-container {
  border: 1px solid var(--legal-line) !important;
  border-radius: 1.7rem;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 24px 70px rgba(71, 51, 61, 0.09);
}

.legal-content { padding: clamp(1.4rem, 4vw, 3rem); }
.legal-content h2, .legal-text h2 { color: var(--legal-ink) !important; }
.legal-content h3 { color: var(--legal-plum) !important; }
.legal-content p, .legal-content ul, .legal-content td,
.legal-text p, .legal-text ul { color: var(--legal-soft) !important; }
.legal-content strong, .legal-text strong { color: var(--legal-ink) !important; }
.legal-content a, .legal-text a { color: var(--legal-plum) !important; }
.legal-content th { background: rgba(230, 164, 79, 0.14) !important; color: var(--legal-ink) !important; }
.legal-content table { display: block; max-width: 100%; overflow-x: auto; }
.terms-section { border-color: var(--legal-line) !important; }

.btn-primary {
  background: var(--legal-plum) !important;
  color: #fffaf1 !important;
  text-decoration: none;
}

body > footer {
  border-color: var(--legal-line) !important;
  background: var(--legal-cream);
}

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:p-12 { padding: 3rem; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-5xl { font-size: 3rem; }
}

@media (max-width: 767px) {
  body > header > div { gap: 1rem; }
  body > footer .flex { align-items: flex-start; flex-wrap: wrap; }
  .legal-content, .terms-container { border-radius: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
  * { scroll-behavior: auto !important; }
}
