:root {
  --bg-0: #050506;
  --bg-1: #0a0a0d;
  --panel: rgba(12, 12, 16, 0.82);
  --line: rgba(255, 255, 255, 0.14);
  --text: #ececf0;
  --dim: #a3a6b2;
  --accent: #fc0553;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 10%, rgba(252, 5, 83, 0.12), transparent 32%),
    radial-gradient(circle at 20% 88%, rgba(98, 90, 160, 0.14), transparent 36%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  opacity: 0.2;
  background:
    repeating-linear-gradient(
      28deg,
      rgba(255, 255, 255, 0.05) 0 1px,
      transparent 1px 34px
    ),
    repeating-linear-gradient(
      118deg,
      rgba(255, 255, 255, 0.03) 0 1px,
      transparent 1px 34px
    );
}

body::after {
  opacity: 0.22;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 18px, transparent 18px) 22px 16px / 76px 76px no-repeat,
    linear-gradient(225deg, rgba(255, 255, 255, 0.07) 0 14px, transparent 14px) calc(100% - 30px) calc(100% - 20px) / 70px 70px no-repeat,
    linear-gradient(135deg, rgba(252, 5, 83, 0.12) 0 14px, transparent 14px) calc(100% - 100px) 34px / 52px 52px no-repeat,
    linear-gradient(225deg, rgba(110, 102, 180, 0.15) 0 13px, transparent 13px) 40px calc(100% - 94px) / 56px 56px no-repeat;
}

.license-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 26px clamp(12px, 3vw, 28px) 78px;
}

.license-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.license-head-copy {
  max-width: 780px;
}

.license-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-link {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(10, 10, 14, 0.74);
  padding: 8px 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.back-link:hover {
  border-color: rgba(252, 5, 83, 0.8);
}

.license-kicker {
  margin: 0;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.66rem;
}

.license-title {
  margin: 10px 0 0;
  font-family: "Antonio", sans-serif;
  letter-spacing: 0.03em;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 0.96;
}

.license-subtitle {
  margin: 10px 0 0;
  color: var(--dim);
  line-height: 1.6;
}

.license-grid {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.license-card {
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: var(--text);
  padding: 13px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.license-card:hover {
  border-color: rgba(252, 5, 83, 0.74);
  transform: translateY(-2px);
}

.license-card h2 {
  margin: 0;
  font-size: 1rem;
}

.license-card p {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 0.88rem;
  line-height: 1.5;
}

.license-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.license-tag {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 7px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #dadce2;
}

.license-view {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 14px;
}

.license-view h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
}

.license-view-meta {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.license-text {
  margin: 14px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 8, 11, 0.76);
  padding: 14px;
  color: #e4e4ea;
  font-size: 0.93rem;
  line-height: 1.63;
}

.license-text h3,
.license-text h4,
.license-text p,
.license-text ul {
  margin: 0;
}

.license-text h3 {
  margin-top: 15px;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.license-text h4 {
  margin-top: 13px;
  font-size: 0.96rem;
  color: #f0f0f6;
}

.license-text p {
  margin-top: 9px;
  color: #e2e2e9;
}

.license-text ul {
  margin-top: 9px;
  padding-left: 18px;
}

.license-text li + li {
  margin-top: 5px;
}

.license-text code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  padding: 0 3px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.87em;
}

.license-end {
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c7c9d3;
}

.license-empty {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 13px;
  color: var(--dim);
}

@media (max-width: 700px) {
  .license-shell {
    padding-top: 18px;
  }

  .license-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .license-head-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  body::before {
    opacity: 0.14;
  }

  body::after {
    opacity: 0.16;
  }
}
