:root {
  --red: #a78bfa;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  margin: 0;
  color: #fff;
  background: #050505;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
  overflow: auto;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #050505;
  background-size: 42px 42px, 42px 42px, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  text-wrap: pretty;
}

button {
  font: inherit;
  color: inherit;
}

.legal-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.06), transparent 22rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
}

.legal-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 28px 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(1.12);
}

.legal-sidebar strong {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-sidebar button,
.legal-sidebar a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.legal-sidebar button:hover,
.legal-sidebar a:hover,
.legal-sidebar button:focus-visible,
.legal-sidebar a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  outline: 0;
}

.legal-sidebar .is-selected {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(109, 70, 190, 0.9), rgba(48, 28, 92, 0.9));
  box-shadow: 0 12px 26px rgba(167, 139, 250, 0.18);
}

.legal-content {
  min-width: 0;
  padding: clamp(28px, 5vw, 64px);
}

.legal-panel {
  max-width: 920px;
}

.legal-panel[hidden] {
  display: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: #a78bfa;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.updated {
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-card {
  margin-bottom: 12px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 38px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(1.1);
}

.legal-card h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.legal-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal-card a {
  color: #a78bfa;
  font-weight: 900;
}

@media (max-width: 760px) {
  .legal-page {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .legal-sidebar strong {
    display: none;
  }

  .legal-sidebar button,
  .legal-sidebar a {
    flex: 0 0 auto;
  }

  .legal-content {
    padding: 24px 16px;
  }

  h1 {
    font-size: clamp(2.6rem, 16vw, 4.2rem);
  }
}
