:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #090b0c;
  color: #d8dde1;
}

* { box-sizing: border-box; }

body {
  min-width: 0;
  margin: 0;
  background:
    radial-gradient(circle at 15% -10%, rgba(247, 167, 45, 0.12), transparent 32rem),
    radial-gradient(circle at 95% 10%, rgba(105, 197, 223, 0.08), transparent 30rem),
    #090b0c;
  line-height: 1.65;
}

a { color: #f7bd62; text-underline-offset: 0.2em; }
a:hover, a:focus-visible { color: #ffd18a; }

.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 15, 0.92);
  backdrop-filter: blur(14px);
}

.legal-topbar-inner,
.legal-shell,
.legal-footer {
  width: min(calc(100% - 2rem), 66rem);
  margin-inline: auto;
}

.legal-topbar-inner {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.legal-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
  color: #eef1f3;
  font-weight: 700;
  text-decoration: none;
}

.legal-brand img { width: 2rem; height: 2rem; }
.legal-back { white-space: nowrap; font-size: 0.86rem; }

.legal-shell { padding-block: clamp(2rem, 6vw, 4.5rem); }

.legal-hero {
  margin-bottom: 1.25rem;
  border: 1px solid rgba(247, 167, 45, 0.25);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  background: linear-gradient(135deg, rgba(247, 167, 45, 0.11), rgba(19, 22, 24, 0.92) 52%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.legal-eyebrow {
  margin: 0 0 0.45rem;
  color: #f7a72d;
  font: 700 0.72rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2 { color: #f4f6f7; line-height: 1.2; }
h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { margin: 0 0 0.75rem; font-size: 1.18rem; }
.legal-summary { max-width: 52rem; margin: 0.9rem 0 0; color: #aeb6bd; }

.legal-card {
  min-width: 0;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1rem;
  padding: clamp(1.1rem, 3vw, 1.7rem);
  background: rgba(17, 20, 22, 0.93);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.legal-card p { color: #bdc4ca; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card strong { color: #f2f4f5; }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.legal-links a {
  border: 1px solid rgba(247, 167, 45, 0.24);
  border-radius: 0.55rem;
  padding: 0.4rem 0.65rem;
  background: rgba(247, 167, 45, 0.07);
  font-size: 0.83rem;
  text-decoration: none;
}

.document-text {
  max-height: none;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #c8cdd2;
  font: 0.82rem/1.58 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.legal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 0 2rem;
  color: #7f8991;
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

@media (max-width: 38rem) {
  .legal-topbar-inner { align-items: flex-start; flex-direction: column; padding-block: 0.75rem; }
  .legal-back { white-space: normal; }
}
