/* WuClock — Legal pages shared styles */

@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Barlow:wght@300;400;500;600&display=swap");

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Barlow", system-ui, sans-serif;
  font-weight: 300;
  background: #000;
  color: #F1EFF3;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Page atmosphere */
.legal-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(212,168,82,0.10) 0%, transparent 60%),
    radial-gradient(80% 60% at 30% 100%, rgba(45,27,78,0.45) 0%, transparent 60%),
    #0a0010;
}
.legal-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 27% 72%, rgba(255,255,255,0.40), transparent 60%),
    radial-gradient(1.5px 1.5px at 48% 30%, rgba(228,190,106,0.55), transparent 60%),
    radial-gradient(1px 1px at 64% 84%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(1px 1px at 78% 22%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 88% 60%, rgba(228,190,106,0.40), transparent 60%),
    radial-gradient(1px 1px at 8% 52%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1px 1px at 35% 10%, rgba(255,255,255,0.30), transparent 60%);
}

/* Top bar */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10, 0, 16, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.legal-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.legal-nav-brand img {
  height: 56px;
  width: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.legal-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(212,168,82,0.25);
  background: rgba(212,168,82,0.05);
  color: #F1EFF3;
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: background 220ms ease, border-color 220ms ease;
}
.legal-nav-back:hover {
  background: rgba(212,168,82,0.12);
  border-color: rgba(212,168,82,0.45);
}

/* Hero block */
.legal-hero {
  position: relative;
  z-index: 1;
  padding: 100px 24px 60px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.legal-eyebrow {
  display: inline-block;
  font-family: "Barlow", system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #D4A852;
  padding: 8px 14px;
  border: 1px solid rgba(212,168,82,0.30);
  border-radius: 999px;
  background: rgba(212,168,82,0.06);
}
.legal-hero h1 {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: -3px;
  margin: 24px 0 16px;
  color: #F1EFF3;
}
.legal-hero .meta {
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 14px;
  color: rgba(241,239,243,0.55);
  letter-spacing: 0.02em;
}

/* Content */
.legal-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  font-size: 16px;
  color: rgba(241,239,243,0.88);
}
.legal-content h2 {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 80px 0 24px;
  color: #F1EFF3;
  padding-top: 12px;
  border-top: 1px solid rgba(212,168,82,0.18);
}
.legal-content h3 {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 44px 0 14px;
  color: #F1EFF3;
}
.legal-content h4 {
  font-family: "Barlow", system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 30px 0 10px;
  color: #D4A852;
}
.legal-content p {
  margin: 0 0 16px;
}
.legal-content strong {
  color: #F1EFF3;
  font-weight: 600;
}
.legal-content a {
  color: #D4A852;
  text-decoration: none;
  border-bottom: 1px solid rgba(212,168,82,0.35);
}
.legal-content a:hover {
  color: #E4BE6A;
  border-bottom-color: rgba(228,190,106,0.7);
}

/* Lists */
.legal-content ul, .legal-content ol {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
}
.legal-content ul li, .legal-content ol li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}
.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D4A852;
  box-shadow: 0 0 8px rgba(212,168,82,0.5);
}
.legal-content ol {
  counter-reset: legal-counter;
}
.legal-content ol li {
  counter-increment: legal-counter;
}
.legal-content ol li::before {
  content: counter(legal-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: #D4A852;
  font-size: 18px;
}

/* Highlight callout cards */
.legal-callout {
  border-radius: 18px;
  padding: 24px 28px;
  margin: 28px 0;
  background: rgba(212,168,82,0.05);
  border: 1px solid rgba(212,168,82,0.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.legal-callout.warn {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239,68,68,0.30);
}
.legal-callout.warn h4 { color: #FF8A8A; }
.legal-callout h4 {
  margin-top: 0;
}
.legal-callout p:last-child, .legal-callout ul:last-child {
  margin-bottom: 0;
}

/* Summary / TOC at top */
.legal-summary {
  margin: 40px auto 0;
  max-width: 820px;
  padding: 28px 32px;
  border: 1px solid rgba(212,168,82,0.20);
  background:
    linear-gradient(180deg, rgba(45,27,78,0.40) 0%, rgba(20,5,30,0.30) 100%);
  border-radius: 22px;
  position: relative;
  z-index: 1;
}
.legal-summary h2 {
  margin: 0 0 16px;
  font-family: "Barlow", system-ui, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #D4A852;
  border-top: 0;
  padding-top: 0;
}
.legal-summary ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 720px) {
  .legal-summary ul { grid-template-columns: 1fr 1fr; }
}
.legal-summary ul li {
  font-size: 14.5px;
  color: rgba(241,239,243,0.88);
  padding-left: 22px;
  margin: 0;
  position: relative;
}
.legal-summary ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #D4A852;
  font-weight: 600;
  font-family: "Barlow", system-ui, sans-serif;
}

/* Tables */
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
}
.legal-content thead {
  background: rgba(212,168,82,0.06);
}
.legal-content th, .legal-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(212,168,82,0.10);
}
.legal-content th {
  font-family: "Barlow", system-ui, sans-serif;
  font-weight: 600;
  color: #D4A852;
  letter-spacing: 0.02em;
}

/* Bottom signature / version */
.legal-sign {
  margin-top: 80px;
  text-align: center;
  font-size: 13px;
  color: rgba(241,239,243,0.55);
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.legal-sign .ver {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(212,168,82,0.30);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #D4A852;
  margin-top: 8px;
}

/* Footer mini */
.legal-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 24px 60px;
  text-align: center;
  font-size: 13px;
  color: rgba(241,239,243,0.55);
}
.legal-footer .links {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.legal-footer .links a {
  color: rgba(241,239,243,0.75);
  text-decoration: none;
}
.legal-footer .links a:hover {
  color: #D4A852;
}
.legal-footer .links .sep {
  color: rgba(255,255,255,0.20);
}

/* CTA back home */
.legal-cta {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 24px 0;
}
.legal-cta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg,#E4BE6A 0%,#D4A852 45%,#AE8330 100%);
  color: #1A051F;
  font-family: "Barlow", system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  box-shadow: 0 8px 24px rgba(212,168,82,0.30);
  transition: transform 220ms cubic-bezier(0.22,1,0.36,1), box-shadow 220ms;
}
.legal-cta a:hover {
  box-shadow: 0 10px 32px rgba(212,168,82,0.40);
}
.legal-cta a:active { transform: scale(0.98); }

/* Print-friendly */
@media print {
  .legal-bg, .legal-stars, .legal-nav, .legal-cta, .legal-footer { display: none; }
  body { background: #fff; color: #000; }
  .legal-content, .legal-hero, .legal-summary { color: #000; }
  .legal-content h2, .legal-content h3 { color: #000; }
}
