.home-body {
  background: var(--bg);
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.public-header .header-inner {
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 24px;
  background: var(--accent);
  color: #fff;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 0;
}

.brand-mark img {
  height: 16px;
  width: auto;
  display: block;
}

.brand-text {
  font-size: 16px;
}

.public-nav {
  display: flex;
  gap: 16px;
  font-weight: 600;
}

.nav-link {
  color: var(--muted);
}

.auth-actions {
  display: flex;
  gap: 8px;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle:hover {
  background: var(--surface-alt);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.12);
}

.theme-toggle:focus-visible {
  outline: 2px solid rgba(15, 74, 127, 0.35);
  outline-offset: 2px;
}

.theme-toggle .icon-sun {
  display: inline;
}

.theme-toggle .icon-moon {
  display: none;
}

body.theme-dark .theme-toggle {
  background: #1b2734;
  border-color: #2a3846;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

body.theme-dark .theme-toggle:hover {
  background: #223244;
}

body.theme-dark .theme-toggle:focus-visible {
  outline-color: rgba(91, 141, 184, 0.5);
}

body.theme-dark .theme-toggle .icon-sun {
  display: none;
}

body.theme-dark .theme-toggle .icon-moon {
  display: inline;
}

body.theme-dark .legal-hero,
body.theme-dark .legal-content {
  background: #15202c;
  border-color: #2a3846;
}

.legal-page {
  padding: 40px 28px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--panel-shadow);
}

.legal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--panel-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-content article h2 {
  margin-bottom: 6px;
  font-size: 18px;
}

.footer {
  background: #101826;
  color: #d4dbe4;
  padding: 40px 28px;
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer a {
  color: #c6d2e3;
  display: block;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .public-nav {
    display: none;
  }
}
