:root {
  color-scheme: dark;
  --legal-bg: #090806;
  --legal-surface: rgba(20, 18, 15, .88);
  --legal-line: rgba(255, 169, 46, .17);
  --legal-text: #f5ede2;
  --legal-muted: #a99f93;
  --legal-brand: #ffab2f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--legal-text);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 137, 21, .11), transparent 32rem),
    radial-gradient(circle at 88% 8%, rgba(110, 59, 255, .08), transparent 34rem),
    linear-gradient(180deg, #090806 0%, #0d0b09 55%, #080706 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

.dojo-legal-shell {
  width: min(calc(100% - 32px), 960px);
  margin-inline: auto;
  padding: clamp(54px, 8vw, 94px) 0 16px;
}

.dojo-legal-loading {
  min-height: 50vh;
  display: grid;
  place-items: center;
  color: var(--legal-muted);
}

.dojo-legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(255, 171, 48, .23);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 149, 22, .08), rgba(116, 57, 255, .04)),
    rgba(18, 16, 13, .9);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.dojo-legal-hero::after {
  content: "道";
  position: absolute;
  right: 26px;
  bottom: -52px;
  color: rgba(255, 169, 42, .055);
  font-size: clamp(9rem, 20vw, 15rem);
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.dojo-legal-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  color: #ef9e31;
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.dojo-legal-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 10px 0 14px;
  color: #fff8ec;
  font-size: clamp(2rem, 6vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.dojo-legal-lead {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0;
  color: #b9afa3;
  font-size: clamp(.95rem, 2vw, 1.08rem);
  line-height: 1.75;
}

.dojo-legal-updated {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 20px;
  color: #7f766c;
  font-size: .76rem;
  font-weight: 750;
}

.dojo-legal-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  margin: 22px 0 30px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  background: rgba(255, 255, 255, .025);
}

.dojo-legal-summary > strong {
  color: #ffc25b;
  font-size: .78rem;
  font-weight: 950;
  white-space: nowrap;
}

.dojo-legal-summary ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dojo-legal-summary li {
  color: #a69c90;
  font-size: .78rem;
}

.dojo-legal-summary li::before {
  content: "•";
  margin-right: 7px;
  color: #ef9d32;
}

.dojo-legal-content {
  display: grid;
  gap: 16px;
}

.dojo-legal-section {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 20px;
  background: var(--legal-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.dojo-legal-section h2 {
  margin: 0 0 14px;
  color: #fff4e3;
  font-size: clamp(1.05rem, 2.5vw, 1.28rem);
  line-height: 1.3;
}

.dojo-legal-section p {
  margin: 0;
  color: var(--legal-muted);
  font-size: .91rem;
  line-height: 1.8;
}

.dojo-legal-section p + p { margin-top: 13px; }

.dojo-legal-list {
  display: grid;
  gap: 9px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.dojo-legal-list li {
  position: relative;
  padding-left: 20px;
  color: #aaa095;
  font-size: .87rem;
  line-height: 1.65;
}

.dojo-legal-list li::before {
  content: "";
  position: absolute;
  top: .7em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f4a333;
  box-shadow: 0 0 12px rgba(244, 163, 51, .3);
}

.dojo-legal-external-links {
  margin-top: 18px;
}

.dojo-legal-external-links a {
  display: inline-flex;
  padding: 9px 13px;
  border: 1px solid rgba(255, 169, 45, .22);
  border-radius: 10px;
  color: #ffc25a;
  background: rgba(255, 159, 26, .05);
  font-size: .78rem;
  font-weight: 850;
  text-decoration: none;
}

.dojo-legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 170, 48, .18);
  border-radius: 18px;
  background: rgba(255, 147, 20, .045);
}

.dojo-legal-actions a,
.dojo-legal-actions button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 11px;
  cursor: pointer;
  font: inherit;
  font-size: .8rem;
  font-weight: 900;
  text-decoration: none;
}

.dojo-legal-primary {
  border: 1px solid #ffad31;
  color: #211506;
  background: linear-gradient(135deg, #ffb337, #ff8d20);
}

.dojo-legal-secondary {
  border: 1px solid rgba(255, 255, 255, .11);
  color: #eee4d7;
  background: rgba(255, 255, 255, .045);
}

.dojo-legal-closing {
  margin-top: 20px;
  padding: 20px;
  border-left: 3px solid rgba(255, 168, 43, .55);
  border-radius: 0 13px 13px 0;
  background: rgba(255, 255, 255, .025);
}

.dojo-legal-closing strong {
  color: #e8ded1;
  font-size: .82rem;
}

.dojo-legal-closing p {
  margin: 6px 0 0;
  color: #8e857a;
  font-size: .78rem;
}

@media (max-width: 650px) {
  .dojo-legal-shell { padding-top: 40px; }
  .dojo-legal-summary { grid-template-columns: 1fr; gap: 10px; }
  .dojo-legal-summary ul { display: grid; }
  .dojo-legal-hero::after { right: -20px; }
}
