:root {
  color-scheme: dark;
  --bg: #081528;
  --card: #0c1524;
  --muted: #a8b3d1;
  --text: #f2f4f8;
  --accent: #f7c266;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, rgba(247, 194, 102, 0.12), transparent 42%), var(--bg);
  color: var(--text);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

a {
  color: inherit;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.14em;
  color: var(--text);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.home-link,
.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.home-link:hover,
.download-link:hover {
  border-color: rgba(247, 194, 102, 0.42);
  color: var(--accent);
}

.hero {
  max-width: 760px;
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 8vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.intro {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.7;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(12, 21, 36, 0.88);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

h2 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.table {
  max-height: 65vh;
  overflow: auto;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 140px;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.94rem;
}

.row strong,
.row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row--head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #101c30;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.row--summary {
  grid-template-columns: minmax(0, 1fr) 120px;
}

.license {
  color: var(--accent);
  font-weight: 800;
}

.summary {
  padding: 24px;
}

.summary-number {
  margin: 0;
  font-size: 3.2rem;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.license-counts {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.license-counts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.license-counts strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legal-main {
  max-width: 940px;
}

.legal-card {
  padding: clamp(24px, 5vw, 44px);
}

.legal-card h2 {
  margin-top: 38px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  margin: 0 0 16px;
  color: rgba(242, 244, 248, 0.9);
  line-height: 1.75;
}

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

.legal-card a:hover {
  text-decoration: underline;
}

.legal-card ul {
  margin: 0 0 20px;
  padding-left: 22px;
  color: rgba(242, 244, 248, 0.9);
  line-height: 1.7;
}

.legal-card li {
  margin-bottom: 8px;
}

.toc {
  margin: 24px 0 36px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.toc ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  margin: 0;
  padding-left: 18px;
}

.legal-footer {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

@media (max-width: 860px) {
  main {
    width: min(100% - 24px, 720px);
    padding-top: 28px;
  }

  .header {
    width: min(100% - 24px, 720px);
    align-items: flex-start;
    flex-direction: column;
    padding-top: 28px;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .row {
    grid-template-columns: minmax(0, 1fr) 88px 96px;
    gap: 10px;
    padding-inline: 14px;
  }

  .toc ul {
    grid-template-columns: 1fr;
  }
}

.privacy-table-wrap {
  margin: 22px 0 28px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.privacy-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  color: rgba(242, 244, 248, 0.9);
  font-size: 0.9rem;
  line-height: 1.55;
}

.privacy-table th,
.privacy-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.privacy-table th {
  position: sticky;
  top: 0;
  background: #101c30;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.privacy-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 860px) {
  .privacy-table-wrap {
    margin-inline: -4px;
  }

  .privacy-table {
    min-width: 720px;
    font-size: 0.84rem;
  }
}
