:root{
  --bg: #14163a;
  --bg-elevated: #1b1d4a;
  --text: #ffffff;
  --text-muted: #b9bad8;
  --accent: #4fb3a9;
  --accent-hover: #3f9a91;
  --link: #8fd8d0;
  --border: rgba(255,255,255,0.12);
  --max-width: 760px;
}

*{box-sizing:border-box;}

html{scroll-behavior:smooth;}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

a{color:var(--link);}

img{max-width:100%;display:block;}

/* ---------- Landing page ---------- */

.landing{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:64px 20px 40px;
}

.app-icon{
  width:96px;
  height:96px;
  border-radius:22px;
  margin:0 auto 20px;
  background:linear-gradient(160deg,#7b3fe4,#3a2fae 60%, #241a6b);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 12px 30px rgba(0,0,0,0.35);
}

.app-icon svg{width:52px;height:52px;}

.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:28px;
}

.brand h1{
  font-size:clamp(32px, 6vw, 48px);
  margin:0;
  font-weight:800;
}

.tagline{
  font-size:clamp(22px, 4vw, 30px);
  font-weight:700;
  max-width:640px;
  margin:0 0 18px;
}

.subtext{
  color:var(--text-muted);
  font-size:clamp(16px, 2.6vw, 19px);
  max-width:560px;
  margin:0 0 40px;
}

.store-buttons{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  justify-content:center;
  margin-bottom:56px;
}

.store-buttons a{
  display:inline-flex;
}

.store-buttons img{
  height:54px;
  width:auto;
  border-radius:10px;
}

.support-line{
  color:var(--text-muted);
  font-size:15px;
  margin-bottom:8px;
}

.support-line a{
  color:var(--link);
  text-decoration:none;
}

.support-line a:hover{
  text-decoration:underline;
}

.footer-links{
  color:var(--text-muted);
  font-size:14px;
  padding-bottom:20px;
}

.footer-links a{
  color:var(--text-muted);
  text-decoration:underline;
  text-underline-offset:3px;
}

.footer-links a:hover{
  color:var(--text);
}

.footer-links .sep{
  margin:0 8px;
  opacity:0.5;
}

@media (max-width:480px){
  .brand{flex-direction:column;gap:10px;}
  .store-buttons{flex-direction:column;align-items:center;}
  .store-buttons img{height:50px;}
}

/* ---------- Legal pages ---------- */

.legal-header{
  border-bottom:1px solid var(--border);
  padding:22px 20px;
  position:sticky;
  top:0;
  background:rgba(20,22,58,0.92);
  backdrop-filter:blur(8px);
  z-index:10;
}

.legal-header-inner{
  max-width:var(--max-width);
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:12px;
}

.legal-header-inner img{
  width:32px;
  height:32px;
  border-radius:8px;
}

.legal-header-inner span{
  font-weight:700;
  font-size:18px;
}

.legal-wrap{
  max-width:var(--max-width);
  margin:0 auto;
  padding:40px 20px 80px;
}

.legal-wrap h1{
  font-size:clamp(26px,5vw,34px);
  margin:0 0 6px;
}

.effective-date{
  color:var(--text-muted);
  font-size:14px;
  margin-bottom:32px;
}

.notice-box{
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:12px;
  padding:18px 20px;
  margin:24px 0;
  font-size:14px;
  color:var(--text-muted);
}

.notice-box p{margin:0 0 10px;}
.notice-box p:last-child{margin-bottom:0;}

.legal-wrap h2{
  font-size:19px;
  margin:36px 0 12px;
  padding-top:8px;
  border-top:1px solid var(--border);
}

.legal-wrap h3{
  font-size:16px;
  margin:22px 0 8px;
  color:var(--text);
}

.legal-wrap p{
  margin:0 0 14px;
  color:var(--text-muted);
  font-size:15.5px;
}

.legal-wrap ul, .legal-wrap ol{
  color:var(--text-muted);
  font-size:15.5px;
  padding-left:22px;
  margin:0 0 14px;
}

.legal-wrap li{margin-bottom:8px;}

.legal-wrap table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 20px;
  font-size:14px;
}

.legal-wrap th, .legal-wrap td{
  border:1px solid var(--border);
  padding:10px 12px;
  text-align:left;
  color:var(--text-muted);
}

.legal-wrap th{
  color:var(--text);
  background:var(--bg-elevated);
}

.legal-wrap strong{color:var(--text);}

.back-to-top{
  display:inline-block;
  margin-top:20px;
  font-size:14px;
  color:var(--link);
  text-decoration:none;
}
