@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  color-scheme: dark;
  --bg: radial-gradient(120% 100% at 10% 0%, rgba(74, 129, 210, 0.16), rgba(5, 10, 26, 0.96) 60%),
         linear-gradient(180deg, #020611 0%, #030a1c 100%);
  --card: rgba(12, 20, 38, 0.92);
  --border: rgba(118, 158, 255, 0.24);
  --text: #f7f9ff;
  --muted: #9da9c6;
  --accent: #6ce7b8;
  --accent-2: #6aa9ff;
  --shadow: 0 32px 80px rgba(3, 8, 22, 0.7);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 5vw, 60px) clamp(16px, 6vw, 80px);
}

.legal-shell {
  width: min(960px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.legal-shell::before {
  content: "";
  position: absolute;
  inset: -40% 40% auto -30%;
  height: clamp(220px, 42vw, 360px);
  width: clamp(220px, 42vw, 360px);
  background: radial-gradient(circle, rgba(108, 231, 184, 0.16), rgba(108, 231, 184, 0));
  pointer-events: none;
  transform: rotate(18deg);
}

.legal-shell::after {
  content: "";
  position: absolute;
  inset: auto -50% -35% 40%;
  height: clamp(260px, 48vw, 380px);
  width: clamp(260px, 48vw, 420px);
  background: radial-gradient(circle, rgba(106, 169, 255, 0.18), rgba(106, 169, 255, 0));
  pointer-events: none;
}

.legal-header {
  position: relative;
  display: grid;
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.legal-eyebrow {
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 13px;
  color: rgba(250, 253, 255, 0.72);
}

.legal-title {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  color: var(--text);
}

.legal-meta {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.legal-actions {
  margin-top: clamp(18px, 3vw, 28px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-actions a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.legal-actions a:hover,
.legal-actions a:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
}

.legal-content {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 10, 24, 0.4);
  padding: clamp(20px, 4vw, 32px);
  overflow: hidden;
}

.legal-content::before {
  content: "";
  position: absolute;
  inset: -50% -30% auto auto;
  height: clamp(180px, 36vw, 300px);
  width: clamp(180px, 36vw, 280px);
  background: radial-gradient(circle, rgba(108, 231, 184, 0.1), rgba(108, 231, 184, 0));
  pointer-events: none;
}

.legal-text {
  position: relative;
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-line;
  word-break: break-word;
  tab-size: 2;
}

.legal-text strong {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

.legal-footer {
  position: relative;
  margin-top: clamp(24px, 4vw, 36px);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.legal-footer a {
  color: var(--accent);
  text-decoration: none;
}

.legal-footer a:hover,
.legal-footer a:focus {
  text-decoration: underline;
}

@media (max-width: 600px) {
  body {
    padding: clamp(20px, 6vw, 32px);
  }

  .legal-shell {
    border-radius: 22px;
  }

  .legal-actions {
    flex-direction: column;
  }

  .legal-actions a {
    justify-content: center;
  }
}
