@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --bg: #f3f7fa;
  --surface: #ffffff;
  --surface-soft: #eef6f5;
  --line: rgba(8, 35, 58, 0.12);
  --text: #122634;
  --text-soft: #5b6e7a;
  --brand: #135158;
  --brand-bright: #35d2c6;
  --danger: #a33f32;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow: 0 22px 60px rgba(4, 30, 51, 0.1);
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.legal-shell {
  width: min(calc(100% - 24px), var(--max-width));
  margin: 0 auto;
}

.legal-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 33, 54, 0.78);
  backdrop-filter: blur(18px);
  color: #f4fbff;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.legal-brand img {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(53, 210, 198, 0.28);
}

.legal-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.92rem;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  color: rgba(244, 251, 255, 0.78);
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: #ffffff;
}

.legal-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 18px;
  padding: 54px 0 34px;
  color: #f4fbff;
}

.legal-hero::before {
  position: absolute;
  inset: -180px calc(50% - 50vw) -24px;
  z-index: -1;
  content: '';
  background:
    radial-gradient(circle at top left, rgba(53, 210, 198, 0.14), transparent 30%),
    linear-gradient(180deg, #042136 0%, #0a2a41 100%);
}

.legal-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(53, 210, 198, 0.22);
  background: rgba(53, 210, 198, 0.14);
  color: #bcfffa;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.legal-hero p {
  max-width: 68ch;
  margin: 0;
  color: rgba(244, 251, 255, 0.8);
  font-size: 1rem;
  line-height: 1.72;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 251, 255, 0.9);
  font-size: 0.92rem;
}

.legal-main {
  display: grid;
  gap: 20px;
  padding-bottom: 72px;
}

.legal-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-card--highlight {
  background:
    radial-gradient(circle at top right, rgba(53, 210, 198, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 252, 0.98));
}

.legal-card--danger {
  background: #fff7f5;
  border-color: rgba(163, 63, 50, 0.22);
}

.legal-card h2,
.legal-card h3 {
  margin: 0;
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.legal-card h2 {
  font-size: 1.7rem;
}

.legal-card h3 {
  font-size: 1.15rem;
}

.legal-stack {
  display: grid;
  gap: 16px;
}

.legal-stack p,
.legal-stack li {
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.72;
}

.legal-stack ul,
.legal-stack ol {
  margin: 0;
  padding-left: 20px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.legal-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 700;
}

.legal-note {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: #285056;
}

.legal-danger-note {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(163, 63, 50, 0.08);
  color: #7a342d;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brand-bright), #63e7de);
  color: #05202f;
  font-weight: 800;
}

.legal-button--ghost {
  background: transparent;
  border-color: rgba(8, 35, 58, 0.14);
  color: var(--text);
}

.legal-footer {
  padding: 0 0 80px;
  color: var(--text-soft);
}

.legal-footer a {
  color: var(--brand);
  font-weight: 700;
}

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

@media (max-width: 720px) {
  .legal-header {
    border-radius: 28px;
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .legal-shell {
    width: min(calc(100% - 18px), var(--max-width));
  }

  .legal-card {
    padding: 22px;
  }

  .legal-hero {
    padding-top: 42px;
  }

  .legal-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }
}
