:root {
  --sky-primary: #1d95d8;
  --sky-deep: #1d77d0;
  --sky-glow: #4dbde8;
  --bg-deep: #040d1a;
  --bg-card: rgba(13, 30, 55, 0.62);
  --border-soft: rgba(29, 149, 216, 0.16);
  --text-main: rgba(255, 255, 255, 0.9);
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-faint: rgba(255, 255, 255, 0.42);
}

* {
  box-sizing: border-box;
  font-stretch: normal;
  letter-spacing: normal;
  transform: none;
}

html {
  min-height: 100%;
  background: var(--bg-deep);
}

body.legal-page {
  min-height: 100vh;
  margin: 0;
  padding: 88px 24px 56px;
  background:
    linear-gradient(rgba(29, 149, 216, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 149, 216, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 24% 0%, rgba(29, 149, 216, 0.14), transparent 34rem),
    radial-gradient(circle at 78% 22%, rgba(77, 189, 232, 0.08), transparent 30rem),
    var(--bg-deep);
  background-size: 60px 60px, 60px 60px, auto, auto, auto;
  color: var(--text-main);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.65;
}

body.legal-page::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.legal-shell,
.container {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
  margin: 0 auto;
}

.legal-card,
.card {
  padding: clamp(28px, 5vw, 56px);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 34px;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 0 28px rgba(29, 149, 216, 0.32);
}

.brand-name {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: normal;
}

.brand-accent,
h1 {
  background: linear-gradient(135deg, #4dbde8 0%, #1d95d8 44%, #1d77d0 82%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1 {
  max-width: 18ch;
  margin: 0 0 14px;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h2 {
  margin: 34px 0 12px;
  color: #fff;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(1.08rem, 2.4vw, 1.28rem);
  font-weight: 700;
  line-height: 1.25;
}

h3,
h3[style] {
  margin: 22px 0 8px !important;
  color: var(--sky-glow) !important;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

p,
li {
  color: var(--text-muted);
  font-size: 0.98rem;
}

p {
  margin: 0 0 14px;
}

ul {
  padding-left: 1.35rem;
  margin: 12px 0 0;
}

li {
  margin: 8px 0;
}

strong {
  color: rgba(255, 255, 255, 0.84);
}

em {
  color: rgba(255, 255, 255, 0.78);
}

hr {
  height: 1px;
  margin: 34px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(29, 149, 216, 0.34), transparent);
}

a {
  color: var(--sky-glow);
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

a:hover {
  color: #fff;
}

code {
  padding: 2px 6px;
  border: 1px solid rgba(29, 149, 216, 0.18);
  border-radius: 6px;
  background: rgba(29, 149, 216, 0.09);
  color: rgba(255, 255, 255, 0.82);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
}

.subtitle {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.meta,
.notice {
  margin: 20px 0 0;
  padding: 16px 18px;
  border-radius: 12px;
}

.meta {
  background: rgba(29, 149, 216, 0.08);
  border: 1px solid rgba(29, 149, 216, 0.22);
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 18px;
}

.notice {
  background: rgba(244, 180, 0, 0.08);
  border: 1px solid rgba(244, 180, 0, 0.24);
  color: rgba(255, 244, 203, 0.82);
  font-size: 0.94rem;
}

.footer {
  margin-top: 28px;
  color: var(--text-faint);
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  body.legal-page {
    padding: 28px 14px;
  }

  .legal-card,
  .card {
    border-radius: 18px;
    padding: 24px 18px;
  }

  .brand {
    margin-bottom: 24px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  hr {
    margin: 28px 0;
  }
}
