/* Shared styles for MIXI legal & info pages */
:root {
  --bg-start: #051e12;
  --bg-mid: #0a3320;
  --bg-end: #0d4d2e;
  --accent: #10b981;
  --accent-light: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.4);
  --card-bg: rgba(255,255,255,0.06);
  --card-border: rgba(52, 211, 153, 0.25);
  --text-primary: #f0fdf4;
  --text-muted: #a7f3d0;
  --shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', sans-serif;
  background: linear-gradient(160deg, var(--bg-start) 0%, var(--bg-mid) 40%, var(--bg-end) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16, 185, 129, 0.15), transparent),
              radial-gradient(ellipse 60% 40% at 100% 50%, rgba(52, 211, 153, 0.08), transparent),
              radial-gradient(ellipse 60% 40% at 0% 80%, rgba(13, 77, 46, 0.3), transparent);
  pointer-events: none;
  z-index: 0;
}
.page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(180deg, rgba(5, 30, 18, 0.95) 0%, rgba(5, 30, 18, 0.85) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.app-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid var(--accent-light);
  box-shadow: 0 4px 20px var(--accent-glow);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.app-logo:hover { transform: scale(1.08); box-shadow: 0 6px 28px var(--accent-glow); }
.header-center { font-size: 1.35rem; font-weight: 800; color: var(--text-muted); }
.language-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(52, 211, 153, 0.15) 100%);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.language-btn:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4) 0%, rgba(52, 211, 153, 0.25) 100%);
  color: #fff;
  transform: translateY(-2px);
}
.main-wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 24px;
  transition: color 0.3s ease, transform 0.3s ease;
}
.back-link:hover { color: #fff; transform: translateX(-4px); }
.back-link[dir="ltr"]:hover { transform: translateX(4px); }
.page-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #d1fae5 0%, #6ee7b7 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--card-border);
}
.card h3 { font-size: 1.05rem; color: var(--accent-light); margin: 16px 0 8px; }
.card p, .card li {
  line-height: 1.85;
  color: rgba(240, 253, 244, 0.9);
  font-size: 1rem;
  margin-bottom: 10px;
}
.card ul { margin: 10px 0 10px 24px; }
.card a { color: var(--accent-light); text-decoration: none; }
.card a:hover { text-decoration: underline; }
.last-update { font-size: 0.9rem; color: var(--text-muted); opacity: 0.9; margin-bottom: 24px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
}
.footer-links a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.footer-links a:hover {
  background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
  color: #fff;
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .page-header { padding: 12px 16px; }
  .header-center { font-size: 1.15rem; }
  .app-logo { width: 44px; height: 44px; }
  .main-wrap { padding: 20px 16px 40px; }
  .page-title { font-size: 1.5rem; }
  .card { padding: 22px 18px; }
}
