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

:root {
  --legal-bg: #151a2d;
  --legal-bg-deep: #0e1324;
  --legal-card: rgba(28, 33, 66, 0.84);
  --legal-card-strong: rgba(23, 29, 57, 0.96);
  --legal-border: rgba(255, 255, 255, 0.15);
  --legal-border-strong: rgba(255, 255, 255, 0.24);
  --legal-text: #f3f5fb;
  --legal-text-muted: rgba(243, 245, 251, 0.76);
  --legal-text-subtle: rgba(243, 245, 251, 0.56);
  --legal-accent: #7db8ff;
  --legal-accent-soft: #8bd8cf;
  --legal-highlight: #ffc75e;
  --legal-shadow: 0 28px 100px rgba(0, 0, 0, 0.34);
  --legal-radius-xl: 32px;
  --legal-radius-lg: 24px;
  --legal-radius-md: 18px;
  --legal-radius-pill: 999px;
  --legal-shell-width: min(1120px, calc(100% - 32px));
  --legal-prose-width: min(880px, 100%);
}

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

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

html {
  background:
    radial-gradient(circle at top left, rgba(125, 184, 255, 0.18), transparent 36%),
    radial-gradient(circle at 85% 12%, rgba(139, 216, 207, 0.14), transparent 28%),
    linear-gradient(180deg, #131a31 0%, #0e1324 100%);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--legal-text);
  background: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.legal-page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.legal-orb {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.6;
}

.legal-orb--one {
  top: 96px;
  left: -120px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(125, 184, 255, 0.34), transparent 72%);
}

.legal-orb--two {
  top: 18%;
  right: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(139, 216, 207, 0.28), transparent 72%);
}

.legal-shell {
  position: relative;
  width: var(--legal-shell-width);
  margin: 0 auto;
  padding: 28px 0 72px;
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.legal-brand__mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--legal-highlight) 0%, var(--legal-accent-soft) 100%);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06);
}

.legal-brand__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-brand__eyebrow {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--legal-text-subtle);
}

.legal-brand__name {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--legal-text);
}

.legal-topbar__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.legal-switch {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--legal-radius-pill);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.legal-switch__label {
  padding: 0 8px 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--legal-text-subtle);
}

.legal-switch__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--legal-radius-pill);
  background: transparent;
  color: var(--legal-text-muted);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  transition:
    border-color 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.legal-switch__button:hover,
.legal-switch__button:focus-visible {
  color: var(--legal-text);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.legal-switch__button.is-active {
  color: var(--legal-text);
  border-color: rgba(125, 184, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(125, 184, 255, 0.2) 0%, rgba(125, 184, 255, 0.12) 100%),
    rgba(255, 255, 255, 0.07);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.legal-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-hero,
.legal-document,
.legal-footer {
  position: relative;
  border: 1px solid var(--legal-border);
  border-radius: var(--legal-radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%),
    var(--legal-card);
  box-shadow: var(--legal-shadow);
  backdrop-filter: blur(22px);
}

.legal-hero {
  overflow: hidden;
  padding: clamp(28px, 5vw, 48px);
}

.legal-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -90px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 184, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.legal-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.legal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--legal-radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.legal-badge--eyebrow {
  color: var(--legal-highlight);
  background: rgba(255, 199, 94, 0.1);
  border: 1px solid rgba(255, 199, 94, 0.18);
}

.legal-badge--draft {
  color: var(--legal-text);
  background: rgba(125, 184, 255, 0.12);
  border: 1px solid rgba(125, 184, 255, 0.16);
}

.legal-title {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.legal-summary {
  max-width: 62ch;
  margin: 18px 0 0;
  font-size: 1.03rem;
  line-height: 1.78;
  color: var(--legal-text-muted);
}

.legal-note {
  margin: 18px 0 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--legal-text-subtle);
}

.legal-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-self: end;
  width: min(100%, 320px);
}

.legal-meta__card {
  padding: 18px 20px;
  border-radius: var(--legal-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 17, 34, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.legal-meta__label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--legal-text-subtle);
}

.legal-meta__value {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--legal-text);
}

.legal-document {
  width: 100%;
  max-width: var(--legal-prose-width);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    var(--legal-card-strong);
}

.legal-section + .legal-section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-section__title {
  margin: 0 0 16px;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--legal-text);
}

.legal-section__paragraph {
  margin: 0;
  font-size: 1rem;
  line-height: 1.82;
  color: var(--legal-text-muted);
}

.legal-section__paragraph + .legal-section__paragraph {
  margin-top: 14px;
}

.legal-section__paragraph a,
.legal-section__list a,
.legal-footer a {
  color: var(--legal-accent-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.legal-section__paragraph a:hover,
.legal-section__paragraph a:focus-visible,
.legal-section__list a:hover,
.legal-section__list a:focus-visible,
.legal-footer a:hover,
.legal-footer a:focus-visible {
  color: var(--legal-accent);
  outline: none;
}

.legal-section__list {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--legal-text-muted);
}

.legal-section__list li {
  margin-top: 10px;
  padding-left: 6px;
  line-height: 1.75;
}

.legal-footer {
  width: 100%;
  max-width: var(--legal-prose-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-footer__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.legal-footer__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--legal-text-subtle);
}

.legal-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--legal-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: var(--legal-text);
  font-size: 0.94rem;
  font-weight: 600;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.legal-footer__link:hover,
.legal-footer__link:focus-visible {
  border-color: rgba(125, 184, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  .legal-hero__grid {
    grid-template-columns: 1fr;
  }

  .legal-meta {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .legal-shell {
    width: min(100% - 20px, 100%);
    padding-top: 20px;
    padding-bottom: 48px;
  }

  .legal-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .legal-topbar__controls {
    justify-content: stretch;
  }

  .legal-switch {
    width: 100%;
  }

  .legal-switch__button {
    flex: 1 1 0;
    justify-content: center;
    text-align: center;
  }

  .legal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .legal-footer__group {
    width: 100%;
  }

  .legal-footer__link {
    width: 100%;
    justify-content: center;
  }
}
