:root {
  --bg-primary: #0b1017;
  --bg-secondary: #121923;
  --bg-elevated: rgba(18, 25, 35, 0.95);
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #f5f7fb;
  --text-secondary: #a4b1c2;
  --accent: #6be3a9;
  --accent-strong: #33c781;
  --shadow-color: rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background:
    radial-gradient(circle at top, rgba(107, 227, 169, 0.14), transparent 30%),
    linear-gradient(180deg, #0c1219 0%, #0a0f15 100%);
  color: var(--text-primary);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(17, 25, 36, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-lockup__logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.brand-lockup__text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.legal-hero,
.legal-content {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 18px 50px var(--shadow-color);
}

.legal-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  border-radius: 28px;
}

.legal-hero__logo {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.legal-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-subtitle {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-content {
  margin-top: 22px;
  padding: 28px;
  border-radius: 28px;
}

.legal-actions {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(107, 227, 169, 0.25);
  border-radius: 12px;
  background: rgba(107, 227, 169, 0.1);
  color: var(--text-primary);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.ghost-button:hover,
.ghost-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(107, 227, 169, 0.45);
  background: rgba(107, 227, 169, 0.16);
  text-decoration: none;
}

.legal-content h2,
.legal-content h3 {
  margin: 28px 0 12px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-content p {
  margin: 0 0 16px;
}

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

.contact-frame-wrap {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.contact-frame {
  display: block;
  width: 100%;
  min-height: 760px;
  border: 0;
  background: #fff;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 14px 20px 28px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--text-secondary);
}

.site-footer a:hover {
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .legal-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .legal-content {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .top-bar {
    margin: 10px;
    padding: 10px 12px;
  }

  .page-shell {
    width: min(100% - 20px, 1080px);
    margin-top: 18px;
  }

  .legal-hero,
  .legal-content {
    border-radius: 22px;
  }

  .legal-hero {
    padding: 20px;
  }

  .legal-content {
    padding: 20px;
  }
}
