/* Standalone legal pages — desktop-friendly layout */
:root {
  --mint: #5dd6a8;
  --mint-dark: #3fc491;
  --mint-light: #edfaf5;
  --text: #1a1a2e;
  --sub: #6b7280;
  --muted: #9ca3af;
  --bg: #ffffff;
  --surface: #f7f8fa;
  --border: #eaecf0;
  --r-md: 18px;
  --r-lg: 24px;
  --r-full: 999px;
  --font: 'Inter', sans-serif;
  --ease: all 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body.legal-standalone {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.legal-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.legal-site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  font-size: 18px;
}

.legal-site-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--mint), var(--mint-dark));
  color: #fff;
  font-weight: 900;
}

.legal-site-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-site-header-actions a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--ease);
}

.legal-site-header-actions .legal-header-app {
  background: var(--mint);
  color: #fff;
}

.legal-site-header-actions .legal-header-home {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.legal-site-main {
  flex: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 56px;
  background: linear-gradient(180deg, var(--mint-light) 0%, var(--bg) 160px);
}

.legal-site-title {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.legal-site-main .legal-doc {
  padding: 0;
  max-width: none;
}

.legal-site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px 36px;
  background: var(--surface);
}

.legal-site-footer-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.legal-site-footer-copy {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 16px;
}

.legal-nav-link:hover {
  color: var(--mint-dark);
  border-color: rgba(93, 214, 168, 0.45);
}

.legal-site-header-actions a:hover {
  opacity: 0.92;
}

@media (max-width: 640px) {
  .legal-site-header {
    padding: 14px 16px;
  }

  .legal-site-main {
    padding: 24px 16px 40px;
  }

  .legal-site-header-actions .legal-header-home {
    display: none;
  }
}
