:root {
  --bg: #e8eaef;
  --bg-elevated: #dfe3ea;
  --bg-card: #ffffff;
  --border: rgba(15, 23, 42, 0.12);
  --text: #111827;
  --muted: #4b5563;
  --accent: #059669;
  --accent-hover: #047857;
  --accent-dim: rgba(5, 150, 105, 0.14);
  --accent-text: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --max: 1120px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #10b981, var(--accent-hover));
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a:not(.btn) {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:not(.btn):hover {
  color: var(--accent);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--accent-text);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(5, 150, 105, 0.4);
}

.btn--ghost {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: #f3f4f6;
  border-color: rgba(15, 23, 42, 0.18);
  color: var(--text);
}

main {
  flex: 1;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 32px 24px 40px;
  background: var(--bg-elevated);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer__links a {
  color: var(--muted);
}

.site-footer__links a:hover {
  color: var(--accent-hover);
}

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-page h1 {
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  line-height: 1.2;
  color: var(--text);
}

.legal-page .effective {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 1.125rem;
  margin: 28px 0 12px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 0.9375rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-page a {
  word-break: break-word;
}

@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    justify-content: flex-start;
  }
}
