* {
  box-sizing: border-box;
}

:root {
  --bg: #060914;
  --surface: rgba(15, 20, 31, 0.62);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --body: #a3afc2;
  --subtle: #7a889d;
  --link: #d7deea;
  --accent: linear-gradient(135deg, #1fb6ff, #7c5cff 56%, #ff4db8);
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--body);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 500px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 0%, rgba(31, 182, 255, 0.09), transparent 34%),
    radial-gradient(circle at 74% 0%, rgba(124, 92, 255, 0.08), transparent 34%);
}

.legal-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  height: 76px;
  border-bottom: 1px solid var(--border);
}

.header-inner,
.footer-inner {
  max-width: 1120px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-logo {
  display: block;
  width: 23px;
  height: 30px;
}

.brand-name {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.back-link {
  color: var(--subtle);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover,
.footer-links a:hover,
.legal-copy a:hover {
  color: var(--text);
}

.legal-main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 78px 28px 104px;
}

.legal-label {
  margin: 0 0 18px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 7vw, 56px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 1.05;
}

.updated {
  margin: 22px 0 64px;
  color: var(--subtle);
  font-size: 14px;
}

.legal-copy {
  font-size: 16px;
  line-height: 1.78;
}

.legal-copy section + section {
  margin-top: 44px;
}

.legal-copy h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 22px;
  font-weight: 580;
  letter-spacing: -0.035em;
}

.legal-copy p {
  margin: 0;
}

.legal-copy p + p,
.legal-copy ul {
  margin-top: 14px;
}

.legal-copy ul {
  margin-bottom: 0;
  padding-left: 21px;
}

.legal-copy li + li {
  margin-top: 8px;
}

.legal-copy a {
  color: var(--link);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.legal-footer {
  height: 84px;
  border-top: 1px solid var(--border);
  color: var(--subtle);
  font-size: 14px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-links a {
  color: var(--body);
  text-decoration: none;
  transition: color 0.2s ease;
}

@media (max-width: 640px) {
  .legal-header {
    height: 68px;
  }

  .header-inner,
  .footer-inner {
    padding: 0 20px;
  }

  .legal-main {
    padding: 54px 20px 76px;
  }

  .updated {
    margin-bottom: 48px;
  }

  .legal-copy section + section {
    margin-top: 36px;
  }

  .legal-footer {
    height: auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 24px;
    padding-bottom: 24px;
  }
}
