/* Legal pages – same design & menu as index2.html */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; color: #0f172a; line-height: 1.6; background: #ffffff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 768px) { .container { padding: 0 16px; } }
@media (max-width: 480px) { .container { padding: 0 12px; } }

.legal-page-header { background: #0a0a0a; }

.navbar { position: relative; z-index: 10; padding: 1.25rem 0; }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.nav-inner .logo { justify-self: start; }
.nav-inner .nav-center { justify-self: center; display: flex; align-items: center; justify-content: center; position: relative; }
.nav-inner .nav-links { justify-self: center; }
.nav-inner .nav-right { justify-self: end; display: flex; align-items: center; gap: 0.75rem; }
.nav-inner .nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-close { display: none; }
.nav-menu-cta { display: none; }
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; cursor: pointer; align-items: center; transition: background 0.2s, border-color 0.2s; }
.nav-burger:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); }
.nav-burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 1px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1024px) {
  .navbar { padding: 0.5rem 0; }
  .nav-inner { grid-template-columns: 1fr auto; justify-items: stretch; align-items: center; min-height: 44px; }
  .nav-inner .logo { align-self: center; display: flex; align-items: center; height: 44px; }
  .nav-inner .nav-right { justify-self: end; align-self: center; display: flex; align-items: center; }
  .nav-inner .nav-center { width: 0; overflow: hidden; visibility: hidden; padding: 0; min-width: 0; }
  .nav-right .nav-cta { display: none; }
  .nav-menu-cta { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.12); }
  .nav-menu-cta .nav-login, .nav-menu-cta .nav-signup { display: block; text-align: center; padding: 0.65rem 1rem; border-radius: 9999px; font-size: 0.9375rem; text-decoration: none; font-weight: 600; }
  .nav-menu-cta .nav-login { color: #fff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.4); }
  .nav-menu-cta .nav-signup { background: #fff; color: #1a1a2e; border: none; }
  .nav-burger { display: flex !important; visibility: visible; opacity: 1; }
  .nav-links { display: none; position: fixed; top: 0; right: 0; left: auto; width: min(320px, 85vw); padding: 4.5rem 1rem 1.5rem 24px; flex-direction: column; background: #0a0a0a; gap: 0.25rem; border-bottom: 1px solid rgba(255,255,255,0.12); box-shadow: 0 10px 30px rgba(0,0,0,0.4); z-index: 9999; max-height: calc(100vh - 5rem); overflow-y: auto; }
  .navbar.nav-open .nav-links { display: flex !important; visibility: visible !important; }
  .nav-close { display: flex; position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0; }
  .nav-close:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: 0.75rem 1rem; font-size: 1rem; border-radius: 8px; }
  .nav-links a:hover { background: rgba(255,255,255,0.08); }
}
@media (max-width: 480px) { .navbar { padding: 0.75rem 0; } .logo .logo-image { width: 32px; height: 32px; } .nav-cta a { padding: 0.35rem 0.75rem; font-size: 0.8125rem; } }
.logo { display: flex; align-items: center; gap: 0.35rem; text-decoration: none; color: #fff; font-weight: 200; font-size: 0.75rem; }
.logo .logo-image { display: block; width: 40px; height: 40px; object-fit: contain; }
.nav-links { align-items: center; gap: 2rem; }
@media (min-width: 1025px) { .nav-links { display: flex; } }
.nav-links a { text-decoration: none; color: rgba(255,255,255,0.95); font-weight: 500; font-size: 0.9375rem; }
.nav-links a:hover { color: #fff; }
.nav-cta a { text-decoration: none; font-weight: 600; padding: 0.4rem 1rem; border-radius: 9999px; font-size: 0.875rem; }
.nav-login { color: #fff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.4); }
.nav-login:hover { background: rgba(255,255,255,0.2); }
.nav-signup { background: #fff; color: #1a1a2e; }
.nav-signup:hover { background: rgba(255,255,255,0.95); }

.footer { background: #050508; color: #d1d5db; padding: 4rem 0 2rem; border-top: 1px solid #1f1f24; }
.footer-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.footer-brand { flex: 1; min-width: 0; }
.footer-logo { font-weight: 800; font-size: 1.5rem; color: #fff; margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.9375rem; color: #d1d5db; margin: 0; }
.footer-social { display: flex; align-items: center; gap: 0.75rem; }
.footer-social .social-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: #d1d5db; text-decoration: none; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid #1f1f24; transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s; }
.footer-social .social-icon:hover { color: #00ff88; background: rgba(0,255,136,0.1); border-color: #00ff88; transform: translateY(-2px); }
.footer-social .social-icon svg { width: 20px; height: 20px; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid #1f1f24; font-size: 0.875rem; color: #9ca3af; }
.footer-bottom .footer-link { color: #00ff88; text-decoration: underline; }
.footer-bottom .footer-link:hover { color: #33ff99; }
@media (max-width: 480px) { .footer-content { flex-direction: column; text-align: center; } .footer-bottom { padding-top: 1.5rem; font-size: 0.8125rem; } }

/* Login modal – matches index2 graphic (dark #0a0a0a, green accent) */
.login-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.login-modal.active { opacity: 1; visibility: visible; }
.login-modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10,10,10,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); cursor: pointer; }
.login-modal-content { position: relative; background: #0a0a0a; border: 1px solid rgba(255,255,255,0.12); border-radius: 24px; padding: 2.5rem 2.5rem 2.25rem; max-width: 440px; width: 100%; box-shadow: 0 0 0 1px rgba(0,255,136,0.08), 0 24px 48px rgba(0,0,0,0.5), 0 0 80px rgba(0,255,136,0.06); }
.login-modal-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; color: rgba(255,255,255,0.9); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.login-modal-close:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); color: #fff; }
.login-modal-close svg { width: 18px; height: 18px; }
.login-modal-title { font-size: 1.375rem; font-weight: 700; color: #fff; margin-bottom: 1.75rem; padding-right: 3rem; text-align: center; letter-spacing: -0.02em; }
.login-modal-options { display: flex; flex-direction: column; gap: 0.75rem; }
.login-modal-option { display: flex; align-items: center; gap: 1.25rem; padding: 1.125rem 1.25rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; color: #fff; text-decoration: none; transition: all 0.25s ease; }
.login-modal-option:hover { background: rgba(0,255,136,0.08); border-color: rgba(0,255,136,0.4); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,255,136,0.12); }
.login-modal-option-icon { flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; color: #00ff88; transition: background 0.2s, border-color 0.2s; }
.login-modal-option:hover .login-modal-option-icon { background: rgba(0,255,136,0.12); border-color: rgba(0,255,136,0.35); }
.login-modal-option-icon svg { width: 26px; height: 26px; }
.login-modal-option-body { display: flex; flex-direction: column; gap: 0.2rem; }
.login-modal-option-text { font-weight: 600; font-size: 1rem; color: rgba(255,255,255,0.95); transition: color 0.2s; }
.login-modal-option:hover .login-modal-option-text { color: #00ff88; }
.login-modal-option-desc { font-size: 0.8125rem; color: rgba(255,255,255,0.55); line-height: 1.4; }
.login-modal-option:hover .login-modal-option-desc { color: rgba(255,255,255,0.7); }

.terms-page { padding: 120px 0 80px; }
.terms-page .container { max-width: 800px; }
.terms-lang { display: none; }
.terms-lang.active { display: block; }
.terms-lang-switcher { margin-bottom: 1.5rem; font-size: 0.9rem; color: #64748b; }
.terms-lang-switcher a { margin-right: 0.5rem; color: #0f172a; text-decoration: none; font-weight: 500; }
.terms-lang-switcher a:hover { text-decoration: underline; }
.terms-lang-switcher a.active { color: #0ea5e9; font-weight: 600; }
.terms-page h1 { font-size: 1.75rem; margin-bottom: 0.5rem; color: #0f172a; }
.terms-page .terms-updated { color: #64748b; font-size: 0.9rem; margin-bottom: 2rem; }
.terms-page h2 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: 0.75rem; color: #0f172a; }
.terms-page h3 { font-size: 1rem; margin-top: 1rem; margin-bottom: 0.5rem; color: #0f172a; }
.terms-page p, .terms-page li { color: #334155; line-height: 1.7; margin-bottom: 0.5rem; }
.terms-page ul { margin: 0.5rem 0 1rem 1.25rem; }
.terms-page a { color: #0ea5e9; text-decoration: underline; }
.terms-page a:hover { color: #0284c7; }
