@font-face {
  font-family: "Inter";
  src: url("/pic/Inter-Light.otf") format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/pic/Inter-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue";
  src: url("/pic/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(52, 129, 255, 0.2), transparent 30%),
    linear-gradient(180deg, #07111f 0%, #0d1829 100%);
  color: #f5f7fb;
}

.legal-page {
  min-height: 100dvh;
  padding: clamp(16px, 3vw, 40px);
  box-sizing: border-box;
}

.legal-shell {
  width: min(980px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  text-decoration: none;
  color: #3481ff;
}

.brand__mark {
  width: 23px;
  height: clamp(1.6rem, 1.8vw, 2.14rem);
  display: block;
  flex: 0 0 auto;
}

.brand__wordmark {
  display: block;
  font-family: "Bebas Neue", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.6rem, 1.8vw, 2.14rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.back-link {
  color: #d6e3ff;
  text-decoration: none;
  font-size: 14px;
}

.legal-card {
  padding: clamp(20px, 4vw, 44px);
  border-radius: 28px;
  background: rgba(14, 23, 38, 0.86);
  border: 1px solid rgba(138, 166, 255, 0.18);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.legal-card__header {
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(138, 166, 255, 0.18);
}

.eyebrow {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 196, 70, 0.12);
  border: 1px solid rgba(255, 196, 70, 0.2);
  color: #ffe5a2;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  }

.legal-title {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.legal-subtitle {
  margin: 0;
  max-width: 72ch;
  color: rgba(245, 247, 251, 0.78);
  line-height: 1.65;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-paragraph {
  margin: 0;
  color: rgba(245, 247, 251, 0.9);
  font-size: clamp(0.92rem, 0.84rem + 0.22vw, 1.05rem);
  line-height: 1.72;
  white-space: pre-line;
}

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

.legal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 4px 0 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
}

.button--primary {
  background: #8ba3ff;
  color: #07111f;
}

.button--ghost {
  border-color: rgba(245, 247, 251, 0.18);
  color: #f5f7fb;
  background: transparent;
}

@media (max-width: 640px) {
  .legal-page {
    padding: 12px;
  }

  .legal-card {
    padding: 18px;
    border-radius: 20px;
  }
}
