:root {
  --bg: #000000;
  --fg: #f5f5f2;
  --muted: rgba(245, 245, 242, 0.72);
  --line: rgba(245, 245, 242, 0.18);
  --accent: #ffffff;
  --font-sans: "Avenir Next", "Segoe UI", Candara, "Trebuchet MS", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 28%), #000;
  color: var(--fg);
  font-family: var(--font-sans);
}

.subpage-body {
  justify-content: flex-start;
}

.page-shell {
  display: grid;
  justify-items: center;
  gap: 26px;
  width: min(100% - 32px, 540px);
  padding: 32px;
  margin: auto;
}

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

.brandmark-mark {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.55) 100%);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08);
}

.brandmark-text {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.8rem);
  letter-spacing: 0.04em;
  line-height: 1;
}

.brandmark-small .brandmark-text {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--bg);
  background: var(--accent);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: outline-color 160ms ease;
}

.login-button:visited {
  color: var(--bg);
}

.login-button:hover {
  background: var(--accent);
  color: var(--bg);
}

.login-button:focus-visible {
  outline: 2px solid var(--line);
  outline-offset: 2px;
}

.legal-shell {
  width: min(100% - 32px, 780px);
  margin: 0 auto;
  padding: 40px 0 24px;
}

.legal-panel {
  margin-top: 28px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(10, 10, 10, 0.92);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-panel h1 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.06;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.legal-panel h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-panel p,
.legal-panel a {
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-panel a {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.14em;
}

.legal-grid {
  display: grid;
  gap: 28px;
}

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer-stacked {
  flex-direction: column;
  gap: 18px;
  padding-top: 18px;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
}

.site-footer a,
.site-footer a:visited {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  border-bottom-color: var(--line);
}

.site-footer .login-button,
.site-footer .login-button:visited {
  color: var(--bg);
  border-bottom: 0;
}

.site-footer .login-button:hover,
.site-footer .login-button:focus-visible {
  color: var(--bg);
  border-bottom: 0;
}

.legal-return-button {
  min-width: 0;
  min-height: 44px;
  padding: 0 18px;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 24px;
    gap: 22px;
  }

  .brandmark {
    gap: 12px;
  }

  .brandmark-mark {
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08);
  }

  .legal-shell {
    padding-top: 24px;
  }

  .legal-panel {
    padding: 24px;
    border-radius: 22px;
  }

  .legal-panel h1 {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
    line-height: 1.08;
  }

  .login-button {
    width: 100%;
  }

  .legal-return-button {
    width: auto;
  }
}
