:root {
  color-scheme: dark;
  --ink: #eef7f1;
  --muted: #9aac9f;
  --line: rgba(199, 238, 216, 0.14);
  --panel: rgba(10, 16, 14, 0.86);
  --canvas: #050807;
  --green: #3ecf8e;
  --green-soft: rgba(62, 207, 142, 0.12);
  --blue: #67a6ff;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #111821;
  --muted: #56645e;
  --line: rgba(17, 24, 39, 0.12);
  --panel: rgba(255, 255, 255, 0.92);
  --canvas: #f4f8f6;
  --green: #12875c;
  --green-soft: rgba(18, 135, 92, 0.1);
  --blue: #1f6feb;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(62, 207, 142, 0.18), transparent 34rem),
    linear-gradient(180deg, #070d0b 0%, var(--canvas) 58%, #070d0b 100%);
}

:root[data-theme="light"] body {
  background: linear-gradient(180deg, #fbfefd 0%, #f4f8f6 58%, #edf4f1 100%);
}

a {
  color: inherit;
}

.legal-nav,
.legal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(5, 8, 7, 0.78);
  backdrop-filter: blur(18px);
}

:root[data-theme="light"] .legal-nav,
:root[data-theme="light"] .legal-footer {
  background: rgba(255, 255, 255, 0.82);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(62, 207, 142, 0.34);
  border-radius: var(--radius);
  padding: 3px;
  background: #050807;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.legal-subtitle,
.legal-content p,
.legal-content li,
.legal-footer {
  color: var(--muted);
}

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

.legal-links a,
.legal-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.legal-button {
  border-color: rgba(62, 207, 142, 0.68);
  background: var(--green);
  color: #03100b;
}

.legal-shell {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 64px;
}

.legal-hero {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--panel);
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 10px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.98;
}

.legal-subtitle {
  max-width: 760px;
  margin-top: 16px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.5;
}

.legal-content {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.legal-content section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--panel);
}

h2 {
  font-size: 24px;
  line-height: 1.1;
}

.legal-content p,
.legal-content li {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
}

.legal-content ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.legal-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  font-size: 13px;
}

@media (max-width: 640px) {
  .legal-nav,
  .legal-footer {
    display: grid;
    padding: 12px;
  }

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

  .legal-links a,
  .legal-button {
    justify-content: center;
  }

  .legal-shell {
    width: min(100% - 20px, 980px);
    padding: 28px 0 42px;
  }
}
