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

:root {
  --bg: #e8f1ff;
  --bg-deep: #d7e6ff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --muted: #5f6f8f;
  --border: rgba(143, 177, 232, 0.28);
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --shadow: 0 30px 80px rgba(32, 66, 132, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.42), transparent 30%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.25), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  font-family: "Manrope", "Plus Jakarta Sans", "Segoe UI", -apple-system, sans-serif;
}

body.page-legal {
  padding: 28px 18px 48px;
}

.legal-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

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

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

.legal-brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ffffff, #eff5ff);
  border: 1px solid rgba(149, 181, 238, 0.42);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.legal-brand-mark img {
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.legal-brand-copy {
  display: grid;
  gap: 4px;
}

.legal-brand-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-brand-note {
  color: var(--muted);
  font-size: 14px;
}

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

.legal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 179, 228, 0.45);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(23, 37, 84, 0.08);
}

.legal-link.primary {
  background: linear-gradient(135deg, #3b82f6, var(--accent-strong));
  color: #fff;
  border-color: transparent;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 52%, #5da5ff 100%);
  padding: 34px;
  color: #fff;
  box-shadow: var(--shadow);
}

.legal-hero::before,
.legal-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.legal-hero::before {
  width: 380px;
  height: 380px;
  top: -200px;
  right: -80px;
}

.legal-hero::after {
  width: 320px;
  height: 320px;
  bottom: -210px;
  left: -60px;
}

.legal-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 26px;
  align-items: center;
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #8df3ff;
  box-shadow: 0 0 0 6px rgba(141, 243, 255, 0.14);
}

.legal-title {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.legal-copy {
  margin: 16px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.7;
}

.legal-meta {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 700;
}

.legal-card {
  position: relative;
  min-height: 230px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  padding: 22px;
}

.legal-card-layer,
.legal-card-panel {
  position: absolute;
  border-radius: 22px;
}

.legal-card-layer {
  inset: 16px 16px auto 44px;
  height: 104px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.legal-card-panel {
  inset: auto 24px 24px 24px;
  padding: 22px;
  background: rgba(247, 251, 255, 0.96);
  box-shadow: 0 18px 50px rgba(18, 39, 96, 0.18);
}

.legal-card-label {
  color: #35528c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.legal-card-heading {
  margin: 10px 0 16px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 800;
}

.legal-bars {
  display: grid;
  gap: 8px;
}

.legal-bars span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #0ea5e9);
}

.legal-bars span:nth-child(1) {
  width: 88%;
}

.legal-bars span:nth-child(2) {
  width: 74%;
}

.legal-bars span:nth-child(3) {
  width: 81%;
}

.legal-content {
  display: grid;
  gap: 20px;
}

.legal-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 30px;
  backdrop-filter: blur(12px);
}

.legal-section h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.82;
}

.legal-section ul {
  margin: 0;
  padding-left: 22px;
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 4px 4px 0;
  color: var(--muted);
  font-size: 14px;
}

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

.legal-footer-links a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
}

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

@media (max-width: 720px) {
  body.page-legal {
    padding: 16px 12px 30px;
  }

  .legal-topbar {
    position: relative;
    align-items: flex-start;
    min-height: 56px;
  }

  .legal-brand {
    gap: 10px;
    max-width: calc(100% - 132px);
  }

  .legal-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .legal-brand-name {
    font-size: 20px;
  }

  .legal-brand-note {
    font-size: 12px;
  }

  .legal-actions {
    position: absolute;
    top: 0;
    right: 0;
    gap: 8px;
  }

  .legal-link {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }

  .legal-link:not(.primary) {
    display: none;
  }

  .legal-hero {
    padding: 20px;
    border-radius: 24px;
  }

  .legal-title {
    font-size: 24px;
  }

  .legal-copy {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
  }

  .legal-eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .legal-meta {
    margin-top: 14px;
    gap: 8px;
  }

  .legal-meta-chip {
    min-height: 30px;
    padding: 0 12px;
    font-size: 11px;
  }

  .legal-section {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .legal-card {
    min-height: 186px;
    padding: 18px;
  }

  .legal-card-layer {
    inset: 14px 14px auto 34px;
    height: 88px;
  }

  .legal-card-panel {
    inset: auto 18px 18px 18px;
    padding: 18px;
  }

  .legal-card-label {
    font-size: 12px;
  }

  .legal-card-heading {
    margin: 8px 0 14px;
    font-size: 24px;
  }

  .legal-bars span {
    height: 7px;
  }
}
